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

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