Merge PR #796 into 13.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-03-26 07:35:01 +00:00
2 changed files with 3 additions and 0 deletions

View File

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

View File

@@ -10,6 +10,7 @@ class SaleOrder(models.Model):
payment_mode_id = fields.Many2one(
comodel_name="account.payment.mode",
compute="_compute_payment_mode",
check_company=True,
store=True,
readonly=False,
domain=[("payment_type", "=", "inbound")],