[IMP] move button from form to tree

This commit is contained in:
Stepan Savelyev 2020-01-10 09:54:04 +05:00
parent bc6f13172b
commit 29bcc527cb
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,10 @@
</group>
<group string="Annexed orders" name="annexes" attrs="{'invisible': [('id', '=', False)]}">
<field name="contract_annex_ids">
<field name="name"/>
<tree>
<field name="name"/>
<button name="action_print_form" type="object" string="Print" icon="fa-print"/>
</tree>
</field>
</group>
</sheet>

View File

@ -18,9 +18,6 @@
<field name="payment_term" invisible="1"/>
<field name="delivery_time" invisible="1"/>
</group>
<group>
<button name="action_print_form" type="object" string="Print" attrs="{'invisible': [('contract_id', '=', False)]}"/>
</group>
</sheet>
</form>