Discounts in product supplier info
product_supplierinfo_discount · OCA/purchase-workflow
Merged into purchase_discount in 12.0, then merged into purchase in 17.0
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 98 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
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.26 MB
Module directory on disk
Code analysis
4 migration notes
5 models
3 views
0 HTTP endpoints
Migration considerations
ProcurementRule— 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 · sourceProductSupplierInfo— 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 · sourcePurchaseOrder— 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 · sourceres_partner_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. migration-view-attrs-states · 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 |
|---|---|---|---|---|
product_supplierinfo_form_view |
product.supplierinfo | form | Inherits product.product_supplierinfo_form_view | |
product_supplierinfo_tree_view |
product.supplierinfo | tree | Inherits product.product_supplierinfo_tree_view | |
res_partner_form_view |
res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
discountFloatdigits=dp.get_precision('Discount')string='Discount (%)'
-
create(self, vals)@api.modelInsert discount from context from purchase.order's _add_supplier_to_product method -
onchange_name(self)@api.onchange('name')@api.multiApply the default supplier discount of the selected supplier
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (1)
-
default_supplierinfo_discountFloatdigits=dp.get_precision('Discount')help='This value will be used as the default one, for each new supplierinfo line depending on that supplier.'string='Default Supplier Discount (%)'
No public methods.
Loading…
Loading…
Loading…
Loading…