Daily updates from Odoo
Wednesday, September 25, 2024
5 changes · saas-17.4
Miscellaneous changes
Follow-up on #179964, but this time properly checking if the link is still usable from both sides (i.e. both PO *and* SO). Also fixes the issue with the link from PO <-> MO in the same way. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#180923
Original PR description
Follow-up on #179964, but this time properly checking if the link is still usable from both sides (i.e. both PO *and* SO). Also fixes the issue with the link from PO <-> MO in the same way. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#180923
**Current behavior:** An invoice with offsetting lines (total == 0.00) with 0% tax will prevent the invoice from being processed by the SII Llevanza de libros registro (ES). **Expected behavior:** The invoice can be processed. **Steps to reproduce:** 1. Create an invoice from a Spanish company to, e.g., a Belgian company 2. Create 2 invoice lines for the same product, one for positive 10 euros, the other for negative 10 euros 3. Add the `0% EU S (Services)` tax to both invoice lin
Original PR description
**Current behavior:** An invoice with offsetting lines (total == 0.00) with 0% tax will prevent the invoice from being processed by the SII Llevanza de libros registro (ES). **Expected behavior:**…
**Current behavior:** An invoice with offsetting lines (total == 0.00) with 0% tax will prevent the invoice from being processed by the SII Llevanza de libros registro (ES). **Expected behavior:** The invoice can be processed. **Steps to reproduce:** 1. Create an invoice from a Spanish company to, e.g., a Belgian company 2. Create 2 invoice lines for the same product, one for positive 10 euros, the other for negative 10 euros 3. Add the `0% EU S (Services)` tax to both invoice lines 4. Confirm the invoice, then try to process the document 5. Observe the error about not having a tax scope set, even though the scope is set in the tax settings **Cause of the issue:** When an invoice in in this state, it goes through the `_l10n_es_edi_get_invoices_tax_details_info()` method without a value for the `TipoDesglose` EDI node, causing the exception. **Fix:** If there are taxes present but no values for the `TipoDesglose` node filled at the end of the method, add them (respectively, based on the tax type) with a value == 0. opw-4083107 Forward-Port-Of: odoo/odoo#180333
**Current behavior:** If a kit component is packaged, it will only appear once on a delivery slip for the kit product under the package section. **Expected behavior:** It should always (also) be shown under the kit section. **Steps to reproduce:** 1. Create a product with a kit bom with 2 components 2. Create on-hand quantities for the components, where one is in a package and the other is not 3. Create a delivery for the kit product, validate, print the delivery slip **Cause o
Original PR description
**Current behavior:** If a kit component is packaged, it will only appear once on a delivery slip for the kit product under the package section. **Expected behavior:** It should always (also) be shown under the kit section. **Steps to reproduce:** 1. Create a product with a kit bom with 2 components 2. Create on-hand quantities for the components, where one is in a package and the other is not 3. Create a delivery for the kit product, validate, print the delivery slip **Cause of the issue:** These move lines were intentionally separated. **Fix:** Remove the template logic where the lines that previously displayed such lines one time, prioritizing the package. opw-4148795 Forward-Port-Of: odoo/odoo#180859
In `test_base_on_rule_currency_is_converted` we create a rate for a testing currency and check that is applied, but we don't specify its name/date, so under certain conditions it will considered as applying only tomorrow and the test will fail. runbot-97969 Forward-Port-Of: odoo/odoo#180943 Forward-Port-Of: odoo/odoo#180287
Original PR description
In `test_base_on_rule_currency_is_converted` we create a rate for a testing currency and check that is applied, but we don't specify its name/date, so under certain conditions it will considered as applying only tomorrow and the test will fail. runbot-97969 Forward-Port-Of: odoo/odoo#180943 Forward-Port-Of: odoo/odoo#180287
**Current behavior:** Attempting to test the import of a new CoA on a fresh DB will result in a query actually getting executed and an error propagated up to the UI, however if you were to instead actually do the import, it would work and everything would be correct. **Expected behavior:** If the actual import would work, the 'Test' button should indicate the same. **Steps to reproduce:** *From a fresh DB with account_accountant* 1. Go to the Chart of Accounts view 2. Import a n
Original PR description
**Current behavior:** Attempting to test the import of a new CoA on a fresh DB will result in a query actually getting executed and an error propagated up to the UI, however if you were to instead actually do the import, it would work and everything would be correct. **Expected behavior:** If the actual import would work, the 'Test' button should indicate the same. **Steps to reproduce:** *From a fresh DB with account_accountant* 1. Go to the Chart of Accounts view 2. Import a new CoA 3. Download the template offerred, upload it 4. Click 'Test' -> see the FKEY error **Cause of the issue:** The precommit hook for updating a company's opening move is expected to flush its changes, which is currently not happening. **Fix:** Flush the changes made in the precommit hook at the end of the method. opw-4103686 Forward-Port-Of: odoo/odoo#180708