Skip to Content
Menu
This question has been flagged
2 Replies
2746 Views

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?

Avatar
Discard
Best Answer

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.


Avatar
Discard
Author Best Answer

Woow! That was super easy.  Thanks a lot you saved my time.  No need for customizations and that is true.

Avatar
Discard