Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 07:31:54
Authors
Odoo Community Association (OCA), Open Source Integrators
Maintainers
Odoo Community Association (OCA), Open Source Integrators
Committers
Daniel Reis, Weblate, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (5)
XML IDNameModelTypeStatus
product_category_form_view product.category.form (in product_documentation) product.category form Inherits product.product_category_form_view
product_doc_set_form_view product.doc.set.form (in product_documentation_set) product.doc.set form New
product_doc_set_search_view product.doc.set.search (in product_documentation_set) product.doc.set search New
product_doc_set_tree_view product.doc.set.tree (in product_documentation_set) product.doc.set tree New
product_template_form_view product.template.form (in product_documentation) product.template form Inherits product.product_template_form_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • doc_set_ids Many2many → product.doc.set
    help='Sets of product documentation, to use for several purposes. Specific sets may be defined by country or language.' string='Documentation Sets' args: 'product.doc.set'
Public methods (0)

No public methods.

New fields (9)
  • active Boolean
    default=True args: 'Active?'
  • attachment_ids Many2many → ir.attachment
    string='Documents' args: 'ir.attachment'
  • category_ids Many2many → product.category
    args: 'product.category'
  • country_ids Many2many → res.country
    string='Countries' args: 'res.country'
  • lang Selection
    string='Language' args: <expr>
  • name Char
    required=True
  • notes Html
  • product_ids Many2many → product.template
    args: 'product.template'
  • usage Selection
    help='The purpose for this list of documents.' string='Usage' args: [('internal', 'Internal Reference')]
Public methods (1)
  • get_usage_document_sets(self, usage, country=None, lang=None, product=None, category=None)
    @api.model
    Find the Document Sets for a single Product Category, filtering by the particular Usage, Country and Language. Search will only be performed on the parameters given (Country and or Lang). The search is also done following the chain of parent Categories, until a Document Set is found. :param usage: Usage selection option (required) :param country: Country record (optional) :param lang: Language selection option (optional) :param product: Product record to search on (optional) :param category: Product Category record to search on (optional) :returns: a recordset of Product Documentation Sets

New fields (1)
  • doc_set_ids Many2many → product.doc.set
    help='Sets of product documentation, to use for several purposes. Specific sets may be defined by country or language.' string='Documentation Sets' args: 'product.doc.set'
Public methods (1)
  • get_usage_document_sets(self, usage, country=None, lang=None)