Repository
OCA/product-variant · module folder · Try on Runboat
Module version
1.0.0
Category
Product Management
Folder size
0.19 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-variant
Last tracking update
2026-08-07 07:03:09
Authors
Odoo Community Association (OCA), AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, Antiun Ingeniería S.L., OdooMRP team
Maintainers
Odoo Community Association (OCA), AvanzOSC, Serv. Tecnol. Avanzados - Pedro M. Baeza, Antiun Ingeniería S.L., OdooMRP team
Committers
Pedro M. Baeza, Stéphane Bidoul (ACSONE), Weblate, OCA Transbot, oca-travis, agaldona, oihane
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
connector_prestashop
Description

Code Analysis

Views touched (0)

No views found for this module.

HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (0)

No new fields.

Public methods (1)
  • create(self, values)
    @api.model

New fields (1)
  • product_id Many2one → product.product
    comodel_name='product.product' ondelete='cascade' string='Product'
Public methods (0)

No public methods.

New fields (2)
  • cost_method Selection
    company_dependent=True copy=True help='Standard Price: The cost price is manually updated at the end of a specific period (usually every year).\nAverage Price: The cost price is recomputed at each incoming shipment and used for the product valuation.\nReal Price: The cost price displayed is the price of the last outgoing product (will be use in case of inventory loss for example).' required=True selection='_get_selection_cost_method' string='Costing Method'
  • standard_price Float
    company_dependent=True digits=dp.get_precision('Product Price') groups='base.group_user' help='Cost price of the product variant used for standard stock valuation in accounting and used as a base price on purchase orders. Expressed in the default unit of measure of the product.' string='Cost Price'
Public methods (2)
  • create(self, values)
    @api.model
  • write(self, values)
    @api.multi

New fields (0)

No new fields.

Public methods (2)
  • create_variant_ids(self)
    @api.multi
    Write in the new created variants the current template cost price.
  • write(self, vals)
    @api.multi
    Propagate to the variants the template cost price (if modified).