Purchase RFQ Bid workflow
purchase_rfq_bid_workflow · OCA/purchase-workflow
-
Security25/25No findings
-
Activity0/25Last human commit 122 months ago
-
Required by20/252 modules depend on it
-
Maturity18/25In 3 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
PurchaseCancelReason— 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. (12 methods) migration-api-multi-one · sourcePurchaseOrderClassic— Class 'PurchaseOrderClassic' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceaction_modal— 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 · sourceview_purchase_cancel_reason_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceview_purchase_order_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. migration-view-attrs-states · 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`) 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`) 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
This module improves the standard Purchase module.
In standard, RFQs, Bids and PO are all the same object. The purchase workflow has been improved with a new 'Draft PO' state to clearly differentiate the RFQ->Bid workflow and the PO workflow. A type field has also been added to identify if a document is of type 'rfq' or 'purchase'. This is particularly useful for canceled state and for datawarehouse.
The 'Requests for Quotation' menu entry shows only documents of type 'rfq' and the new documents are created in state 'Draft RFQ'. Those documents have lines with a price, by default, set to 0; it will have to be encoded when the bid is received. The state 'Bid Received' has been renamed 'Bid Encoded'. This clearly indicates that the price has been filled in. The bid received date will be requested when moving to that state.
The 'Purchase Orders' menu entry shows only documents of type 'purchase' and the new documents are created in state 'Draft PO'.
The logged messages have been improved to notify users at the state changes and with the right naming.
In the scope of international transactions, some fields have been added:
- Consignee: the person to whom the shipment is to be delivered
- Incoterms Place: the standard incoterms field specifies the incoterms rule that applies. This field allows to name the place where the goods will be available
TODO: describe onchange picking type.
Note: for running the tests, the python package nose is required. It is not listed as an external dependency because it is not needed in production.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 7
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
action_modal_bid_date |
action.modal | purchase.action_modal.datetime | form | New |
action_modal_cancel_reason |
action.modal | purchase.action_modal.cancel_reason | form | New |
po_line_onchange_form |
purchase.order.line | form | Inherits purchase.purchase_order_line_form | |
view_purchase_cancel_reason_form |
Purchase Cancel Reason | purchase.cancel_reason | form | New |
view_purchase_cancel_reason_tree |
Purchase Cancel Reasons | purchase.cancel_reason | tree | New |
view_purchase_order_form |
purchase.order.form.inherit | purchase.order | form | Inherits purchase.purchase_order_form |
view_purchase_order_invoice_form |
purchase.order.form.invoice.inherit | purchase.order | form | Inherits purchase.purchase_order_2_stock_picking |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
No new fields.
Public methods (1)-
action(self)@api.multi
-
reason_idMany2one → purchase.cancel_reasonrequired=True args: 'purchase.cancel_reason', 'Reason for Cancellation'
No public methods.
-
datetimeDatetimeargs: 'Date'
No public methods.
-
nameCharrequired=Truesize=64translate=True args: 'Reason' -
nounlinkBooleanargs: 'No unlink' -
typeSelectionrequired=True args: [('rfq', 'RFQ/Bid'), ('purchase', 'Purchase Order')], 'Type'
-
unlink(self)@api.onePrevent to unlink records that are used in the code
No new fields.
Public methods (0)No public methods.
-
cancel_reason_idMany2one → purchase.cancel_reasonreadonly=True args: 'purchase.cancel_reason', 'Reason for Cancellation' -
currency_idMany2one → res.currencyreadonly=Truerequired=Truestates=STATES args: 'res.currency', 'Currency' -
incoterm_addressCharhelp='Incoterms Place of Delivery. International Commercial Terms are a series of predefined commercial terms used in international transactions.' args: 'Incoterms Place' -
pricelist_idMany2one → product.pricelisthelp='The pricelist sets the currency used for this purchase order. It also computes the supplier price for the selected products/quantities.'readonly=Truerequired=Truestates=STATES args: 'product.pricelist', 'Pricelist' -
typeSelectiondefault=_default_typereadonly=Truerequired=True args: TYPE_SELECTION, 'Type'
-
action_cancel(self)@api.multiAsk a cancel reason -
action_cancel_ok(self)@api.multi -
bid_received(self)@api.multi -
bid_received_ok(self)@api.multi -
copy(self, default=None)@api.one -
create(self, values)@api.model -
po_tender_requisition_selected(self)@api.multiWorkflow function that write state 'bid selected' -
print_quotation(self)@api.multi -
wkf_action_cancel(self)@api.multi -
wkf_bid_received(self)@api.multi -
wkf_draft_po(self)@api.multi -
wkf_send_rfq(self)@api.multi
No new fields.
Public methods (1)-
onchange_product_id(self, cr, uid, ids, pricelist_id, product_id, qty, uom_id, partner_id, date_order=False, fiscal_position_id=False, date_planned=False, name=False, price_unit=False, state='draftpo', context=None)
Loading…
Loading…