TIP: You can type at any time to perform a new search.
Pricelist Items Generator
pricelist_item_generator · OCA/product-attribute
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 1.0.0
- Category
- product
- Folder size
- 0.39 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.akretion.com
- Last tracking update
- 2026-08-07 07:03:07
- Authors
- Akretion, Odoo Community Association (OCA)
- Maintainers
- Akretion, Odoo Community Association (OCA)
- Committers
- David Beal, Weblate, OCA Transbot, oca-travis
Code Analysis ⓘ
Views touched (3)
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
pricelist_item_generator_form_view |
pricelist.item.generator | form | New | |
pricelist_item_generator_tree_view |
pricelist.item.generator | tree | New | |
product_pricelist_version_form_view |
product.pricelist.version | form | Inherits product.product_pricelist_version_form_view |
HTTP endpoints (0)
No HTTP endpoints found for this module.
Models touched (7)
New fields (2)
-
min_quantityIntegerdefault=1 -
price_generator_idMany2one → pricelist.item.generatorcomodel_name='pricelist.item.generator'readonly=Truestring='Generator'
No public methods.
New fields (9)
-
activeBooleancopy=Falsehelp="If checked, rules are exported towards 'Product pricelist items'"string='Active' -
copy_item_templateBooleancopy=Falsehelp="Check to copy 'price items' in case of duplication of generator"string='Copy Price Items' -
copy_product_conditionBooleancopy=Falsehelp="Check to copy 'involved products' in case of duplication of generator"string='Copy Involved Products' -
item_template_idsOne2many → pricelist.item.templatecomodel_name='pricelist.item.template'help='Pricelist item template'inverse_name='price_generator_id'string='Pricelist item templates' -
nameCharhelp='Copied towards pricelist price item'required=Truestring='Name' -
price_version_idMany2one → product.pricelist.versioncomodel_name='product.pricelist.version'domain="[('pricelist_id.type', '=', 'sale')]"help="Only pricelist of 'Sale' type"required=Truestring='Pricelist version' -
product_condition_idsOne2many → pricelist.product.conditioncomodel_name='pricelist.product.condition'help='In which products are applied the price elements'inverse_name='price_generator_id'string='Product conditions' -
sequenceIntegerdefault=5help='Used to generate the sequence of the price item'string='Sequence' -
to_updateBooleancopy=Falsedefault=Truehelp='Flag if the pricelist items needs to be build'readonly=Truestring='To update'
-
activate_generator(self)@api.multi -
build_pricelist_item(self)@api.multiCalled by the UI -
copy(self, default=None)@api.multi -
write(self, vals)@api.multi
New fields (9)
-
baseSelectiondefault=1help='Base price for computation.'required=Trueselection='_price_field_get'size=-1string='Based on' -
base_pricelist_idMany2one → product.pricelistcomodel_name='product.pricelist'help='Other pricelist on which this item is based.'string='Other PL' -
price_discountFloatdefault=0digits=(16, 2)string='Discount (%)' -
price_max_marginFloatdigits_compute=dp.get_precision('Product Price')help='Specify the maximum amount of margin over the base price.'string='Max. Price Margin' -
price_min_marginFloatdigits_compute=dp.get_precision('Product Price')help='Specify the minimum amount of margin over the base price.'string='Min. Price Margin' -
price_roundFloatdigits_compute=dp.get_precision('Product Price')help='Sets the price so that it is a multiple of this value.\nRounding is applied after the discount and before the surcharge.\n To have prices that end in 9.99, set rounding 10, surcharge -0.01'string='Price Rounding' -
price_surchargeFloatdigits_compute=dp.get_precision('Product Price')help='Specify the fixed amount to add or substract(if negative) to the amount calculated with the discount.'string='Price Surcharge' -
sequenceIntegerdefault=50help='Gives the order in which the pricelist items will be checkedby the ERP.\nThe evaluation gives highest priority to lowest sequence and stops as soon as a matching price item is found.'required=Truestring='Sequence' -
todoSelectionhelp='Required action on Pricelist Items'readonly=Trueselection=TODO_SELECTIONstring='Next Action'
No public methods.
New fields (1)
-
price_generator_idMany2one → pricelist.item.generatorcomodel_name='pricelist.item.generator'required=True
-
create(self, vals)@api.model -
write(self, vals)@api.multi
New fields (5)
-
categ_idMany2one → product.categorycomodel_name='product.category'help='Products of the category or products of children categories'string='Category' -
price_generator_idMany2one → pricelist.item.generatorcomodel_name='pricelist.item.generator'required=Truestring='Generator' -
product_idMany2one → product.productcomodel_name='product.product'help='If product is selected, no other criterias can be take account'string='Product Variant' -
product_tmpl_idMany2one → product.templatecomodel_name='product.template'help='If product is selected, no other criterias can be take account'string='Product' -
todoSelectionhelp='Required action on Pricelist Items'readonly=Trueselection=TODO_SELECTIONstring='Next Action'
-
create(self, vals)@api.model -
write(self, vals)@api.multi
New fields (3)
-
autoBooleanhelp='If true, the item pricelist was built automatically with Pricelist'string='Auto' -
item_template_idMany2one → pricelist.item.templatecomodel_name='pricelist.item.template'ondelete='cascade'readonly=Truestring='Item template' -
product_condition_idMany2one → pricelist.product.conditioncomodel_name='pricelist.product.condition'ondelete='cascade'readonly=Truestring='Product condition'
No public methods.
New fields (2)
-
item_auto_idsOne2many → product.pricelist.itemcomodel_name='product.pricelist.item'domain=[('auto', '=', True)]help='Automatic built items'inverse_name='price_version_id'string='Pricelist items auto' -
item_manual_idsOne2many → product.pricelist.itemcomodel_name='product.pricelist.item'domain=[('auto', '=', False)]help='Manually created items'inverse_name='price_version_id'string='Pricelist items manual'
No public methods.