Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 09:06:27
Authors
Odoo Community Association (OCA), ProThai
Maintainers
prapassornS
Committers
Weblate, OCA-git-bot, oca-ci, Francesco Bellingeri
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
Note: This module is similar to sale_quotation_number, but for
purchase/rfq

- Purchase for Quotation:
  - Purchase process in draft stage just informing prices and element of
    communication.
- Purchase Order:
  - Purchase process confirmed, the customer already have a compromise
    with us in terms of pay an invoice and receive our product or
    service.

**Technical Explanation**

When you create a purchase quotation, it is numbered using the
'purchase.rfq' sequence. When you confirm a purchase quotation, its rfq
number is saved in the 'rfq_number' field and the purchase order gets a
new number, retrieving it from 'purchase.order' sequence.

- With Odoo Base:

  > Purchase for Quotation 1 Number = PO001
  >
  > Purchase for Quotation 2 Number = PO002

- With Odoo + This Module:

  > Purchase for Quotation 1 Number = RFQ001
  >
  > Purchase for Quotation 2 Number = RFQ002
  >
  > Purchase for Quotation 1 Confirmed = Number for Purchase Order PO001
  > from Purchase for Quotation RFQ001
  >
  > Purchase for Quotation 2 Confirmed = Number for Purchase Order PO002
  > from Purchase for Quotation RFQ002

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order form Inherits purchase.purchase_order_form
report_purchasequotation_document report_purchasequotation_document ir.ui.view qweb Inherits purchase.report_purchasequotation_document
res_config_settings_view_form_purchase_rfq_number Purchase RFQ number configuration res.config.settings form Inherits purchase.res_config_settings_view_form_purchase
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (2)
  • po_number Char
    copy=False default='New' index=True string='PO Reference'
  • rfq_number Char
    copy=False default='New' index=True string='RFQ Reference'
Public methods (4)
  • action_get_rfq_attachment(self)
  • button_confirm(self)
  • button_draft(self)
  • create(self, vals_list)
    @api.model_create_multi

New fields (2)
  • auto_attachment_rfq Boolean
    default=False help='Auto attachment requests for quotation after confirm' string='Auto Attachment RFQ'
  • keep_name_po Boolean
    default=True help='If this is unchecked, purchase rfq use a different sequence from Purchase orders' string='Use Same Enumeration'
Public methods (0)

No public methods.

New fields (2)
  • auto_attachment_rfq Boolean
    readonly=False related='company_id.auto_attachment_rfq'
  • keep_name_po Boolean
    readonly=False related='company_id.keep_name_po'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…