Skip to content

Commit

Permalink
Merge pull request #1 from eLBati/fix_account_invoice_force_number
Browse files Browse the repository at this point in the history
[FIX] Attributes could be used directly instead of replace
  • Loading branch information
dcorio committed Apr 23, 2015
2 parents a4eba6d + 51d915d commit c526c74
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions account_invoice_force_number/invoice_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<field name="internal_number" position="replace">
<field name="internal_number"
attrs="{'invisible': [('state', '!=', 'draft')]}"
string="Force Number"
help="Force invoice number. Use this field if you don't want to use the default numbering"/>
<field name="internal_number" position="attributes">
<attribute name="attrs">{'invisible': [('state', '!=', 'draft')]}</attribute>
<attribute name="string">Force Number</attribute>
<attribute name="help">Force invoice number. Use this field if you don't want to use the default numbering</attribute>
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
Expand All @@ -21,11 +21,11 @@
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<field name="internal_number" position="replace">
<field name="internal_number"
attrs="{'invisible': [('state', '!=', 'draft')]}"
string="Force Number"
help="Force invoice number. Use this field if you don't want to use the default numbering"/>
<field name="internal_number" position="attributes">
<attribute name="attrs">{'invisible': [('state', '!=', 'draft')]}</attribute>
<attribute name="string">Force Number</attribute>
<attribute name="help">Force invoice number. Use this field if you don't want to use the default numbering</attribute>
<attribute name="invisible">0</attribute>
</field>
</field>
</record>
Expand Down

0 comments on commit c526c74

Please sign in to comment.