[IMP] contract: add next period start/end fields

Add two computed field showing the next period
start and end date. This improve the UX and will
enable further simplifications in the code.
This commit is contained in:
Stéphane Bidoul (ACSONE)
2019-12-06 11:09:32 +01:00
parent e6b9ea9ce7
commit edf6833bec
2 changed files with 40 additions and 0 deletions

View File

@@ -15,11 +15,13 @@
<group>
<field name="create_invoice_visibility" invisible="1"/>
<field name="date_start" required="1"/>
<field name="next_period_date_start"/>
<field name="recurring_next_date"/>
</group>
<group>
<field name="date_end"
attrs="{'required': [('is_auto_renew', '=', True)]}"/>
<field name="next_period_date_end"/>
</group>
<group groups="base.group_no_one">
<field name="last_date_invoiced" readonly="True"/>