[IMP] - Replace is_suspended flag by manual_renew_needed

Add a computed field for the first date of the termination notice period

Adapt state compute and search method

[IMP] - Improve unit tests
This commit is contained in:
sbejaoui
2019-01-10 16:58:43 +01:00
parent 55d16c3d4b
commit 361d57fb64
5 changed files with 595 additions and 192 deletions

View File

@@ -26,6 +26,14 @@
<field name="date_end"
attrs="{'required': [('is_auto_renew', '=', True)]}"/>
</group>
<group groups="base.group_no_one">
<field name="last_date_invoiced" readonly="True"/>
<field name="termination_notice_date" readonly="True"/>
</group>
<group groups="base.group_no_one">
<field name="manual_renew_needed"/>
</group>
<group>
<field name="predecessor_contract_line_id"/>
</group>