[FIX] stock_account: inventory valuation: default value
... for 'compute_at_date' field (default 0, 'Current Inventory'). Before the new views, this value was selected by default by the FieldRadio, but it was a mere coincidence. Indeed, as the field had no default value, no value was specified in the default_get, and for no reason, the widget selected 0 as value. Anyway, as this behavior was wanted, we simply specify a default value in the action.
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="view_wizard_valuation_history"/>
|
||||
<field name="target">new</field>
|
||||
<field name="context">{'default_compute_at_date': 0}</field>
|
||||
</record>
|
||||
<menuitem id="stock.menu_quants" name="Inventory Valuation" parent="stock.menu_warehouse_report" sequence="120" action="action_wizard_stock_valuation_history"/>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user