[IMP] mrp: unbuild tooltips and fields label rename

The purpose is to help the user if he has difficulties
to know the purpose of a field. The field for tracking
was named lot but it is also used for serial number. That
could be confusing for the end user. Also rename source as
source location in order to be coherent with destination
location

This commit is related to task ID 39843.
This commit is contained in:
Darshil Trivedi
2018-11-28 11:47:22 +00:00
committed by Arnold Moyaux
parent 6e31e8d535
commit e25b9c9ffa
+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')