mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] Add check_company=True on contracts and contract lines
Add check_company=True in field definition and
[('company_id', '=', company_id)] in the domain (in view or in field definition)
This commit is contained in:
@@ -7,8 +7,9 @@ class ContractContract(models.Model):
|
||||
payment_mode_id = fields.Many2one(
|
||||
comodel_name="account.payment.mode",
|
||||
string="Payment Mode",
|
||||
domain=[("payment_type", "=", "inbound")],
|
||||
domain="[('payment_type', '=', 'inbound'), ('company_id', '=', company_id)]",
|
||||
index=True,
|
||||
check_company=True,
|
||||
)
|
||||
|
||||
@api.onchange("partner_id")
|
||||
|
||||
Reference in New Issue
Block a user