Add link button

issue9051
review280841002
This commit is contained in:
Cédric Krier committed 2020-04-13 12:21:55 +02:00
1 parent 9bc05a067e
commit afa16ad10c
4 files changed
+32 -9

No files matched your search

+1
View File
@@ -14,6 +14,7 @@ this repository contains the full copyright notices and license terms. -->
<field name="domain"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('party', '=', Eval('active_id')), ('party', 'in', Eval('active_ids')))]"
pyson="1"/>
<field name="search_value" eval="[('state', 'not in', ['done', 'cancel'])]" pyson="1"/>
</record>
<record model="ir.action.keyword"
id="act_open_purchase_keyword1">
+23
View File
@@ -92,5 +92,28 @@ this repository contains the full copyright notices and license terms. -->
<field name="action" ref="act_purchase_shipment_returns_relate"/>
</record>
<record model="ir.action.act_window" id="act_purchase_move_relate">
<field name="name">Moves</field>
<field name="res_model">stock.move</field>
<field
name="domain"
eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('purchase', '=', Eval('active_id')), ('purchase', 'in', Eval('active_ids')))]"
pyson="1"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view1">
<field name="sequence" eval="10"/>
<field name="view" ref="move_view_list_shipment"/>
<field name="act_window" ref="act_purchase_move_relate"/>
</record>
<record model="ir.action.act_window.view" id="act_move_form_view2">
<field name="sequence" eval="20"/>
<field name="view" ref="stock.move_view_form"/>
<field name="act_window" ref="act_purchase_move_relate"/>
</record>
<record model="ir.action.keyword" id="act_move_form_keyword1">
<field name="keyword">form_relate</field>
<field name="model">purchase.purchase,-1</field>
<field name="action" ref="act_purchase_move_relate"/>
</record>
</data>
</tryton>
+3
View File
@@ -2,6 +2,9 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//group[@id='links']" position="inside">
<link icon="tryton-purchase" name="purchase.act_purchase_form2" empty="hide"/>
</xpath>
<xpath expr="/form/notebook/page[@id='general']" position="after">
<page string="Supplier" id="supplier">
<label name="customer_code"/>
+5 -9
View File
@@ -61,16 +61,12 @@ this repository contains the full copyright notices and license terms. -->
<separator name="comment" colspan="4"/>
<field name="comment" colspan="4"/>
</page>
<page name="invoices">
<field name="invoices" colspan="4" mode="tree"/>
</page>
<page name="shipments">
<field name="moves" colspan="4" view_ids="purchase.move_view_list_shipment" mode="tree"/>
<field name="shipments" colspan="4" mode="tree"/>
<field name="shipment_returns" colspan="4" mode="tree"/>
</page>
</notebook>
<label id="empty" colspan="3"/>
<group id="links" col="-1" colspan="3">
<link icon="tryton-shipment-in" name="purchase.act_shipment_form"/>
<link icon="tryton-account" name="purchase.act_invoice_form"/>
<link icon="tryton-shipment-out" name="purchase.act_return_form"/>
</group>
<group col="-1" colspan="3" id="buttons">
<button name="cancel" icon="tryton-cancel"/>
<button name="draft"/>