diff options
| author | Xavier BOL (xbo) <xbo@odoo.com> | 2020-12-16 14:49:27 +0100 |
|---|---|---|
| committer | Xavier BOL (xbo) <xbo@odoo.com> | 2020-12-21 15:35:21 +0100 |
| commit | 69c7d96e1671266e939163bde05afe684f907606 (patch) | |
| tree | 8f7afba4845a91ecae4fe3ae3bdcf0b456745cc2 /doc/reference/javascript_reference.rst | |
| parent | d64dfb7d4309db1ad333d79d96e9bac889d4c83c (diff) | |
[IMP] sale_timesheet: change SO compute behaviour
Before this commit, the compute doesn't assigned an SO on a task when
the project linked has not SO and the pricing type is not task rate.
Because, we give only the SO of the project to the task when the project
is employee rate or project rate.
This commit changes the implementation of the _compute_sale_order_id in
task. Now, if the allow_billable=False or non_allow_billable=True then
the SO is False. Otherwise, we give the SO of the SOL selected in the
task or the SO in the project. And moreover, if the partner_id is not
set, we give the partner_id defined in the SO assigned.
task-2409761
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
