add and fix stock

This commit is contained in:
ivan deng
2018-11-05 06:03:12 +08:00
parent f2ec74f41a
commit aa0607f15e
4 changed files with 57 additions and 0 deletions

View File

@@ -47,6 +47,9 @@
<attribute name="group_delete">0</attribute> <attribute name="group_delete">0</attribute>
<attribute name="quick_create">0</attribute> <attribute name="quick_create">0</attribute>
</xpath> </xpath>
<xpath expr="//field[@name='warehouse_id']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field> </field>
</record> </record>

View File

@@ -36,6 +36,7 @@
'data': [ 'data': [
'views/product_putaway_views.xml', 'views/product_putaway_views.xml',
'views/stock_procrules_views.xml',
], ],
'demo': [ 'demo': [
], ],

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- 补货规则设置 -->
<record id="action_procurement_rule_app" model="ir.actions.act_window">
<field name="name">Global Procurement Rules</field>
<field name="res_model">stock.location.route</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a route.
</p>
<p>You can define here the main routes that run through
your warehouses and that define the flows of your products. These
routes can be assigned to a product, a product category or be fixed
on procurement or sales order. </p>
</field>
</record>
<menuitem id="app_menu_procurement_rules" action="action_procurement_rule_app"
parent="felive_menu_stock_config_settings" sequence="60"/>
<!-- 推式规则设置 -->
<menuitem id="felive_menu_stock_location_path" name="Global Push Rules" action="stock.stolocpath" parent="felive_menu_stock_config_settings"
sequence="70"/>
</data>
</odoo>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- 补货规则设置 -->
<record id="action_procurement_rule" model="ir.actions.act_window">
<field name="name">Global Procurement Rules</field>
<field name="res_model">procurement.rule</field>
<field name="type">ir.actions.act_window</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a route.
</p>
<p>You can define here the main routes that run through
your warehouses and that define the flows of your products. These
routes can be assigned to a product, a product category or be fixed
on procurement or sales order. </p>
</field>
</record>
<menuitem id="menu_procurement_rule" parent="stock.menu_warehouse_config" action="action_procurement_rule" sequence="5"/>
<!--&lt;!&ndash; 推式规则设置 &ndash;&gt;-->
<!--<menuitem id="menu_stock_location_path" name="Global Push Rules" action="stock.stolocpath" parent="felive_menu_stock_config_settings"-->
<!--sequence="70"/>-->
</data>
</odoo>