HR Expense Usability Decimal Precision

by
Odoo
v 10.0 Third Party 64
Download for v 10.0 Deploy on Odoo.sh
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Expense Tracker (hr_expense)
Accounting and Finance (account_accountant)
Invoicing (account)
Discuss (mail)
Employee Directory (hr)
Technical Name hr_expense_usability_dp
LicenseAGPL-3
Websitehttp://www.akretion.com
You bought this module and need support? Click here!

HR Expense Usability Decimal Precision

I want to be able to have a decimal precision different from the default 'Product Price' precision. But, if I create this new decimal precision via the XML data of the hr_expense_usability module, it won't apply on demo data nor data created via post_install script, because it's too "late" in the module installation process. I tried to create this new decimal precision via a pre_init_hook, but it doesn't work. So I decided to make a small module that only creates this decimal precision and the hr_expense_usability module depends on it.

The typical use case is:

  • I want to keep the Product Price precision to 2 (default value)
  • I want to have the Expense Unit Price precision to 3 (default value) to have proper support for KM costs (official French KM costs have a decimal precision of 3)

Credits

Contributors

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.