- Sep 15, 2023
-
-
Quentin authored
When parsed, if the attachment has a basis quantity of zero, it creates an error, because it is used in a division. The condition that checks whether is computed should be done only if this variable is none. The code does not handle if `attachement_name.text` is None, which can be caused by an orphan ID tag (e.i. "<cbc:ID />") , in the xml of the pdf. opw-3470969 closes odoo/odoo#135504 X-original-commit: bfc83df7 Signed-off-by:
William André (wan) <wan@odoo.com> Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
- Sep 10, 2023
-
-
Odoo Translation Bot authored
-
- Sep 03, 2023
-
-
Odoo Translation Bot authored
-
- Aug 31, 2023
-
-
Julien Van Roy authored
In Saudi Arabia, the InvoiceLine/ID should not be greater than 6 digits. Using the move.line_id, this limit can be exceeded. Simply count the invoice line ids starting from 1 instead. In master, add a parameter `line_id` to `_get_invoice_line_vals`. closes odoo/odoo#133675 X-original-commit: 94aac2ed Signed-off-by:
Josse Colpaert <jco@odoo.com> Signed-off-by:
Julien Van Roy (juvr) <juvr@odoo.com>
-
- Aug 28, 2023
-
-
Archana Vaghasiya authored
When the user tries to import the invoice file with space on both sides of the date value the error will be generated. Steps to reproduce: 1. Install the `account_edi_ubl_cii` module. 2. Generate one `factur-x.xml` file or import this file https://drive.google.com/file/d/1RCqLT37j2g6LPkauf75LpOzZt64XHd_L/view?usp=drive_link 3. Go to the invoice app and click the `upload` button. 4. Select the `factur-x.xml` file and an error will be generated at the backend and nothing to be imported. This commit fixes the issue by removing the extra spaces in the date value, if user gives the spaces in the invoice file. see- https://github.com/odoo/odoo/blob/a0ea6302a574624604cad7d0903711b30a4802a6/addons/account_edi_ubl_cii/models/account_edi_xml_cii_facturx.py#L315 sentry-4331059603 closes odoo/odoo#132617 X-original-commit: 1f32b5ec Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
- Aug 27, 2023
-
-
Odoo Translation Bot authored
-
- Aug 13, 2023
-
-
Odoo Translation Bot authored
-
- Aug 07, 2023
-
-
Julien Van Roy authored
Denmark is comprised in the EAS list but is not currently supported in Odoo. This commit makes UBL Bis 3 available for Danish companies. The schemeId "0184" corresponds to the "DIGSTORG" and is mandatory for Danish Suppliers (see: rule DK-R-014, https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-peppol/DK-R-014/ ). issue-130519 closes odoo/odoo#130605 X-original-commit: e4e2a28c Signed-off-by:
Laurent Smet (las) <las@odoo.com> Signed-off-by:
Julien Van Roy (juvr) <juvr@odoo.com>
-
- Aug 06, 2023
-
-
Odoo Translation Bot authored
-
- Jul 30, 2023
-
-
Odoo Translation Bot authored
-
- Jul 18, 2023
-
-
bve-odoo authored
Customer reported an XML file with an UBL_version 2.2 reported <cbc:UBLVersionID>2.2</cbc:UBLVersionID> at the beginning of the XML file. As reported on the wikipedia page of the 'Universal Business Language' (UBL): - the version 2.2 has been approved&published on July 2018. - the version 2.3 has been approved&published on June 2021. opw-3316684 closes odoo/odoo#128729 X-original-commit: 86fbee95 Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
- Jul 16, 2023
-
-
Odoo Translation Bot authored
-
- Jul 12, 2023
-
-
Julien Van Roy authored
Sometimes, the net price and the gross price are not present in the invoice line, but the line subtotal is (for instance, with some xml from Billit). In this case, it is still possible to infer the Odoo unit price and parse the xml correctly. opw-3384704 closes odoo/odoo#128303 X-original-commit: a8c82e6e Signed-off-by:
Laurent Smet (las) <las@odoo.com> Signed-off-by:
Julien Van Roy (juvr) <juvr@odoo.com>
-
- Jul 09, 2023
-
-
Odoo Translation Bot authored
-
- Jul 02, 2023
-
-
Odoo Translation Bot authored
-
- Jun 26, 2023
-
-
Julien Van Roy authored
A line of code has been duplicated while fixing a failed forward port, remove it. (see: https://github.com/odoo/odoo/commit/7f93f72a4f874e7073c0fec8ab0a89ebbd13e029 ) closes odoo/odoo#126390 Signed-off-by:
William André (wan) <wan@odoo.com>
-
Julien Van Roy authored
Currently, it's not possible to check the 'Peppol Bis 3' option on the journals of Italian companies, since Italy is not present in our mapping `COUNTRY_EAS`. The EAS for Italian companies may be the codice fiscal (code: 0210) or the VAT number (code: 0211). See https://peppol.agid.gov.it/en/news/expiration-validity-codes/ Use the VAT number by default, and add it in our mapping such that the option now appears for Italian companies. opw-3346572 closes odoo/odoo#126238 X-original-commit: 030b55b2 Signed-off-by:
Florian Gilbert (flg) <flg@odoo.com> Signed-off-by:
Julien Van Roy (juvr) <juvr@odoo.com>
-
- Jun 25, 2023
-
-
Odoo Translation Bot authored
-
- Jun 24, 2023
-
-
Yolann Sabaux authored
Steps to reproduce: - Install the lux localization - Configure Peppol for a customer: Select a customer > tab accounting > under "electronic invoicing": format: Peppol BIS Billing 3.0 Peppol e-address: 0130 - Directorates of the European Commission Peppol Endpont: testendpoint - Create an invoice for the peppol customer - Add a section or a note in the Invoice - Confirm the Invoice Issue: Raise user error: Odoo requires a tax for EACH LINE, instead of each product Solution: Exclude the section/note line opw-3354757 closes odoo/odoo#126269 X-original-commit: fb716296 Signed-off-by:
Laurent Smet (las) <las@odoo.com>
-
- Jun 20, 2023
-
-
Mehdi Bendali Hacine authored
For SA, we need to be able to filter on the taxes exported, as certain taxes should simply not be reported in the UBL. Part-of: odoo/odoo#124901
-
- Jun 18, 2023
-
-
Odoo Translation Bot authored
-
- Jun 16, 2023
-
-
Julien Van Roy authored
Issue: the xml declaration "<?xml version='1.0' encoding='UTF-8'?>" is lost when opening the send & print wizard with existing xml attachments. Explanation: When opening the send and print wizard, the PDF are generated and postprocessed by `_postprocess_pdf_report`. In the `_postprocess_pdf_report` override in `account_edi_ubl_cii`, the xml attachments are parsed through `tree = etree.fromstring(xml)`, then the base64 PDF is inserted, and the etree is converted to a bytes through `etree.tostring(cleanup_xml_node(tree))` and the resulting bytes is written back on the attachment, but the xml declaration disappeared. Solution: include the arguments `xml_declaration=True, encoding='UTF-8'` in the `tostring` function when converting the etree to a bytes. opw-3144519 closes odoo/odoo#125285 X-original-commit: d89f5cb2 Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
- Jun 14, 2023
-
-
bve-odoo authored
Steps to reproduce on fresh 15.0: Connected as Admin: 1. Install l10n_lu_peppol_id, 2. Modify the field 'edi_format_ids' on a journal (here will be on customer invoices) to the value 'Peppol BIS Billing 3.0' 3. Invoice a product using this journal and confirm it. > The XML will be generated and attached to the move. The mimetype of this attachement will be application/xml If you do the same step 3 with a user that does not have the write access right to the model ir_ui_view (see _check_contents in base), the attachment will be of type text/plain. The issue that this trigger, is that the email going out will have the wrong Content-Type for the attachments. Which will lead to incorrect management on other provider. We can bypass the security here as the XML is generated by Odoo. opw-3263542 closes odoo/odoo#124709 X-original-commit: 9ae7fdb8 Signed-off-by:
William André (wan) <wan@odoo.com>
-
- Jun 11, 2023
-
-
Odoo Translation Bot authored
-
- Jun 04, 2023
-
-
Odoo Translation Bot authored
-
- Jun 02, 2023
-
-
Mahamadasif Ansari authored
A float division by zero error is generated on the log, and nothing is imported from the file when the user uploads an XML file like https://drive.google.com/file/d/1_eZYfqMk2kLtPsEjv-13DRHnmoXkWYeE . This is because here in LineID 1, there is a value billed quantity is 0.0, a charge amount is 0.0, and a total amount is 100.0. This is wrong; the total amount is always 0.0 when the billed quantity is 0.0 (billed quantity * charge amount). This commit solves the above issue by dividing a price subtotal by one when the billed quantity is zero. sentry-4157357719 closes odoo/odoo#122078 X-original-commit: 3a6e84d6 Signed-off-by:
Quentin De Paoli <qdp@odoo.com> Signed-off-by:
Ansari Mahamadasif (maan) <maan@odoo.com>
-
- May 31, 2023
-
-
Julien Van Roy authored
Use case: the eco-taxes (recupel, auvibel, etc) are fixed taxes in Odoo, which apply before the "regular" (percentage) tax on an invoice line. We can have one or more fixed taxes and 1 regular tax. In EN16931, there can only be 1 tax per invoice line. Thus, the fixed taxes are encoded as charge on the invoice lines (with reason code `AEO`: "Collection and recycling"). The tags `AllowanceCharge` (in UBL) and `SpecifiedTradeAllowanceCharge` (in CII) are used. Then a serie of tax related infos need to be changed: the taxes in UBL/CII should not contain the fixed ones and the total untaxed amount needs to be adapted, as well as the total tax amount (since the fixed taxes were removed). To be able to import the fixed taxes back in Odoo, the charges on the invoice lines are read and their names and amounts are used to search on the existing taxes. task-3274208 closes odoo/odoo#122955 X-original-commit: 49ba394a Signed-off-by:
Laurent Smet <las@odoo.com>
-
- May 28, 2023
-
-
Odoo Translation Bot authored
-
- May 24, 2023
-
-
aliya authored
If a partner in the imported invoice does not exist, we create one on the fly. However, the partner is created without a country and `_run_vat_test` doesn't check it properly in 15.0, and fails in later versions, where we try to get the country code from the country we pass from `_import_retrieve_and_fill_partner`, which is `False`. This commit retrieves the country from the imported invoice to create the partner and passes the object instead of the `country_code` string to `_run_vat_test` closes odoo/odoo#122250 X-original-commit: 757ea532 Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Aliya Tastemirova (alta) <alta@odoo.com>
-
- May 23, 2023
-
-
Martin Trigaux authored
closes odoo/odoo#122042 Related: odoo/enterprise#41329 Signed-off-by:
Martin Trigaux (mat) <mat@odoo.com>
-
Julien Van Roy authored
An UBL Bis 3 xml can only contain one tax per invoice line. However, there might be one or more ecotaxes on invoice lines in Belgium. Do not block the user from generating the attachment in this case. Note that PR https://github.com/odoo/odoo/pull/121494 will properly handle the fixed taxes upon generating UBL attachments. opw-3318969 closes odoo/odoo#121854 X-original-commit: 68814f52 Signed-off-by:
William André (wan) <wan@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
- May 21, 2023
-
-
Odoo Translation Bot authored
-
- May 17, 2023
-
-
Julien Van Roy authored
When unit prices have more than 2 digits, it is currently not reflected in the UBL formats. Consequently, the line amounts are not equal to the unit price * quantity (assume there is no discount, charges or allowance) and it raises validation errors: "Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount". To fix this, we no longer round the unit prices. NB: the decimal accuracy should be set in the settings (otherwise, the default is 2 digits for unit prices). See https://docs.peppol.eu/poacc/billing/3.0/bis/#_rounding opw-3290035 task-3302904 closes odoo/odoo#121559 X-original-commit: bd795593 Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
- May 14, 2023
-
-
Odoo Translation Bot authored
-
- May 10, 2023
-
-
Julien Van Roy authored
Prevent crashing when there is no VAT for an autralian partner for A-NZ Bis Billing 3.0. closes odoo/odoo#121030 Signed-off-by:
Laurent Smet <las@odoo.com>
-
- May 09, 2023
-
-
Julien Van Roy authored
When receiving an email on a mailbox with an alias that triggers the creation of invoices, 4 bugs could occur. 1. If the xml received contains replacement characters (U+FFFD �), and the charset of the part of the email is "US-ASCII" the encoding of the string will fail, preventing the rest of the flow to be completed. Be more resilient, encode the string and ignores these characters if this case occurs. NB: sometimes, the charset is omitted for a Content-type: text/xml. This is valid but not recommended (see: https://www.ietf.org/rfc/rfc2376.txt). In this case, the default used is "US-ASCII". This means that any non-ascii char will be lost (they are replaced by the replacement character: �, see: https://github.com/python/cpython/blob/3.10/Lib/email/contentmanager.py#L67 ) when decoding the attachment. 2. When the xml attachment is created in Odoo, the mimetype is 'text/plain' (rather than 'application/xml'). Thus, the `_decode_attachment` needs to be more flexible when guessing the type of the attachment (to know which function to use to read the content of the attachment and create the invoice). 3. When creating an invoice from an email with an xml attachment, the xml is attached as the `message_main_attachment_id`. It's only later on that the content of the xml is read and we possibly find the PDF in base64 inside. When creating the PDF attachment, it was not set as the `message_main_attachment_id`, so the PDF was not rendered on the right part of the invoice form view. Add a clause to replace the `message_main_attachment_id` in such a case. 4. When the xml attachment represents a credit note, the move_type of the invoice created by the email alias needs to be changed. Indeed, the invoice is created before decoding the attachment, so we can only change the `move_type` later. opw-3144519 opw-3149649 closes odoo/odoo#120887 X-original-commit: b5214e1d Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
- May 07, 2023
-
-
Odoo Translation Bot authored
-
- May 03, 2023
-
-
Julien Van Roy authored
The edi attachment (for every format in `account_edi_ubl_cii`) contains a tag indicating whether the invoice is fully/partially paid. Before this fix, when this tag was filled, a down payment section was created on the invoice. For a fully paid invoice, the resulting amount was then 0, so the invoice was marked as "Paid". This was wrong. The correct amounts need to be kept on the invoices. This fix no longer creates a down payment, instead a message is logged in the chatter. task-3264843 opw-3248200 closes odoo/odoo#120353 X-original-commit: 47905d21 Signed-off-by:
Laurent Smet <las@odoo.com> Signed-off-by:
Julien Van Roy <juvr@odoo.com>
-
- Apr 30, 2023
-
-
Odoo Translation Bot authored
-
- Apr 26, 2023
-
-
Odoo Translation Bot authored
-