mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[IMP] quality_control_mrp: removed not required code
This commit is contained in:
@@ -11,7 +11,6 @@ class QcInspection(models.Model):
|
||||
@api.depends('object_id')
|
||||
def get_production(self):
|
||||
for inspection in self:
|
||||
inspection.production = False
|
||||
if inspection.object_id:
|
||||
if inspection.object_id._name == 'stock.move':
|
||||
inspection.production = inspection.object_id.production_id
|
||||
|
||||
@@ -35,6 +35,9 @@
|
||||
<field name="groups_id"
|
||||
eval="[(4, ref('mrp.group_mrp_user'))]" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product" position="after">
|
||||
<field name="production" />
|
||||
</field>
|
||||
<filter string="Product" position="after">
|
||||
<filter string="Production" domain="[]"
|
||||
context="{'group_by': 'production'}" />
|
||||
|
||||
@@ -31,6 +31,10 @@
|
||||
<field name="model">qc.inspection</field>
|
||||
<field name="inherit_id" ref="quality_control.qc_inspection_search_view" />
|
||||
<field name="arch" type="xml">
|
||||
<field name="product" position="after">
|
||||
<field name="picking" />
|
||||
<field name="lot" groups="stock.group_production_lot" />
|
||||
</field>
|
||||
<filter string="Product" position="after">
|
||||
<filter string="Picking"
|
||||
domain="[]"
|
||||
|
||||
Reference in New Issue
Block a user