purchase_request_quotation
This page combines editorial guidance with evidence extracted from the selected official branch. Always test the flow with your own permissions and configuration.
Purpose
The Purchase Request Quotation Module allows users to ask quotations from purchase requests to different suppliers.
The analysis found 4 Python files, 12 XML files, 9 views, 13 actions, 1 menus, and 1 reports.
Functional user guide
Who should use it
This module is relevant to people responsible for purchase request quotation processes, company configuration, and result review. Administrators should participate whenever dependencies, permissions, or sequences are introduced.
What you will be able to do
After configuration, you will be able to identify the records added by purchase_request_quotation, execute actions in the correct state, produce its reports, and understand the information shared with other modules.
Requirements and preparation
Before activation, verify company, currency, users, and groups. Install and configure required dependencies first. When real data exists, rehearse activation and upgrades on a restored copy.
Activate dependencies first, review company configuration, and rehearse the complete workflow before production use.
Required dependencies
ir— must be installed and configured before testing this module.company— must be installed and configured before testing this module.currency— must be installed and configured before testing this module.party— must be installed and configured before testing this module.product— must be installed and configured before testing this module.purchase— must be installed and configured before testing this module.purchase_request— must be installed and configured before testing this module.
Optional integrations
purchase_requisition— enables an additional integration; test the combination explicitly.
Recommended initial configuration
- Activate the module and sign in again to load menus and permissions.
- Review new company configuration options and defaults.
- Assign groups to test users using least privilege.
- Create small, verifiable master data before bulk imports.
- Run one complete scenario from draft to final state and inspect related records.
Module objects and concepts
- purchase.configuration: groups 2 model(s), including
purchase.configuration,purchase.configuration.sequence. These records form the information users inspect or modify during the process. - purchase.request: groups 7 model(s), including
purchase.request,purchase.request.create_purchase,purchase.request.quotation,purchase.request.quotation.create,purchase.request.quotation.create.ask_suppliers. These records form the information users inspect or modify during the process.
Typical workflow
- Select the correct company and date before creating a document.
- Complete master data before lines or details.
- Use form buttons for state changes; saving is not the same as validating or posting.
- Review warnings, totals, related documents, and traceability.
- Generate the report and compare it with the record before delivery.
Actions, states, and wizards
cancel— action or transition that starts cancel. Check permissions, current state, and related records before running it.create_quotation— action or transition that starts create quotation. Check permissions, current state, and related records before running it.draft— action or transition that starts draft. Check permissions, current state, and related records before running it.receive— action or transition that starts receive. Check permissions, current state, and related records before running it.reject— action or transition that starts reject. Check permissions, current state, and related records before running it.send— action or transition that starts send. Check permissions, current state, and related records before running it.cancelled— action or transition that starts cancelled. Check permissions, current state, and related records before running it.received— action or transition that starts received. Check permissions, current state, and related records before running it.rejected— action or transition that starts rejected. Check permissions, current state, and related records before running it.sent— action or transition that starts sent. Check permissions, current state, and related records before running it.purchase.request.create_purchase— wizard that collects data and performs purchase › request › create purchase. Check permissions, current state, and related records before running it.purchase.request.quotation.create.ask_suppliers— wizard that collects data and performs purchase › request › quotation › create › ask suppliers. Check permissions, current state, and related records before running it.
Controls before production
- Define who creates, reviews, confirms, cancels, and reads.
- Test closed periods, unauthorized users, and incomplete data.
- Verify numbering, currency, rounding, and time zone where applicable.
- Document error correction without direct database edits.
- Include its tables and files in backup and restore procedures.
Troubleshooting
- If a menu is missing, verify activation, module-list update, groups, and a new login session.
- If a field rejects a value, inspect its domain, company, state, and configured dependencies.
- If a button is hidden or disabled, check permissions and valid transitions; never change state with SQL.
- If results differ, reproduce a minimal case and compare related records before and after.
- Keep the full traceback, version, active modules, and minimal data needed to diagnose an error.
Developer guide
Architecture and extension points
The package contains 12 Python classes and declares or extends 9 models. It uses Char, Date, Float, Function, Integer, Many2Many, Many2One, MultiValue, One2Many, Selection, Text. Developers should first determine whether a class creates a model or uses PoolMeta to extend one, preserve super() calls, and avoid duplicating dependency rules.
Registered or extended models
purchase.configurationpurchase.configuration.sequencepurchase.requestpurchase.request.create_purchasepurchase.request.quotationpurchase.request.quotation.createpurchase.request.quotation.create.ask_supplierspurchase.request.quotation.create.succeedpurchase.request.quotation.line
Field types used
CharDateFloatFunctionIntegerMany2ManyMany2OneMultiValueOne2ManySelectionText
Detected classes and public methods
Classes: Configuration, ConfigurationSequence, CreatePurchase, CreatePurchaseRequestQuotation, CreatePurchaseRequestQuotationAskSuppliers, CreatePurchaseRequestQuotationSucceed, PreviousQuotation, PurchaseRequest, PurchaseRequestQuotationReport, Quotation, QuotationLine, RequestStateCreateQuotationError
Methods: apply_quotation(), cancel(), chat_language(), compute_purchase_line(), copy(), create_quotation(), currency(), default_ask_suppliers(), default_company(), default_purchase_request_quotation_sequence(), default_revision(), default_state(), default_succeed(), default_warehouse(), delivery_full_address(), do_create_quotations(), draft(), execute(), filter_request(), get_best_quotation(), get_context(), get_product(), get_quotation(), get_quotation_line(), get_quotation_state(), get_rec_name(), get_state(), get_supplier(), multivalue_model(), on_change_request(), on_change_supplier(), on_change_with_product_uom_category(), on_change_with_quotation_state(), on_delete(), on_modification(), on_write(), order_number(), order_quotation_state(), receive(), reject(), search_product(), search_quotation_state(), search_rec_name(), send(), set_number(), transition_start(), wrapper()
Code map
Detected 4 Python files, 12 XML files, and 0 explicit access files. XML connects models to views, menus, actions, and reports; access CSV files establish initial permissions.
__init__.pydoc/conf.pyexceptions.pymessage.xmlpurchase.pypurchase.xmlpurchase_request.xmlview/configuration_form.xmlview/purchase_request_form.xmlview/purchase_request_list.xmlview/purchase_request_quotation_create_ask_suppliers_form.xmlview/purchase_request_quotation_form.xmlview/purchase_request_quotation_line_form.xmlview/purchase_request_quotation_line_list.xmlview/purchase_request_quotation_line_list_request.xmlview/purchase_request_quotation_list.xml
Test plan
- Activation on an empty database and upgrade from the previous revision.
- Create, update, copy, and delete according to state and access rights.
- Every button, transition, and wizard with valid and invalid scenarios.
- Applicable multi-company rules, translations, time zones, and currencies.
- Combined installation with required and optional dependencies.
- Backup and restore of records, attachments, and generated reports.
Compatibility and upgrades
Keep server and modules on series 8.0. Before upgrading, compare tryton.cfg, __register__ migrations, state changes, XML IDs, and permissions. A successful build does not replace a rehearsed migration or functional data reconciliation.
Official documentation evidence
Topics found: Design · Purchase Request For Quotation · Reports · Purchase Request Quotation · Purchase Configuration · Purchase Request · Wizards · Create Purchase Request Quotation · Purchase Request Quotation Module
-
- doc/design.rst: The Purchase Request Quotation Module introduces some new concepts.
-
- doc/index.rst: The Purchase Request Quotation Module allows users to ask quotations from purchase requests to different suppliers.