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">
<field name="name">create_purchase_request</field>
<field name="model"
search="[('model', '=', 'production')]"/>
<field name="string">Create Purchase Request</field>
<field name="model" search="[('model', '=', 'production')]"/>
</record>
<record model="ir.ui.icon" id="go_home_icon">

View File

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