Delete string at view level and add to ir.model.button.

Code refactoring.
This commit is contained in:
Juanjo Garcia 2019-10-02 16:57:43 +02:00
parent 9007fa60ac
commit a84b50eab1
2 changed files with 3 additions and 4 deletions

View File

@ -29,8 +29,8 @@
<record model="ir.model.button" id="create_purchase_request_button"> <record model="ir.model.button" id="create_purchase_request_button">
<field name="name">create_purchase_request</field> <field name="name">create_purchase_request</field>
<field name="model" <field name="string">Create Purchase Request</field>
search="[('model', '=', 'production')]"/> <field name="model" search="[('model', '=', 'production')]"/>
</record> </record>
<record model="ir.ui.icon" id="go_home_icon"> <record model="ir.ui.icon" id="go_home_icon">

View File

@ -5,8 +5,7 @@
<xpath expr="/form/field[@name='uom']" position="after"> <xpath expr="/form/field[@name='uom']" position="after">
<label name="subcontract_product"/> <label name="subcontract_product"/>
<field name="subcontract_product"/> <field name="subcontract_product"/>
<button name="create_purchase_request" string="Create Purchase Request" <button name="create_purchase_request" colspan="2"/>
colspan="2"/>
</xpath> </xpath>
<xpath expr="/form/notebook/page[@id='other']/field[@name='location']" <xpath expr="/form/notebook/page[@id='other']/field[@name='location']"
position="after"> position="after">