Hugo Carlier (Huca) 40c99636c9 [IMP] sale_timesheet: initially set hours UoM for timesheet products
- product form view: set 'hours' as the UoM if the service is either
prepaid or invoice based on timesheets and if sale_timesheet is
installed.

- Details: Before this commit, the default UoM was the same for every
invoice policy or product type selected. With this commit the UoM is
automatically changed to 'Hours' when the product is of type service
and the invoice policy is either prepaid (A) or based on
timesheet (B). The value of the UoM can still be changed manually. The
following corner cases are managed:
    - The user edits (or creates) a product, changes its type to
    service then to storable/consumable without saving it. The UoM
    should then be set to its initial value (before change) or its
    default value.
    - The user edits (or creates) a product, changes its invoice
    policy to A or B then again to another one without saving it. The
    UoM should then be set to its initial value (before change) or its
    default value.
    - The user edits a product of type service with invoice policy set
    to A (or B) and UoM that has manually been changed to something
    else than 'Hours'. He then modifies the invoice policy to B (or A)
    and then again to A (or B) without saving the changes. The UoM should
    then be set back to its initial value.

Task-3072818

closes odoo/odoo#105951

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-06-14 09:38:59 +02:00
2023-06-10 16:50:55 +02:00
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%