summaryrefslogtreecommitdiff
path: root/addons/mail_bot/static/src
diff options
context:
space:
mode:
authorjem-odoo <jem@openerp.com>2019-01-03 16:12:34 +0000
committerjem-odoo <jem@openerp.com>2019-01-04 07:44:23 +0000
commit4fd15e82bcdb0e1503b8168112e797cf024828b7 (patch)
treed8a3ed95a3bf9f1ee8463878be30da9a1b3695e6 /addons/mail_bot/static/src
parent581c16ef94798efc8f3720829b97e63354ce948b (diff)
[FIX] sale_timesheet: more flexible domain for sale line on task
Imagine the following use case: you have a partner (company) with children (person). Selling a service to that company will create a task on SO confirmation. Then the project lives its life, and sometime a person of that company requests a task. The task customer is the person, but should be linked to the SO as the time spent on its should be invoiced to the client (the company, customer of the SO). This is not possible, as the selectable Sale lines for a task was the one of the exact partner of the the task. This commit changes that by checking the commercial partner instead of the partner. So, for reporting purpose, we can keep the real customer of the task, and correctly invoice the related timesheet on the SO of customer company. opw-1915703 closes odoo/odoo#29921
Diffstat (limited to 'addons/mail_bot/static/src')
0 files changed, 0 insertions, 0 deletions