Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.3
Category
Product Management
Folder size
0.08 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), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Carlos Dauden, Carlos Lopez, sergio-teruel, Weblate, OCA-git-bot, oca-ci, eduezerouali-tecnativa
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
Description
This module allows to set multiple prices to products and base pricelist
rules on them.

Code Analysis

Views touched (7)
XML IDNameModelTypeStatus
product_multi_price_form_view product.multi.price form New
product_multi_price_name_tree_view product.multi.price.name list New
product_multi_price_tree_view product.multi.price list New
product_multi_price_tree_view2 product.multi.price list Inherits product_multi_price.product_multi_price_tree_view
product_pricelist_item_form_view product.pricelist.item form Inherits product.product_pricelist_item_form_view
product_template_form_view product.template form Inherits product.product_template_form_view
product_variant_easy_edit_view product.product Inherits product.product_variant_easy_edit_view
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (5)

New fields (5)
  • company_id Many2one → res.company
    comodel_name='res.company' readonly=True related='name.company_id' store=True
  • name Many2one → product.multi.price.name
    required=True args: 'product.multi.price.name'
  • name_text Char
    related='name.name'
  • price Float
    digits='Product Price'
  • product_id Many2one → product.product
    comodel_name='product.product' ondelete='cascade' required=True
Public methods (0)

No public methods.

New fields (2)
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True
  • name Char
    required=True string='Price Field Name'
Public methods (0)

No public methods.

New fields (2)
  • base Selection
    ondelete={'multi_price': 'set default'} selection_add=[('multi_price', 'Other Price')]
  • multi_price_name Many2one → product.multi.price.name
    comodel_name='product.multi.price.name' string='Other Price Name'
Public methods (0)

No public methods.

New fields (1)
  • price_ids One2many → product.multi.price
    comodel_name='product.multi.price' depends_context=('company') inverse_name='product_id' string='Other Prices'
Public methods (0)

No public methods.

New fields (1)
  • price_ids One2many → product.multi.price
    comodel_name='product.multi.price' compute='_compute_price_ids' inverse='_inverse_price_ids' string='Other Prices'
Public methods (1)
  • create(self, vals_list)
    @api.model_create_multi
    Overwrite creation for rewriting the prices (if set and having only one variant), after the variant creation, that is performed in super.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
280 days ago
Last activity
209 days ago
Repository
OCA/product-attribute
Pull request
[19.0][MIG] product_multi_price (#2136)