[IMP] mrp: unbuild ui improvements

Add some tooltips and rename labels for lot and source_location fields.
More details in specific commits

Task link : https://www.odoo.com/web?#id=39843&action=327&model=project.task&view_type=form&menu_id=4720
Pad link : https://pad.odoo.com/p/r.c50cfff56ca538324f15214213c860d9

closes odoo/odoo#27017
This commit is contained in:
Robot Odoo
2018-11-28 14:41:02 +01:00
committed by GitHub
2 changed files with 7 additions and 7 deletions
+5 -5
View File
@@ -37,18 +37,18 @@ class MrpUnbuild(models.Model):
domain="[('product_id', '=', product_id), ('state', 'in', ['done', 'cancel'])]",
states={'done': [('readonly', True)]})
lot_id = fields.Many2one(
'stock.production.lot', 'Lot',
'stock.production.lot', 'Lot/Serial Number',
domain="[('product_id', '=', product_id)]",
states={'done': [('readonly', True)]})
states={'done': [('readonly', True)]}, help="Lot/Serial Number of the product to unbuild.")
has_tracking=fields.Selection(related='product_id.tracking', readonly=True)
location_id = fields.Many2one(
'stock.location', 'Location',
'stock.location', 'Source Location',
default=_get_default_location_id,
required=True, states={'done': [('readonly', True)]})
required=True, states={'done': [('readonly', True)]}, help="Location where the product you want to unbuild is.")
location_dest_id = fields.Many2one(
'stock.location', 'Destination Location',
default=_get_default_location_dest_id,
required=True, states={'done': [('readonly', True)]})
required=True, states={'done': [('readonly', True)]}, help="Location where you want to send the components resulting from the unbuild order.")
consume_line_ids = fields.One2many(
'stock.move', 'consume_unbuild_id', readonly=True,
string='Consumed Disassembly Lines')
+2 -2
View File
@@ -113,13 +113,13 @@
</div>
<group>
<group>
<field name="product_id" domain="[('bom_ids', '!=', False)]"/>
<field name="product_id" domain="[('bom_ids', '!=', False)]" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>
<field name="bom_id" domain="['|',
('product_id','=',product_id),
'&amp;',
('product_tmpl_id.product_variant_ids','=',product_id),
('product_id','=',False),
('type', '=', 'normal')]"/>
('type', '=', 'normal')]" attrs="{'readonly':[('mo_id','!=',False)]}" force_save="1"/>
<label for="product_qty"/>
<div class="o_row">
<field name="product_qty"/>