Antoine Boonen 226b669993 [IMP] account_edi_ubl_cii: Populate bank account details on UBL/CII import
Problem
---------
Currently, when importing a UBL/CII xml, the bank account details remain
empty while we usually have the bank account number and the BIC code
provided in the XML.

Objective
---------
Autofill the partner_bank_id field on the invoice using the values
provided in the UBL/CII XML.

Solution
---------
Currently, UBL XML are organized as such:
PaymentMeans(0..n)
 |-PayeeFinancialAccount
   |-ID
   |-FinancialInstitutionBranch
     |-ID

And CII as such:
SpecifiedTradeSettlementPaymentMeans(0..n)
 |-PayeePartyCreditorFinancialAccount
 | |-IBANID (for SEPA)
 | |-ProprietaryID (for national payment)
 |
 |-PayeeSpecifiedCreditorFinancialInstitution
   |-BICID

We first fetch the account numbers from the XML (several may be
present) and store them in a list.

This list is sent to the edi_common which will attempt to find one
account that match the given values. If none are found, we create one
bank account for each piece of bank data found in the xml. We then set
one account that was freshly created.

task-3636150

closes odoo/odoo#152559

X-original-commit: 63a32be1e3b32762bc489e17eea634a071a597b9
Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
Signed-off-by: Antoine Boonen (aboo) <aboo@odoo.com>
2024-02-03 06:59:52 +00:00
2023-11-02 21:02:44 +00:00
…
…
…
…

Build Status Tech Doc Help Nightly Builds

Odoo

Odoo is a suite of web based open source business apps.

The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...

Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.

Getting started with Odoo

For a standard installation please follow the Setup instructions from the documentation.

To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials

S
Description
No description provided
Readme LGPL-3.0
3.4 GiB
Languages
Python 49.6%
JavaScript 47.8%
SCSS 2%
CSS 0.3%
HTML 0.2%