Before this commit, when the `Milestones` feature is disable, the user can always defined a service product with invoice policy equals to 'Based on Milestones' but since the feature is disabled he cannot add this product on a milestone and so this configuratiom is useless without the feature. This commit removes the item into the invoice_policy field Selection when the feature is disabled. Moreover, when the feature is disabled, the existing products with this setting should be updated to be a service product with `invoice_policy='delivered_manual'`. The quantity delivered method of the existing SOLs containing those products should also be updated to allow the user to manually edit the quantity delivered of those SOLs when the `Milestones` feature is disabled. However, when the `Milestones` feature is enabled again, only the products contained in SOL linked to a milestone will be updated because we cannot assume all service products with `invoice_policy='delivered_manual'` were a service products with invoice policy based on Milestones. Also the existing SOLs containing the products updated will not be updated too to not impact the quantity delivered. task-2829542
10 lines
302 B
Python
10 lines
302 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import common
|
|
from . import test_child_tasks
|
|
from . import test_project_profitability
|
|
from . import test_res_config_settings
|
|
from . import test_sale_project
|
|
from . import test_so_line_milestones
|