diff options
| author | Robot Odoo <xmo+roboto@odoo.com> | 2018-11-28 14:41:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-28 14:41:02 +0100 |
| commit | e48cc56b3bbfdc70ca4ec25ab2e8271bfd05dc34 (patch) | |
| tree | 6548e3f66bfa3eea839826a44055c9cd02c6e94f | |
| parent | 6e31e8d535347ddee184ec8f176df1256e3cfff7 (diff) | |
| parent | b2ec6bc7ad906b2286005768f19f57e8c6e04dfb (diff) | |
[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
| -rw-r--r-- | addons/mrp/models/mrp_unbuild.py | 10 | ||||
| -rw-r--r-- | addons/mrp/views/mrp_unbuild_views.xml | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/addons/mrp/models/mrp_unbuild.py b/addons/mrp/models/mrp_unbuild.py index 7ee94a3af71..e33e0dfbea5 100644 --- a/addons/mrp/models/mrp_unbuild.py +++ b/addons/mrp/models/mrp_unbuild.py @@ -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') diff --git a/addons/mrp/views/mrp_unbuild_views.xml b/addons/mrp/views/mrp_unbuild_views.xml index e811e2a6140..58c1fb6014b 100644 --- a/addons/mrp/views/mrp_unbuild_views.xml +++ b/addons/mrp/views/mrp_unbuild_views.xml @@ -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), '&', ('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"/> |
