[FIX] sale_timesheet: currency displayed in project mapping
This commit's purpose is to display the correct currency for the hourly cost of employee in the project sol mapping. Currently, the currency displayed is the one of the sol instead of the currency of the employee. This is due to this commit:https://github.com/odoo/odoo/commit/83760b9f10b4bfe6a83671e4426bc5596e8d5f5c We added a monetary widget, but we are feeding it the wrong id. After this commit, the correct currency is displayed closes odoo/odoo#159588 X-original-commit: 8603d628bfc5c7dc620333ad674a1afb7b7123d1 Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
'default_order_id': sale_order_id,
|
||||
}"/>
|
||||
<field name="price_unit" widget="monetary" force_save="1" options="{'currency_field': 'currency_id'}"/>
|
||||
<field name="display_cost" widget="monetary" options="{'currency_field': 'currency_id'}"/>
|
||||
<field name="display_cost" widget="monetary" options="{'currency_field': 'cost_currency_id'}"/>
|
||||
<field name="is_cost_changed" column_invisible="True"/>
|
||||
<field name="currency_id" column_invisible="True"/>
|
||||
<field name="cost_currency_id" column_invisible="True"/>
|
||||
|
||||
Reference in New Issue
Block a user