[FIX] account: mandatory ref

The field was made mandatory in the form view since the move line name
is no longer required from saas-15 onward. However, some automatic
process might still create moves without name. To avoid blocking the
user, we make this field mandatory only for new moves.

opw-744054
This commit is contained in:
Nicolas Martinelli
2017-06-01 08:22:36 +02:00
parent 17b847c0f6
commit 60401156c0
+2 -1
View File
@@ -1282,6 +1282,7 @@
<field name="state" widget="statusbar"/>
</header>
<sheet>
<field name="id" invisible="1"/>
<div class="oe_button_box">
<button name="open_reconcile_view"
class="oe_stat_button"
@@ -1300,7 +1301,7 @@
<field name="date"/>
</group>
<group>
<field name="ref" required="1"/>
<field name="ref" attrs="{'required': [('id', '==', False)]}"/>
<field name="company_id" required="1" groups="base.group_multi_company"/>
<field name="amount" invisible="1"/>
<field name="currency_id" invisible="1"/>