mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] company in payment_mode_id domain
This commit is contained in:
@@ -12,14 +12,16 @@ class ResPartner(models.Model):
|
|||||||
comodel_name="account.payment.mode",
|
comodel_name="account.payment.mode",
|
||||||
company_dependent=True,
|
company_dependent=True,
|
||||||
check_company=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.",
|
help="Select the default payment mode for this supplier.",
|
||||||
)
|
)
|
||||||
customer_payment_mode_id = fields.Many2one(
|
customer_payment_mode_id = fields.Many2one(
|
||||||
comodel_name="account.payment.mode",
|
comodel_name="account.payment.mode",
|
||||||
company_dependent=True,
|
company_dependent=True,
|
||||||
check_company=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.",
|
help="Select the default payment mode for this customer.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user