summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorMaxLarue <mla@odoo.com>2019-09-06 12:08:02 +0000
committerjem-odoo <jem@openerp.com>2019-09-17 06:51:23 +0000
commit21a51d04c3f6bf09faf9d3e528d825eee37ac34b (patch)
tree9a8dddd61fb9a21cc4516e0d68decadc890493a7 /addons/web/static/src/js/views/basic/basic_model.js
parentdde0746725d8791ad33807151ca8f9a49d813144 (diff)
[FIX] sale_timesheet: display timesheeted quantity correctly on sale order
There was a stat-button on sale orders coming from a task with timesheet that displayed the quantity of timesheets linked to the origin task. This stat-button was re labeled with the rimesheet uom (hours/days/...) but the field still displayed the number of timesheets instead of the total timesheeted amount in the correct uom. This commit introduces a new computed field on the sale order, which computes the amount of time on timesheets depending on the used uom. The compute method uses the product_uom_hour record as it is the uom in which the amount is stored on the model, that record is guaranteed to exist as it's model unlink method was overridden to prevent removing working-time uom. Task-2065079
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions