TIP: You can type at any time to perform a new search.
Product - Print Categories
product_print_category · OCA/product-attribute
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Product
- Folder size
- 0.3 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-attribute
- Last tracking update
- 2026-08-07 08:42:54
- Authors
- Odoo Community Association (OCA), GRAP, La Louve, Coop IT Easy SC
- Maintainers
- Odoo Community Association (OCA), GRAP, La Louve, Coop IT Easy SC
- Committers
- David Beal, Weblate, OCA-git-bot, oca-ci, Heliconia Solutions
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
This module is designed to extend product printing features. It allows user to create new print categories of products depending of the data that are on the labels of the products variants. When a field has changed, the product will be set as 'To print' automatically. This module requires to install custom modules to have pricetags templates, or alternatively to create pricetag reports templates by UI.
Code Analysis ⓘ
Views touched (9)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
qweb_template_demo_1 |
qweb_template_demo_1 | ir.ui.view | qweb | New |
qweb_template_demo_2 |
qweb_template_demo_2 | ir.ui.view | qweb | New |
report_pricetag |
report_pricetag | ir.ui.view | qweb | New |
view_product_print_category_form_2 |
product.print.category | form | New | |
view_product_print_category_rule_tree |
product.print.category.rule | list | New | |
view_product_print_category_tree |
product.print.category | list | New | |
view_product_print_wizard_form |
product.print.wizard | form | New | |
view_product_product_form |
product.product | form | Inherits product.product_normal_form_view | |
view_product_template_only_form |
product.template | form | Inherits product.product_template_only_form_view |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (8)
New fields (9)
-
activeBooleandefault=True -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>index=Truestring='Company' -
field_idsMany2many → ir.model.fieldscolumn1='category_id'column2='field_id'comodel_name='ir.model.fields'domain="['|', ('model', '=', 'product.product'), ('model', '=', 'product.product')]"string='Fields related to printing' -
nameCharrequired=Truetranslate=True -
product_idsOne2many → product.productcomodel_name='product.product'inverse_name='print_category_id' -
product_qtyIntegercompute='_compute_product_qty'string='Products' -
product_to_print_idsOne2many → product.productcomodel_name='product.product'compute='_compute_to_print' -
product_to_print_qtyIntegercompute='_compute_to_print'string='Products To Print' -
qweb_view_idMany2one → ir.ui.viewcomodel_name='ir.ui.view'domain="[('type', '=', 'qweb')]"required=Truestring='Qweb View'
-
action_view_product_product(self) -
get_xml_id_view(self)
New fields (0)
No new fields.
Public methods (1)-
write(self, vals)
New fields (4)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>help='Restrict the access of this rule to the given company'index=Truestring='Company' -
main_category_idMany2one → product.categorycomodel_name='product.category'help='This rule will be applied only to products that belong to the given category, or to its children.'string='Main Category' -
print_category_idMany2one → product.print.categorycomodel_name='product.print.category' -
sequenceIntegerrequired=Truestring='Priority'
-
get_print_category_rule(self, product)@api.model
New fields (1)
-
line_idsOne2many → product.print.wizard.linecomodel_name='product.print.wizard.line'default=<expr>inverse_name='wizard_id'string='Lines'
-
print_report(self)
New fields (4)
-
print_category_idMany2one → product.print.categorycomodel_name='product.print.category'readonly=Falserelated='product_id.print_category_id'string='Print Category' -
product_idMany2one → product.productcomodel_name='product.product'required=Truestring='Product' -
quantityIntegerdefault=1required=True -
wizard_idMany2one → product.print.wizardcomodel_name='product.print.wizard'
No public methods.
New fields (2)
-
print_category_idMany2one → product.print.categorycomodel_name='product.print.category'string='Print Category' -
to_printBoolean
-
create(self, vals_list)@api.model_create_multi -
onchange_print_category_id(self)@api.onchange('print_category_id')
New fields (2)
-
print_category_idMany2one → product.print.categorycomodel_name='product.print.category'compute='_compute_print_category_id'inverse='_inverse_print_category_id'string='Print Category' -
to_printBooleancompute='_compute_to_print'inverse='_inverse_to_print'
-
onchange_print_category_id(self)@api.onchange('print_category_id')
New fields (0)
No new fields.
Public methods (0)No public methods.
Loading…
Loading…
- Status
- Open migration PR — not merged yet for this version
- CI status
- green — ready to merge
- Open since
- 0 days ago
- Last activity
- 0 days ago
- Repository
- OCA/product-attribute
- Pull request
- [19.0][MIG] product_print_category: Migration to 19.0 (#2385)