Skip to content

Commit

Permalink
[IMP] product_pricelist_direct_print: Add option to show Sales Descri…
Browse files Browse the repository at this point in the history
…ption
  • Loading branch information
bosd committed Feb 2, 2025
1 parent a28fc24 commit 57b3eaa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
<tr t-foreach="category_products" t-as="product">
<td>
<span t-field="product.display_name" />
<span t-if="o.show_description_sale">
<br />
<span t-out="product.description_sale" />
</span>
</td>
<td t-if="o.show_standard_price" class="text-right">
<span t-field="product.standard_price" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class ProductPricelistPrint(models.TransientModel):
show_standard_price = fields.Boolean(string="Show Cost Price")
show_sale_price = fields.Boolean()
show_pricelist_name = fields.Boolean(default=True)
show_description_sale = fields.Boolean(string="Show Sales Description")
order_field = fields.Selection(
[("name", "Name"), ("default_code", "Internal Reference")], string="Order"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<field name="max_categ_level" />
</group>
<group string="Product Options">
<field name="show_description_sale" />
<field
name="categ_ids"
widget="many2many_tags"
Expand Down

0 comments on commit 57b3eaa

Please sign in to comment.