[IMP] - hide recurring_invoicing_type if recurring_rule_type is monthlylastday

for the monthlylastday case, pre-paid is logicly impossible,
if monthlylastday is set, we consider only post-paid case

[IMP] - Improve unit tests
This commit is contained in:
sbejaoui
2018-11-29 12:38:04 +01:00
committed by Pedro M. Baeza
parent 01e3e0fe44
commit 92c1c837c6
2 changed files with 5 additions and 4 deletions

View File

@@ -102,6 +102,7 @@ class TestContractBase(common.SavepointCase):
cls.acct_line = cls.env['account.analytic.invoice.line'].create(
cls.line_vals
)
cls.acct_line.product_id.is_auto_renew = True
class TestContract(TestContractBase):

View File

@@ -49,9 +49,6 @@
</group>
</group>
<group name="recurrence_info">
<group>
<field name="recurring_invoicing_type"/>
</group>
<group>
<label for="recurring_interval"/>
<div>
@@ -61,7 +58,10 @@
class="oe_inline" nolabel="1"/>
</div>
</group>
<group>
<field name="recurring_invoicing_type"
attrs="{'invisible': [('recurring_rule_type', '=', 'monthlylastday')]}"/>
</group>
</group>
</sheet>
</form>