[IMP] mrp,stock: UI changes
1. Rename 'Reserved' on MO components to 'Quantity' 2. Hide `picked` field on MO compoents by default 3. Add tooltip for `picked` field on sm. closes odoo/odoo#140150 Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
@@ -403,14 +403,14 @@
|
||||
<button type="object" name="action_product_forecast_report" title="Forecast Report" icon="fa-area-chart text-danger" column_invisible="parent.state != 'draft'" invisible="forecast_availability >= 0"/>
|
||||
<!-- TODO put forecast back -->
|
||||
<field name="forecast_availability" string="Forecast" widget="forecast_widget"/>
|
||||
<field name="quantity" string="Reserved"
|
||||
<field name="quantity" string="Quantity"
|
||||
decoration-success="product_uom_qty - quantity > 0.0001"
|
||||
decoration-warning="quantity - product_uom_qty > 0.0001"
|
||||
column_invisible="parent.state == 'draft'"
|
||||
readonly="has_tracking != 'none'"
|
||||
force_save="1" widget="mrp_consumed"/>
|
||||
<field name="product_uom" readonly="state != 'draft' and id" options="{'no_open': True, 'no_create': True}" groups="uom.group_uom"/>
|
||||
<field name="picked" string="Consumed" column_invisible="parent.state == 'draft'" optional="show"/>
|
||||
<field name="picked" string="Consumed" column_invisible="parent.state == 'draft'" optional="hide"/>
|
||||
<field name="manual_consumption" column_invisible="True" force_save="1"/>
|
||||
<field name="show_details_visible" column_invisible="True"/>
|
||||
<field name="lot_ids" widget="many2many_tags"
|
||||
|
||||
@@ -8517,6 +8517,13 @@ msgid ""
|
||||
"products."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: model:ir.model.fields,help:stock.field_stock_move__picked
|
||||
msgid ""
|
||||
"This checkbox is just indicative, it doesn't validate or generate any "
|
||||
"product moves."
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: model:ir.model.fields,help:stock.field_stock_rule__name
|
||||
msgid "This field will fill the packing origin and the name of its moves"
|
||||
|
||||
@@ -108,7 +108,8 @@ class StockMove(models.Model):
|
||||
"* Done: The product has been transferred and the transfer has been confirmed.")
|
||||
picked = fields.Boolean(
|
||||
'Picked', compute='_compute_picked', inverse='_inverse_picked',
|
||||
store=True, readonly=False, copy=False, default=False)
|
||||
store=True, readonly=False, copy=False, default=False,
|
||||
help="This checkbox is just indicative, it doesn't validate or generate any product moves.")
|
||||
|
||||
# used to record the product cost set by the user during a picking confirmation (when costing
|
||||
# method used is 'average price' or 'real'). Value given in company currency and in product uom.
|
||||
|
||||
Reference in New Issue
Block a user