Merge PR #942 into 15.0

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

View File

@@ -11,13 +11,17 @@ class ResPartner(models.Model):
supplier_payment_mode_id = fields.Many2one(
comodel_name="account.payment.mode",
company_dependent=True,
domain="[('payment_type', '=', 'outbound')]",
check_company=True,
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,
domain="[('payment_type', '=', 'inbound')]",
check_company=True,
domain="[('payment_type', '=', 'inbound'),"
"('company_id', '=', current_company_id)]",
help="Select the default payment mode for this customer.",
)