Hi everyone,
Please can someone help to make payment_mode field in hr_expense model the default value for company instead of employee to reimburse.
I'm using odoo 13
What code to use?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi everyone,
Please can someone help to make payment_mode field in hr_expense model the default value for company instead of employee to reimburse.
I'm using odoo 13
What code to use?
You can do it without customization code:
Activate Developer mode then Open expense module and click on create button and select company in payment mode then
click on “Open Developer Tool” which you can find on the upper right side of the tab, and select the option “Set Default”
From the popup, select the "Paid by = Company" and you can also select if it is only for current user/all users and click on SAVE DEFAULT.
If you want to delete this default value in future, you can enable developer mode and open settings and from Technical and open User-defined Defaults and you will find all user defined defaults value.
Woow! That was super easy. Thanks a lot you saved my time. No need for customizations and that is true.
Very glad to hear that.
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up