[FIX] stock: hide forecast button and field

It adds advanced data on the picking view.
It's not needed by default so we hide it

closes odoo/odoo#140577

Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
This commit is contained in:
Arnold Moyaux
2023-10-31 16:59:15 +00:00
parent 22a10e1eb2
commit e220953e82
+1 -1
View File
@@ -318,7 +318,7 @@
<button type="object" name="action_product_forecast_report" title="Forecast Report" icon="fa-area-chart text-danger"
invisible="quantity &gt; 0 or forecast_availability &gt; 0 or (parent.picking_type_code == 'outgoing' and state != 'draft')"/>
<field name="forecast_expected_date" column_invisible="True"/>
<field name="forecast_availability" string="Reserved"
<field name="forecast_availability" string="Forecast" optional="hide"
column_invisible="parent.state in ('draft', 'done') or parent.picking_type_code != 'outgoing'" widget="forecast_widget"/>
<field name="product_qty" readonly="1" column_invisible="True"/>
<field name="quantity" string="Quantity" readonly="not is_quantity_done_editable" column_invisible="parent.state=='draft'" decoration-danger="product_uom_qty and quantity > product_uom_qty and parent.state not in ['done', 'cancel']"/>