Saturday, March 9, 2024
3 changes · saas-17.1
Enhancements to existing features
This update enables Italian businesses to correctly handle Internal Reverse Charge invoicing, aligning with local tax regulations. It automatically maps tax rates and exemptions, generates necessary tax integration XMLs for submission to the tax agency, and improves invoice import processes for Italian VAT transactions.
Original PR description
Add support for Internal Reverse Charge invoicing flows in Italy. - Add 0% sale taxes and purchase taxes targeting `VJ` grids in `l10n_it` for every Tax Exemption Reason involved (Scrap, Gold...) -…
Add support for Internal Reverse Charge invoicing flows in Italy.
- Add 0% sale taxes and purchase taxes targeting `VJ` grids in `l10n_it` for every Tax Exemption Reason involved (Scrap, Gold...)
- Add a Fiscal Position (equivalent to the Belgian "CoContractant" one) mapping the sale tax and purchase taxes to their Reverse Charge corresponding taxes. Those fiscal positions all have a different law-required note (with the law reference) that has to be printed on the PDF invoice through Odoo standard mechanisms.
- The way we compare the invoice features and each document type requirements has been revised and expanded for the tax_tags sets case. Now it should also avoid comparisons after the first failure, instead of doing all the comparison anyway.
- Imported vendor bills that have `TD16, TD17, TD18` now have their 0% reverse charge sale taxes converted to their purchase 22% VAT reverse charge corresponding tax impacting `VJ` tax grids, following this mapping:
```
Sale tax examption reason -> VJ grid targeted by purchase tax
N3.2: VJ3
N3.3: VJ1
N6.1: VJ6
N6.2: VJ7
N6.3: VJ12
N6.4: VJ13
N6.5: VJ14
N6.6: VJ15
N6.7: VJ16
N6.8: VJ17
```
- Vendor bills that have taxes targeting grids `VJ6, VJ7, VJ8, VJ12, VJ13, VJ14, VJ15, VJ16, VJ17` are exported as Tax Integrations XMLs to be sent to the Tax Agency with the document type `TD16`
- Vendor bills that have taxes targeting grid `VJ3` are exported as Tax Integrations XMLs to be sent to the Tax Agency with the document type `TD17`
- Vendor bills that have taxes targeting grid `VJ9` are exported as Tax Integrations XMLs to be sent to the Tax Agency with the document type `TD18`
Link: https://www.odoo.com/web#model=project.task&id=3724926
task-3724926
Forward-Port-Of: odoo/odoo#153556Resolved issues and error corrections
This update fixes an issue where time sheet entries linked to projects using global time off were incorrectly included in time off calculations. The change ensures that time sheet entries are only considered for global time off when they are directly associated with that type of time off. This improves the accuracy of time off reporting.
Original PR description
Fix to avoid considering TS lines for projects linked to global time off Forward-Port-Of: https://github.com/odoo/odoo/pull/156338 Forward-Port-Of: odoo/odoo#157108
This update ensures that websites remain accessible to public users even after a company is archived. Previously, archiving a company linked to a website would break website access. This change corrects a potential disruption to website functionality for customers and users.
Original PR description
This commit prohibits the archival of a company if it is associated with a website. Otherwise, the website wouldn't be accessible anymore by public users (and so by all users if they need to login). Step to reproduce: - On website 2, change the company from SF to Chicago - In the website list view (in debug mode), reorder the websites so website 2 is the first one in the tree view - Archive the Chicago company (from debug > companies and do it from the list view) - Try to access the website/runbot from an incognito tab - It will show a raw 403 error Note that the companies can only be archives since Odoo 16, thanks to this commit: https://github.com/odoo/odoo/commit/7d0996bb151f68647b22719eee5ed4a4c35574bb opw-3749772 Forward-Port-Of: odoo/odoo#156988 Forward-Port-Of: odoo/odoo#156470