mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add and fix stock
This commit is contained in:
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
'data': [
|
'data': [
|
||||||
'views/product_putaway_views.xml',
|
'views/product_putaway_views.xml',
|
||||||
|
'views/stock_procrules_views.xml',
|
||||||
],
|
],
|
||||||
'demo': [
|
'demo': [
|
||||||
],
|
],
|
||||||
|
|||||||
27
app_stock_putaway/static/stock_procrules_views.xml
Normal file
27
app_stock_putaway/static/stock_procrules_views.xml
Normal 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>
|
||||||
26
app_stock_putaway/views/stock_procrules_views.xml
Normal file
26
app_stock_putaway/views/stock_procrules_views.xml
Normal 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"/>
|
||||||
|
<!--<!– 推式规则设置 –>-->
|
||||||
|
<!--<menuitem id="menu_stock_location_path" name="Global Push Rules" action="stock.stolocpath" parent="felive_menu_stock_config_settings"-->
|
||||||
|
<!--sequence="70"/>-->
|
||||||
|
</data>
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user