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

This commit is contained in:
Juanjo Garcia 2019-10-03 10:33:48 +02:00
parent a5cc311c95
commit 3957a09ed6
2 changed files with 2 additions and 1 deletions

View file

@ -25,6 +25,7 @@
<record model="ir.model.button" id="recompute_price_button_id_button"> <record model="ir.model.button" id="recompute_price_button_id_button">
<field name="name">recompute_price</field> <field name="name">recompute_price</field>
<field name="string">Recompute Price</field>
<field name="model" search="[('model', '=', 'sale.sale')]"/> <field name="model" search="[('model', '=', 'sale.sale')]"/>
</record> </record>

View file

@ -5,6 +5,6 @@ copyright notices and license terms. -->
<xpath <xpath
expr="/form/notebook/page[@id='sale']/group/group[@id='buttons']/button[@name='cancel']" expr="/form/notebook/page[@id='sale']/group/group[@id='buttons']/button[@name='cancel']"
position="before"> position="before">
<button name="recompute_price" string="Recompute Price"/> <button name="recompute_price"/>
</xpath> </xpath>
</data> </data>