Add button post

This commit is contained in:
Oscar Alvarez 2020-12-03 15:40:23 -05:00
parent 7a74398123
commit 2119273ae9
2 changed files with 11 additions and 0 deletions

View File

@ -3,6 +3,16 @@
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.model.button" id="staff_liquidation_post_button">
<field name="name">post</field>
<field name="string">Post</field>
<field name="model" search="[('model', '=', 'staff.liquidation')]"/>
</record>
<record model="ir.model.button-res.group"
id="staff_liquidation_post_button_group_account">
<field name="button" ref="staff_liquidation_post_button"/>
<field name="group" ref="staff.group_staff"/>
</record>
<record model="ir.ui.view" id="liquidation_view_form">
<field name="model">staff.liquidation</field>

View File

@ -12,4 +12,5 @@ this repository contains the full copyright notices and license terms. -->
<field name="total_deductions"/>
<field name="net_payment"/>
<field name="state"/>
<button name="post"/>
</tree>