Repository
OCA/edi · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.17 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/edi
Last tracking update
2026-08-17 18:05:57
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Simone Orsi, Maksym Yankin, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds support for the import of electronic quotations. This module provides the base methods to import electronic quotations ; it requires additional modules to support specific order formats:

* module *purchase_order_import_ubl*: adds support for `Universal Business Language (UBL) <http://ubl.xml.org/>`_ quotations as:

  - XML file,
  - PDF file with an embedded XML file.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
purchase_order_form purchase_order_import.purchase.order.form purchase.order form Inherits purchase.purchase_order_form
purchase_order_import_form purchase.order.import.form purchase.order.import form New
purchase_order_response_import_form purchase.order.response.import.form purchase.order.response.import form New
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (1)
  • supplier_ack_received_on Datetime
    help='Date and time of the acknowledgement by the supplier. This field is filled by Odoo when processing a OrderResponse document.' index=True args: 'Supplier Acknowledgement Date'
Public methods (0)

No public methods.

New fields (4)
  • purchase_id Many2one → purchase.order
    readonly=True required=True string='RFQ to Update' args: 'purchase.order'
  • quote_file Binary
    help='Upload a quotation file that you received from your supplier. Supported formats: XML and PDF (PDF with an embeded XML file).' required=True string='XML or PDF Quotation'
  • quote_filename Char
    string='Filename'
  • update_option Selection
    default='price' required=True args: [('price', 'Price'), ('all', 'Price and Quantity')]
Public methods (5)
  • parse_pdf_quote(self, quote_file)
    @api.model
    Get PDF attachments, filter on XML files and call import_order_xml
  • parse_quote(self, quote_file, quote_filename)
    @api.model
  • parse_xml_quote(self, xml_root)
    @api.model
  • update_order_lines(self, parsed_quote, order)
  • update_rfq_button(self)

New fields (2)
  • document Binary
    help='Upload an Order response file that you received from your supplier. Supported formats: XML and PDF (PDF with an embeded XML file).' required=True string='XML or PDF Order response'
  • filename Char
Public methods (5)
  • parse_order_response(self, document, filename)
    @api.model
  • parse_pdf_order_document(self, document)
    @api.model
    Get PDF attachments, filter on XML files and call import_order_xml
  • parse_xml_order_document(self, xml_root)
    @api.model
  • process_data(self, parsed_order_document)
    @api.model
  • process_document(self)

Loading…

Loading…

Loading…

Loading…