Supplier Inventory Import UBL

supplier_inventory_import_ubl
REPOSITORY
REPOSITORYOCA/edi
GIT
GIThttps://github.com/OCA/edi.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/edi/tree/8.0/supplier_inventory_import_ubl
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYPurchases
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion
COMMITTERS
COMMITTERSAlexis de Lattre, David Beal, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/oca/edi
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:22
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/community-data-files:
    - product_uom_unece
    - account_tax_unece
    - base_unece
OCA/edi:
    - base_ubl
    - base_business_document_import_stock
    - base_business_document_import
OCA/partner-contact:
    - base_vat_sanitized
odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - report
    - account
    - analytic
    - board
    - edi
    - email_template
    - base_vat
    - stock
    - procurement
    - web_kanban_gauge
    - web_kanban_sparkline
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES PyPDF2
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (12)
XML IDNameModelTypeStatus
inventory_ubl_import_form inventory.ubl.import form New
product_normal_form_view product.product xpath Inherits product.product_normal_form_view
product_product_tree_view product.product field Inherits product.product_product_tree_view
product_search_form_view product.product field Inherits product.product_search_form_view
product_supplierinfo_form_view product.supplierinfo field Inherits product.product_supplierinfo_form_view
product_supplierinfo_tree_view product.supplierinfo field Inherits product.product_supplierinfo_tree_view
product_template_only_form_view product.template xpath Inherits product.product_template_only_form_view
product_template_tree_view product.template field 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 xpath Inherits base_ubl.view_company_form
view_stock_quant_tree stock.quant field Inherits stock.view_stock_quant_tree
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.