Wednesday, January 27, 2021
1 change · master
Resolved issues and error corrections
Creating an expense report from selected expenses now opens a draft form instead of immediately saving a report. This makes the Discard button behave as expected and lets users review or change the report summary before saving.
Original PR description
In hr_expense module in after selecting expenses when user click on create report button that time create report function save data and after show data in view form, but there is one field which is…
In hr_expense module in after selecting expenses when user click on create report button that time create report function save data and
after show data in view form, but there is one field which is expense report summary which is not show in vieww form because of
field is empty. So , after solving that issue create report button open shell in edit mode.
Whwn user in list of expense page to create report , select number of expenses which are required for perfect expenses report and
then click on create report.
Discard button is not working as remove data from current expenses list and discard create report for particular report. Because of
create report button first save the data and after pass data in create report shell so when user click on discard then data are not
remove because of discard button remove only that data which are temporary. So , using context pass the data to create report shell
and in the field of create report summary set minimum and maximum expanse date if minimum and maximum expense date are same then only
minimum expense date by default set.
**TaskId - 2359834**
PR : https://github.com/odoo/odoo/pull/60621
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr