Sourcing with Framework Agreements
framework_agreement_sourcing · OCA/vertical-ngo
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 102 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 4 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.07 MB
Module directory on disk
Code analysis
18 migration notes
7 models
3 views
0 HTTP endpoints
Migration considerations
- Migrating to 11.0: the workflow engine (`trg_validate`) was removed: rewrite as state-field transitions. migration-workflow-call · source
LogisticsRequisitionLine— 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 · sourceSaleOrder— 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) (2 occurrences in this file) migration-api-multi-one · sourcelogistic_requisition_cost_estimate— Class 'logistic_requisition_cost_estimate' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcelogistic_requisition_source— Class 'logistic_requisition_source' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcelogistic_requisition_source— Class 'logistic_requisition_source' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcelogistic_requisition_source— 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) migration-api-multi-one · sourcelogistic_requisition_source_po_creator— Class 'logistic_requisition_source_po_creator' still inherits from the old-style `orm.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcelogistic_requisition_source_po_creator— Class 'logistic_requisition_source_po_creator' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourcepurchase_order— Class 'purchase_order' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcesale_order_line— Class 'sale_order_line' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceview_logistic_requisition_source_form— 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- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (3 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (2 occurrences in this file) migration-openerp-import · source
- Since 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Since 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
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
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- framework_agreement_sourcing_stock_route_transit
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 |
|---|---|---|---|---|
view_create_agr_po_from_source |
Create Purchase Order From Requisition Source | logistic.requisition.source.create.agr.po | form | New |
view_logistic_requisition_line_form |
logistic.requisition.line.form | logistic.requisition.line | form | Inherits logistic_requisition.view_logistic_requisition_line_form |
view_logistic_requisition_source_form |
view_logistic_requisition_source_form | logistic.requisition.source | form | Inherits logistic_requisition.view_logistic_requisition_source_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
New fields (0)
No new fields.
Public methods (1)-
cost_estimate(self, cr, uid, ids, context=None)Override to link PO to cost_estimate$ In a normal flow, when you chose a bid as the winning one, the bid is dupplicated to generate the draft PO. On this action, it link the LRS to the generated PO line. In a tender flow, we don't dupplicate the bid, it's only a PO. The link between the LRS and the PO line should then be created here. This is for the drop shipping to work propely cause in that case, SO and PO are linked together.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (2)-
make_purchase_order(self, cr, uid, ids, pricelist, context=None)Create a purchase order from the LRS ids list. This method will create one PO with all lines. Between them, you'll have line of type LTA (framewrok agreement) and line of type other. Currently, only one line of type LTA is accepted at a time. We'll raise an error if other types are selected here. We accept line of type other here to include products not included in the LTA for example : you order Product A under LTA + the transport as a LRS of type other. :param integer list ids: ids of logistic.requisition.source :param browse_record pricelist: product.pricelist :returns integer : generated PO id -
update_agreement(self)@api.onchange('sourcing_method', 'portfolio_id', 'proposed_qty', 'proposed_product_id')Update the choice of agreement depending on other fields. Like in the purchase order with framework_agreement 2.0, we do not choose automatically the cheapest agreement, except when there is only one that is suitable. If the current choice is suitable, keep it.
New fields (0)
No new fields.
Public methods (2)-
action_create_agreement_po_requisition(self, cr, uid, ids, context=None)Implement buttons that create PO from selected source lines -
default_get(self, cr, uid, fields_list, context=None)Take the pricelist of the lrs by default. Show the available choice for the user.
New fields (0)
No new fields.
Public methods (1)-
action_confirm(self, cr, uid, ids, context=None)
New fields (0)
No new fields.
Public methods (1)-
action_accepted(self)@api.multiOn acceptation of Cost Estimate, we generate PO for all line sourced by a framework agreement Framework agreement currency is selected this way: - Currency matching with Cost Estimate currency. - Or first currency found on framework agreement.
New fields (0)
No new fields.
Public methods (1)-
button_confirm(self, cr, uid, ids, context=None)Override confirmation of request of quotation to support LTA Related PO generated by agreement source line will be passed to state draft_po.
Loading…
Loading…
Loading…