Monday, October 28, 2024
4 changes · 17.0
New functionality added to Odoo
This update enables the creation of Factura B invoices for customers located outside Argentina. This is required to comply with Argentinian tax regulations for international sales, ensuring our system supports businesses operating in the Latin American market. The change leverages existing logic for foreign sales to streamline the process.
Original PR description
### Description of the issue/feature this PR addresses: It is needed to be able to create Factura B for a foreign customer. Legal reference: Here is some useful documentation : https://servicioscf.afip.gob.ar/publico/abc/ABCpaso2.aspx?id=8555970 https://www.afip.gob.ar/EspaciosdeDialogoInstitucional/documentos/Acta-15-Espacio-de-Dialogo-AFIP-Camaras-Empresariales-14-11.pdf ### Current behavior before PR: It is not possible to create Factura B for a foreign customer. ### Desired behavior after PR is merged: It is possible to create Factura B for a foreign customer. Task Adhoc side: 30008 Task latam side: 913 Forward-Port-Of: odoo/enterprise#71562
Resolved issues and error corrections
This update resolves a bug in the Balance Sheet report where a previously set threshold for prefix groups was incorrectly restored when opening variants. This prevented the report from calculating correctly with certain configurations. The fix ensures the threshold is always initialized from the appropriate field, improving report accuracy.
Original PR description
To reproduce the issue: 1) Set a prefix group threshold of 2000 on the Generic Balance Sheet 2) Modify the groupby of the Receivable line of that report so that it does account_id,id 3) Duplicate the…
To reproduce the issue:
1) Set a prefix group threshold of 2000 on the Generic Balance Sheet 2) Modify the groupby of the Receivable line of that report so that it does account_id,id 3) Duplicate the report ; modify the duplicate to:
- Make it a variant of the Generic BS
- Set its prefix group threshold to 3 4) Ensure at least 3 move lines exist in the same period for the Receivable account 5) Open the Balance Sheet. By default, the Generic one will be shown 6) Switch to the duplicate you made in 3).
7) Unfold both levels of the Receivable line.
====> Prefix groups aren't used, while the number of move lines reaches the threshold value.
This happens because the variant is opened from the Generic BS. So, options have first been generated and kept in the session for the Generic BS. When openin the variant, it receives the previously generated options as previous_options, and restores the threshold originally defined on the Generic BS.
We don't want to restore the threshold for previous options, so we just remove that code and now always initialize it to the value contained in the apporpriate field when computing the options.This update resolves an issue where delivery chatter was incorrectly posted to multiple pickings after a sale order was validated with a new delivery. The fix ensures chatter is only logged on the picking that was successfully validated, improving order tracking accuracy. This prevents confusion and ensures data consistency.
Original PR description
**Current behavior:** Using the DHL delivery shipping module, if you complete a sale order's delivery and then add new product to the order and, again, validate the new delivery, the shipping chatter…
**Current behavior:** Using the DHL delivery shipping module, if you complete a sale order's delivery and then add new product to the order and, again, validate the new delivery, the shipping chatter will be posted in all of the sale order's pickings. **Expected behavior:** The chatter should only be posted in the picking which was actually validated. **Steps to reproduce:** *Install delivery_dhl and l10n_be_hr_payroll* *Swap to My Belgian Company* *Duplicate the My Belgian Company partner record, giving it new unique values where necessary (VAT, address, etc.)* 1. Create a new sale order to the copied Belgian company 2. Add some storable product and add DHL EU shipping to the order (only DHL connector working) 3. Confirm the order, and validate the delivery 4. Back on the sale order, add another order line and save 5. Validate the new delivery, see that the delivery chatter is posted on both deliveries **Cause of the issue:** The message is currently logged on `sale_id.picking_ids`. **Fix:** Change the line in question to only log the message on the currently iterated over picking, as well as any relevant, previously created ones (e.g., in a multistep route context). opw-4059145 Forward-Port-Of: odoo/enterprise#71441
Accounting reports now properly translate filter options into different languages. Previously, filter labels like "Only Show Unreconciled Entries" were not being translated when users switched to languages like Danish. This fix ensures all filter options display in the user's selected language in both screen reports and PDF exports.
Original PR description
The problem: In the accounting reports, filter options were not being translated. Steps to reproduce: 1. Install and change to the Danish language. 2. Navigate to Accounting > Reporting > Partner ledger (Kontoudtog) 3. Activate the filter "Only Show Unreconciled Entries" (Vis kun ikke udlignede posteringer) 4. Generate the PDF report. Why it was happening: The array `extra_options` was built dynamically by concatenating raw python strings to it. Those raw strings will not be translated. The fix: Now, we create local variables for each string, using the syntax `<t t-set="label_raw_string">Raw String</t>` which makes the string `label_raw_string` translatable, then we append it to `extra_options`. opw-4213562