You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
555 B

# Copyright 2018 Eficent <https://www.eficent.com/>
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
from odoo import fields, models
class PosConfig(models.Model):
_inherit = 'pos.config'
is_installed_account_accountant = fields.Boolean(
compute="_compute_is_installed_account_accountant")
def _compute_is_installed_account_accountant(self):
super(PosConfig, self)._compute_is_installed_account_accountant()
for pos_config in self:
pos_config.is_installed_account_accountant = True