changeset 937e1114ce40 in modules/account_stock_landed_cost:default
details: 
https://hg.tryton.org/modules/account_stock_landed_cost?cmd=changeset;node=937e1114ce40
description:
        Add landed cost relate from supplier shipment

        issue9609
        review319971002
diffstat:

 CHANGELOG   |   1 +
 account.xml |  24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 0 deletions(-)

diffs (42 lines):

diff -r 8a909205c706 -r 937e1114ce40 CHANGELOG
--- a/CHANGELOG Sun Sep 27 16:46:23 2020 +0200
+++ b/CHANGELOG Sun Oct 04 00:37:27 2020 +0200
@@ -1,3 +1,4 @@
+* Add landed cost relate from supplier shipment
 * Rename landed cost state from cancel to cancelled
 
 Version 5.6.0 - 2020-05-04
diff -r 8a909205c706 -r 937e1114ce40 account.xml
--- a/account.xml       Sun Sep 27 16:46:23 2020 +0200
+++ b/account.xml       Sun Oct 04 00:37:27 2020 +0200
@@ -77,6 +77,30 @@
         <menuitem parent="account_invoice.menu_invoices" id="menu_landed_cost"
             sequence="50" action="act_landed_cost_form"/>
 
+        <record model="ir.action.act_window" 
id="act_landed_cost_form_shipment">
+            <field name="name">Landed Costs</field>
+            <field name="res_model">account.landed_cost</field>
+            <field
+                name="domain"
+                eval="[If(Eval('active_ids', []) == [Eval('active_id')], 
('shipments', '=', Eval('active_id')), ('shipments', 'in', 
Eval('active_ids')))]"
+                pyson="1"/>
+        </record>
+        <record model="ir.action.act_window.view" 
id="act_landed_cost_form_shipment_view1">
+            <field name="sequence" eval="10"/>
+            <field name="view" ref="landed_cost_view_list"/>
+            <field name="act_window" ref="act_landed_cost_form_shipment"/>
+        </record>
+        <record model="ir.action.act_window.view" 
id="act_landed_cost_form_shipment_view2">
+            <field name="sequence" eval="20"/>
+            <field name="view" ref="landed_cost_view_form"/>
+            <field name="act_window" ref="act_landed_cost_form_shipment"/>
+        </record>
+        <record model="ir.action.keyword" 
id="act_landed_cost_form_shipment_keyword1">
+            <field name="keyword">form_relate</field>
+            <field name="model">stock.shipment.in,-1</field>
+            <field name="action" ref="act_landed_cost_form_shipment"/>
+        </record>
+
         <record model="ir.model.access" id="access_landed_cost">
             <field name="model" search="[('model', '=', 
'account.landed_cost')]"/>
             <field name="perm_read" eval="False"/>

Reply via email to