summaryrefslogtreecommitdiff
path: root/addons/account/models/company.py
diff options
context:
space:
mode:
authorJoseph Caburnay <jcb@odoo.com>2019-08-02 08:49:25 +0000
committerPierre Masereel <pim@odoo.com>2019-08-09 13:57:10 +0000
commit536560bbf55d1d9a6f5bd8d8f145f7bb13569ae4 (patch)
tree9d676515aba3df3a8a1166fac8149c01dcdb8cd5 /addons/account/models/company.py
parentaf91527929c2cd2266a0f5b7ea6b133002b4ef3e (diff)
[IMP] l10n_*: add new receivable account for pos
A new feature[*] in point_of_sale (PoS) which minimizes the creation of account.move records in closing a pos.session relies on a receivable account made specifically for PoS. This commit addresses this feature's requirement by adding a new receivable account to each localization. [*] point_of_sale: single AE for a pos.session TASK-ID: 1862388
Diffstat (limited to 'addons/account/models/company.py')
-rw-r--r--addons/account/models/company.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/account/models/company.py b/addons/account/models/company.py
index 34a9503c4ab..7c4743ee2b6 100644
--- a/addons/account/models/company.py
+++ b/addons/account/models/company.py
@@ -104,6 +104,9 @@ Best Regards,'''))
account_dashboard_onboarding_state = fields.Selection([('not_done', "Not done"), ('just_done', "Just done"), ('done', "Done"), ('closed', "Closed")], string="State of the account dashboard onboarding panel", default='not_done')
invoice_terms = fields.Text(string='Default Terms and Conditions', translate=True)
+ # Needed in the Point of Sale
+ account_default_pos_receivable_account_id = fields.Many2one('account.account', string="Default PoS Receivable Account")
+
@api.constrains('account_opening_move_id', 'fiscalyear_last_day', 'fiscalyear_last_month')
def _check_fiscalyear_last_day(self):
# if the user explicitly chooses the 29th of February we allow it: