[IMP] mrp: search for product attribute values in MO view
Task: 2799674 Community PR: https://github.com/odoo/odoo/pull/88801 Part-of: odoo/odoo#88801
This commit is contained in:
@@ -60,6 +60,7 @@ class MrpProduction(models.Model):
|
||||
compute='_compute_product_id', store=True, copy=True,
|
||||
readonly=True, required=True, check_company=True,
|
||||
states={'draft': [('readonly', False)]})
|
||||
product_variant_attributes = fields.Many2many('product.template.attribute.value', related='product_id.product_template_attribute_value_ids')
|
||||
product_tracking = fields.Selection(related='product_id.tracking')
|
||||
product_tmpl_id = fields.Many2one('product.template', 'Product Template', related='product_id.product_tmpl_id')
|
||||
product_qty = fields.Float(
|
||||
|
||||
@@ -491,6 +491,7 @@
|
||||
<search string="Search Production">
|
||||
<field name="name" string="Manufacturing Order" filter_domain="['|', ('name', 'ilike', self), ('origin', 'ilike', self)]"/>
|
||||
<field name="product_id"/>
|
||||
<field name="product_variant_attributes"/>
|
||||
<field name="move_raw_ids" string="Component" filter_domain="[('move_raw_ids.product_id', 'ilike', self)]"/>
|
||||
<field name="name" string="Work Center" filter_domain="[('bom_id.operation_ids.workcenter_id', 'ilike', self)]"/>
|
||||
<field name="origin"/>
|
||||
|
||||
Reference in New Issue
Block a user