You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

56 lines
2.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!--TREE [LOTS]-->
<record id="stock.view_production_lot_tree" model="ir.ui.view">
<field name="name">stock.production.lot.tree</field>
<field name="model">stock.production.lot</field>
<field name="arch" type="xml">
<tree string="Serial Number" colors="red:state=='red';#ff8080:state=='lite_red'">
<field name="name"/>
<field name="ref"/>
<field name="product_id"/>
<field name="create_date"/>
<field name="state"/>
</tree>
</field>
</record>
<!--SEARCH [LOTS]-->
<record model="ir.ui.view" id="search_med_lot_filter">
<field name="name">Production Lots Filter</field>
<field name="model">stock.production.lot</field>
<field name="arch" type="xml">
<search string="Product Lots Filter">
<field name="name" string="Product Lots" filter_domain="['|',('name','ilike',self),('ref','ilike',self)]"/>
<field name="product_id"/>
<group expand="0" string="Group By">
<filter string="Medicines" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
</group>
</search>
</field>
</record>
<!--ACTION [LOTS]-->
<record id="action_med_lot" model="ir.actions.act_window">
<field name="name">Serial Numbers</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.production.lot</field>
<field name="view_type">form</field>
<field name="view_id" ref="stock.view_production_lot_tree"/>
<field name="search_view_id" ref="search_med_lot_filter"/>
<field name="context">{}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add a serial number.
</p><p>
This is the list of all the production lots you recorded. When
you select a lot, you can get the traceability of the products contained in lot.
</p>
</field>
</record>
<!--MENU [LOTS]-->
<menuitem action="action_med_lot" id="menu_action_med_lot_form"
parent="medical_feature.menu_med"
sequence="40"
groups="stock.group_production_lot"/>
</data>
</openerp>