mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract: Protect line recurrrency change
If you have defined several contract lines, each one with their recurrency information, unmarking the check "Line recurrency" by mistake and saving will make you lose the configuration in one shot, and also modify the invoceability conditions. Thus, it's reasonable to avoid to uncheck the mark once you have at least one invoice issued for a contract with this mark checked. TT47015
This commit is contained in:
@@ -148,7 +148,11 @@
|
|||||||
</group>
|
</group>
|
||||||
</group>
|
</group>
|
||||||
<group name="recurring_invoices">
|
<group name="recurring_invoices">
|
||||||
<field name="line_recurrence" class="oe_inline" />
|
<field
|
||||||
|
name="line_recurrence"
|
||||||
|
class="oe_inline"
|
||||||
|
attrs="{'readonly': [('line_recurrence', '=', True), ('invoice_count', '!=', 0)]}"
|
||||||
|
/>
|
||||||
<label for="line_recurrence" />
|
<label for="line_recurrence" />
|
||||||
<group attrs="{'invisible': [('line_recurrence', '=', True)]}">
|
<group attrs="{'invisible': [('line_recurrence', '=', True)]}">
|
||||||
<label for="recurring_interval" />
|
<label for="recurring_interval" />
|
||||||
|
|||||||
Reference in New Issue
Block a user