mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] No contract line and invoices when contract is archived
This commit is contained in:
committed by
Christopher Rogos
parent
d632ea3ae2
commit
cf36d389e0
@@ -1109,7 +1109,6 @@ msgstr ""
|
|||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:ir.model.fields,help:contract.field_contract_contract__message_has_error
|
#: model:ir.model.fields,help:contract.field_contract_contract__message_has_error
|
||||||
#: model:ir.model.fields,help:contract.field_contract_contract__message_has_sms_error
|
|
||||||
msgid "If checked, some messages have a delivery error."
|
msgid "If checked, some messages have a delivery error."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -1736,11 +1735,6 @@ msgstr ""
|
|||||||
msgid "Responsible User"
|
msgid "Responsible User"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: contract
|
|
||||||
#: model:ir.model.fields,field_description:contract.field_contract_contract__message_has_sms_error
|
|
||||||
msgid "SMS Delivery error"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#. module: contract
|
#. module: contract
|
||||||
#: model:ir.model.fields,field_description:contract.field_res_partner__sale_contract_count
|
#: model:ir.model.fields,field_description:contract.field_res_partner__sale_contract_count
|
||||||
#: model:ir.model.fields,field_description:contract.field_res_users__sale_contract_count
|
#: model:ir.model.fields,field_description:contract.field_res_users__sale_contract_count
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ class ContractContract(models.Model):
|
|||||||
comodel_name="contract.line",
|
comodel_name="contract.line",
|
||||||
inverse_name="contract_id",
|
inverse_name="contract_id",
|
||||||
copy=True,
|
copy=True,
|
||||||
|
context={"active_test": False},
|
||||||
)
|
)
|
||||||
# Trick for being able to have 2 different views for the same o2m
|
# Trick for being able to have 2 different views for the same o2m
|
||||||
# We need this as one2many widget doesn't allow to define in the view
|
# We need this as one2many widget doesn't allow to define in the view
|
||||||
@@ -67,6 +68,7 @@ class ContractContract(models.Model):
|
|||||||
string="Contract lines (fixed)",
|
string="Contract lines (fixed)",
|
||||||
comodel_name="contract.line",
|
comodel_name="contract.line",
|
||||||
inverse_name="contract_id",
|
inverse_name="contract_id",
|
||||||
|
context={"active_test": False},
|
||||||
)
|
)
|
||||||
|
|
||||||
user_id = fields.Many2one(
|
user_id = fields.Many2one(
|
||||||
|
|||||||
Reference in New Issue
Block a user