[FIX] company in payment_mode_id domain

This commit is contained in:
Felipe
2022-07-16 12:45:10 -03:00
parent 31d375aa93
commit 85c90d22ca

View File

@@ -12,14 +12,16 @@ class ResPartner(models.Model):
comodel_name="account.payment.mode",
company_dependent=True,
check_company=True,
domain="[('payment_type', '=', 'outbound')]",
domain="[('payment_type', '=', 'outbound'),"
"('company_id', '=', current_company_id)]",
help="Select the default payment mode for this supplier.",
)
customer_payment_mode_id = fields.Many2one(
comodel_name="account.payment.mode",
company_dependent=True,
check_company=True,
domain="[('payment_type', '=', 'inbound')]",
domain="[('payment_type', '=', 'inbound'),"
"('company_id', '=', current_company_id)]",
help="Select the default payment mode for this customer.",
)