Delete string at view level and add to ir.model.button.
Code refactoring.
This commit is contained in:
parent
9007fa60ac
commit
a84b50eab1
|
@ -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">
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue