|
390 | 390 | <field name="product_packaging_id" groups="product.group_stock_packaging"/> |
391 | 391 | <field name="product_uom_qty" string="Demand" attrs="{'column_invisible': [('parent.immediate_transfer', '=', True)], 'readonly': ['|', ('is_initial_demand_editable', '=', False), '&', '&', ('show_operations', '=', True), ('is_locked', '=', True), ('is_initial_demand_editable', '=', False)]}"/> |
392 | 392 | <button type="object" name="action_product_forecast_report" title="Forecast Report" icon="fa-area-chart" |
393 | | - attrs="{'invisible': ['|', ('forecast_availability', '<=', 0), '|', ('parent.immediate_transfer', '=', True), '&', ('parent.picking_type_code', '=', 'outgoing'), ('state', '!=', 'draft')]}"/> |
| 393 | + attrs="{'invisible': ['|', ('forecast_availability', '<', 0), '|', ('parent.immediate_transfer', '=', True), '&', ('parent.picking_type_code', '=', 'outgoing'), ('state', '!=', 'draft')]}"/> |
394 | 394 | <button type="object" name="action_product_forecast_report" title="Forecast Report" icon="fa-area-chart text-danger" |
395 | | - attrs="{'invisible': ['|', ('forecast_availability', '>', 0), '|', ('parent.immediate_transfer', '=', True), '&', ('parent.picking_type_code', '=', 'outgoing'), ('state', '!=', 'draft')]}"/> |
| 395 | + attrs="{'invisible': ['|', ('forecast_availability', '>=', 0), '|', ('parent.immediate_transfer', '=', True), '&', ('parent.picking_type_code', '=', 'outgoing'), ('state', '!=', 'draft')]}"/> |
396 | 396 | <field name="forecast_expected_date" invisible="1"/> |
397 | 397 | <field name="forecast_availability" string="Reserved" |
398 | 398 | attrs="{'column_invisible': ['|', '|', ('parent.state', 'in', ['draft', 'done']), ('parent.picking_type_code', '!=', 'outgoing'), ('parent.immediate_transfer', '=', True)]}" widget="forecast_widget"/> |
|
0 commit comments