TIP: You can type at any time to perform a new search.
Product Variant Cost Price
product_variant_cost_price · OCA/product-variant
Security findings
Migration considerations
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp.addons` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- Imports from the old `openerp` namespace: renamed to `odoo` since Odoo 10.0. migration-openerp-import · source
- For a target of Odoo 10.0+: use the `__manifest__.py` manifest name instead of `__openerp__.py`. The filename alone does not establish module age or compatibility. migration-openerp-manifest · source
Migration review checklist, not a compatibility verdict. No target version is selected: apply version-specific advice only when migrating to that version or later.
- 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
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_idMany2one → product.productcomodel_name='product.product'ondelete='cascade'string='Product'
No public methods.
New fields (2)
-
cost_methodSelectioncompany_dependent=Truecopy=Truehelp='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=Trueselection='_get_selection_cost_method'string='Costing Method' -
standard_priceFloatcompany_dependent=Truedigits=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'
-
create(self, values)@api.model -
write(self, values)@api.multi
New fields (0)
No new fields.
Public methods (2)-
create_variant_ids(self)@api.multiWrite in the new created variants the current template cost price. -
write(self, vals)@api.multiPropagate to the variants the template cost price (if modified).