Skip to content
Permalink
Browse files

[FIX] sale_timesheet: multi line sale description in task

Task description does not consider the new line and so
on, on task generation from a Sales order.

Closes #37014

closes #37798

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
  • Loading branch information...
MohsenWaleed authored and jem-odoo committed Sep 17, 2019
1 parent 698a4d5 commit 09bbc036d4c1a54f95d8025c01b510e8ba0c8d0f
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/sale_timesheet/models/sale_order.py
@@ -6,7 +6,7 @@
from odoo.exceptions import ValidationError
from odoo.osv import expression
from odoo.tools.safe_eval import safe_eval
from odoo.tools import float_is_zero
from odoo.tools import float_is_zero, plaintext2html


class SaleOrder(models.Model):
@@ -223,7 +223,7 @@ def _timesheet_create_task_prepare_values(self):
'planned_hours': planned_hours,
'remaining_hours': planned_hours,
'partner_id': self.order_id.partner_id.id,
'description': self.name + '<br/>',
'description': plaintext2html(self.name) if self.name else False,
'project_id': project.id,
'sale_line_id': self.id,
'company_id': self.company_id.id,

0 comments on commit 09bbc03

Please sign in to comment.
You can’t perform that action at this time.