TIP: You can type at any time to perform a new search.
Sourcing with Framework Agreements
framework_agreement_sourcing · OCA/vertical-ngo
- Repository
- OCA/vertical-ngo · module folder · Try on Runboat
- Module version
- 2.0.0
- Category
- NGO
- Folder size
- 0.07 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- http://www.camptocamp.com
- Last tracking update
- 2026-08-07 07:17:53
- Authors
- Camptocamp, Odoo Community Association (OCA)
- Maintainers
- Camptocamp
- Committers
- Pedro M. Baeza, Stéphane Bidoul (ACSONE)
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- framework_agreement_sourcing_stock_route_transit
- Description
Code Analysis ⓘ
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…