flectra/addons/account/demo/account_statement_operations.yml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

38 lines
1.6 KiB
YAML

-
!python {model: ir.model.data, id: False} : |
account_id = self.env['account.account'].search([('user_type_id', '=', ref('account.data_account_type_expenses')), ('tag_ids', '=', ref('account_tag_operating'))], limit=1).id
vals = {
'name': "Discount For Early Payment",
'label': 'Discount',
'amount_type': 'percentage',
'amount': -7,
}
if account_id:
vals['account_id'] = account_id
self._update(cr, uid, 'account.reconcile.model', 'account', vals, 'account_reconcile_model_1')
-
!python {model: ir.model.data, id: False} : |
account_id = self.env['account.account'].search([('user_type_id', '=', ref('account.data_account_type_expenses')), ('tag_ids', '=', ref('account_tag_operating'))], limit=1).id
vals = {
'name': "Bank Fees",
'label': 'Bank Fees',
'amount_type': 'percentage',
'amount': 100.0,
}
if account_id:
vals['account_id'] = account_id
self._update(cr, uid, 'account.reconcile.model', 'account', vals, 'account_reconcile_model_2')
-
!python {model: ir.model.data, id: False} : |
account_id = self.env['account.account'].search([('user_type_id', '=', ref('account.data_account_type_revenue')), ('tag_ids', '=', ref('account_tag_operating'))], limit=1).id
vals = {
'name': "Profit / Loss",
'label': 'Profit / Loss',
'amount_type': 'percentage',
'amount': 100.0,
}
if account_id:
vals['account_id'] = account_id
self._update(cr, uid, 'account.reconcile.model', 'account', vals, 'account_reconcile_model_3')
-