opt product expired

This commit is contained in:
ivan deng
2019-06-03 06:39:35 +08:00
parent 73e84c2b34
commit a3c1720406
2 changed files with 23 additions and 1 deletions

View File

@@ -17,7 +17,7 @@
{ {
'name': "Stock Superbar ztree, parent children tree", 'name': "Stock Superbar ztree, parent children tree",
'version': '12.19.05.28', 'version': '12.19.06.03',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',
@@ -46,6 +46,7 @@
'views/stock_warehouse_orderpoint_views.xml', 'views/stock_warehouse_orderpoint_views.xml',
'views/stock_rule_views.xml', 'views/stock_rule_views.xml',
'views/stock_location_route_views.xml', 'views/stock_location_route_views.xml',
'views/stock_production_lot_views.xml',
], ],
'demo': [ 'demo': [
], ],

View File

@@ -0,0 +1,21 @@
<odoo>
<data>
<!--批次-->
<record id="search_product_lot_filter_superbar" model="ir.ui.view">
<field name="name">Production Lots Filter superbar</field>
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.search_product_lot_filter"/>
<field name="arch" type="xml">
<xpath expr="//search">
<superbar view_mode="tree">
<field name="product_id" domain="[('tracking', 'in', ('serial', 'lot'))]"/>
</superbar>
</xpath>
</field>
</record>
<record id="stock.action_production_lot_form" model="ir.actions.act_window">
<field name="context"/>
</record>
</data>
</odoo>