Merge PR #940 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2022-07-16 20:07:15 +00:00

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.",
)