Merge PR #866 into 14.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2021-12-06 15:36:31 +00:00
2 changed files with 3 additions and 1 deletions

View File

@@ -11,12 +11,14 @@ class ResPartner(models.Model):
supplier_payment_mode_id = fields.Many2one(
comodel_name="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(
comodel_name="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,7 +10,7 @@
<span t-field="o.payment_mode_id.note" />
</p>
<t t-if="o.payment_mode_id and o.payment_mode_id.show_bank_account != 'no'">
<p t-foreach="o.partner_banks_to_show()" t-as="partner_bank">
<p t-foreach="o.sudo().partner_banks_to_show()" t-as="partner_bank">
<strong>Bank Account:</strong>
<t t-if="partner_bank.bank_id">
<t