Pricelist Items Generator
pricelist_item_generator · OCA/product-attribute
Health
35/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 124 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.39 MB
Module directory on disk
Code analysis
11 migration notes
7 models
3 views
0 HTTP endpoints
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
PricelistItemGenerator— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourcePricelistItemGenerator— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (9 methods) migration-api-multi-one · sourcePricelistItemTemplateBase— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (2 methods) (2 occurrences in this file) migration-api-multi-one · sourcePricelistProductCondition— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourcepricelist_item_generator_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceproduct_pricelist_version_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (3 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
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.