Skip to content

Commit

Permalink
[FIX] product_print_category: Make print_category_id searchable on pr…
Browse files Browse the repository at this point in the history
…oduct template

By storing print_category_id, we can search on it.

Forward-port from v12 of grap/grap-odoo-incubator#152

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
  • Loading branch information
carmenbianca committed Dec 12, 2022
1 parent 45df496 commit 1603440
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions product_print_category/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ProductTemplate(models.Model):
comodel_name="product.print.category",
compute="_compute_print_category_id",
inverse="_inverse_print_category_id",
store=True,
)

to_print = fields.Boolean(compute="_compute_to_print", inverse="_inverse_to_print")
Expand Down

0 comments on commit 1603440

Please sign in to comment.