diff --git a/data/product_template_data.xml b/data/product_template_data.xml index 65b53c08de8cd1a257c3edb41563ef4d7f38e6c5..0b1b8605ba30688eca610e52e5526e89c4df0df7 100644 --- a/data/product_template_data.xml +++ b/data/product_template_data.xml @@ -1,7 +1,7 @@ <?xml version="1.0" ?> <odoo> <data noupdate="0"> - <record id="ap_product_other_coll" model="product.template"> + <record id="ap_product_other_coll" model="product.template"> <field name="name">Collerette</field> <field name="type">product</field> <field name="categ_id" ref="ap_sale_project.product_category_other_hw" /> diff --git a/models/sale_project.py b/models/sale_project.py index 4181b6b8ec509e7ef3b2a488d9755c5b94c4fef1..0883c192e6cb4f75253d300087234f219db944b5 100644 --- a/models/sale_project.py +++ b/models/sale_project.py @@ -327,12 +327,17 @@ class SaleProject(models.Model): data.update( { "order_id": self.sale_order_id.id, - "name": "Projet " + self.name + " - " + product_tmpl.name, + "name": "Projet " + + self.name + + " - " + + product_tmpl.product_variant_id.get_product_multiline_description_sale(), "product_id": product_tmpl.product_variant_id.id, "sale_project_id": self.id, } ) - self.env["sale.order.line"].with_context(default_project_id=False).create(data) + self.env["sale.order.line"].with_context( + default_project_id=False + ).create(data) self.sale_order_id.clean_sale_order()