You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
546 B

  1. from odoo import models, fields
  2. class ProductProduct(models.Model):
  3. _inherit = "product.product"
  4. variant_description_sale = fields.Text(
  5. "Variant sales description",
  6. translate=True,
  7. help="This note is added to sales orders and invoices for this particular variant.",
  8. )
  9. def get_product_multiline_description_sale(self):
  10. name = super().get_product_multiline_description_sale()
  11. if self.variant_description_sale:
  12. name += "\n" + self.variant_description_sale
  13. return name