diff --git a/addons/account/models/partner.py b/addons/account/models/partner.py index 115514677ca..ec747c56d88 100644 --- a/addons/account/models/partner.py +++ b/addons/account/models/partner.py @@ -404,12 +404,12 @@ class ResPartner(models.Model): string="Account Payable", domain="[('internal_type', '=', 'payable'), ('deprecated', '=', False), ('company_id', '=', current_company_id)]", help="This account will be used instead of the default one as the payable account for the current partner", - required=True) + required=lambda env: env.company.chart_template_id) property_account_receivable_id = fields.Many2one('account.account', company_dependent=True, string="Account Receivable", domain="[('internal_type', '=', 'receivable'), ('deprecated', '=', False), ('company_id', '=', current_company_id)]", help="This account will be used instead of the default one as the receivable account for the current partner", - required=True) + required=lambda env: env.company.chart_template_id) property_account_position_id = fields.Many2one('account.fiscal.position', company_dependent=True, string="Fiscal Position", domain="[('company_id', '=', current_company_id)]",