Repository
OCA/edi · module folder · Try on Runboat
Module version
1.2.0
Category
Purchases
Folder size
0.71 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/oca/edi
Last tracking update
2026-08-07 07:03:08
Authors
Akretion, Odoo Community Association (OCA)
Maintainers
Akretion, Odoo Community Association (OCA)
Committers
Alexis de Lattre, David Beal, OCA-git-bot, oca-travis
Odoo dependencies
Python dependencies
PyPDF2
System dependencies
None
Required by
None
Description

Code Analysis

Views touched (12)
XML IDNameModelTypeStatus
inventory_ubl_import_form inventory.ubl.import form New
product_normal_form_view product.product form Inherits product.product_normal_form_view
product_product_tree_view product.product tree Inherits product.product_product_tree_view
product_search_form_view product.product form Inherits product.product_search_form_view
product_supplierinfo_form_view product.supplierinfo form Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo tree Inherits product.product_supplierinfo_tree_view
product_template_only_form_view product.template form Inherits product.product_template_only_form_view
product_template_tree_view product.template tree Inherits product.product_template_tree_view
ubl_product_tree_view product.product tree New
ubl_supinfo_tree_view product.supplierinfo tree New
view_company_form res.company form Inherits base_ubl.view_company_form
view_stock_quant_tree stock.quant tree Inherits stock.view_stock_quant_tree
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (7)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (2)
  • document Binary
    help='Upload xml file that you received from your supplier.' required=True string='Document to import'
  • filename Char
Public methods (7)
  • parse_xml_document(self, xml_root)
    @api.model
  • prepare_attachment(self, feedback)
  • process_data(self, parsed_document)
    @api.model
    Tasks: - guess supplier/seller - guess customer/buyer for multicompany context (not implemented in v8) - retrieve relative data with product.supplierinfo and product.product - write stock by on supplierinfo and/or product.product
  • process_document(self)
    @api.multi
  • redirect_action(self, feedback)
  • set_feedback_records(self, feedback)
    Inherit to provide feedback to concerned users with the mean you choose
  • store_document(self, feedback)

New fields (2)
  • supplier_stock Float
    digits=dp.get_precision('Product Unit of Measure') help=HELP_STK readonly=True string='Supplier Stock'
  • supplier_stock_info Char
    help=HELP_INF readonly=True string='Supplier Stock Info'
Public methods (0)

No public methods.

New fields (3)
  • last_stock Date
    help='Date of the last known supplier stock' string='Last Stock'
  • product_default_code Char
    compute='_compute_product_default_code' help='Default code of product' store=False string='Internal reference'
  • stock Float
    digits=dp.get_precision('Product Unit of Measure') help='Vendor stock quantity available' string='Stock Qty'
Public methods (0)

No public methods.

New fields (2)
  • supplier_stock Float
    compute='_compute_supplier_stock_fields' digits=dp.get_precision('Product Unit of Measure') help=HELP_STK readonly=True store=True string='Supplier Stock'
  • supplier_stock_info Char
    compute='_compute_supplier_stock_fields' help=<expr> readonly=True store=True string='Supplier Stock Info'
Public methods (0)

No public methods.

New fields (3)
  • inventory_ubl_alert_partner_id Many2one → res.partner
    comodel_name='res.partner' default=<expr> help='Partner to alert in case of fails on import' required=True string='Alert Recipient'
  • inventory_ubl_link_document Boolean
    help='If checked, imported attachment is linked to supplier' string='Link File to Supplier'
  • inventory_ubl_store_document Boolean
    help='Import xml file as ERP attachment' string='Store Imported File'
Public methods (0)

No public methods.

New fields (2)
  • supplier_stock Float
    readonly=True related='product_id.supplier_stock' string='Supplier Stock'
  • supplier_stock_info Char
    readonly=True related='product_id.supplier_stock_info' string='Supplier Inventory'
Public methods (0)

No public methods.