11
11
<group expand="0" string="Filters...">
12
12
<filter icon="terp-go-home" name="location_type_internal" string="Internal" domain="[('location_type','=','internal')]"/>
13
13
<separator orientation="vertical"/>
14
<filter icon="terp-partner" name="location_type_supplier" string="Supplier" domain="[('location_type','=','supplier')]"/>
15
<filter icon="terp-partner" name="location_type_customer" string="Customer" domain="[('location_type','=','customer')]"/>
14
<field name="product_id" default_focus="1" eval="context.get('product_id', False)"/>
15
<field name="prodlot_id" eval="context.get('prodlot_id', False)"/>
16
<field name="expired_date" />
16
17
<separator orientation="vertical" />
17
<field name="location_id" />
18
<field name="product_id" />
19
<field name="prodlot_id" />
20
<field name="expired_date" />
18
<field name="location_id" filter_domain="[('location_id', 'child_of', self)]" invisible="1" />
21
<group expand="0" string="Group By...">
22
<filter string="Partner" name="group_partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
23
<separator orientation="vertical"/>
24
<filter name="group_company" string="Company" groups="base.group_multi_company" icon="terp-go-home" context="{'group_by':'company_id'}"/>
25
<filter name="group_location" string="Location" icon="terp-go-home" context="{'group_by':'location_id'}"/>
26
<separator orientation="vertical"/>
27
<filter name="group_lot" string="Lot" icon="terp-accessories-archiver" context="{'group_by':'prodlot_id'}"/>
28
<filter name="group_expired" string="Expired Date" icon="terp-accessories-archiver" context="{'group_by': 'expired_date'}" />
29
<filter name="group_product_categ_id" string="Product Category" icon="terp-stock_symbol-selection" context="{'group_by':'product_categ_id'}"/>
30
<filter name="group_product" string="Product" icon="terp-accessories-archiver" context="{'group_by':'product_id'}"/>
31
<separator orientation="vertical"/>
32
<filter string="Date" icon="terp-go-month" context="{'group_by':'date'}"/>
33
<filter string="State" icon="terp-stock_effects-object-colorize" context="{'group_by':'state'}"/>
29
42
<field name="type">tree</field>
30
43
<field name="arch" type="xml">
31
44
<tree string="Batch Recall">
45
<field name="date" invisible="1"/>
46
<field name="company_id" invisible="1"/>
32
47
<field name="location_type" invisible="1"/>
33
<field name="product_id"/>
48
<field name="location_id"/>
34
49
<field name="prodlot_id"/>
35
50
<field name="expired_date"/>
36
<field name="location_id"/>
37
<!--field name="partner_id" context="{'contact_display':'partner'}"/>-->
38
<field name="product_qty" />
51
<field name="partner_id" context="{'contact_display':'partner'}"/>
52
<field name="product_id"/>
53
<field name="state" invisible="1"/>
54
<field name="product_qty" sum="Total quantity"/>
55
<field name="value" sum="Total value"/>