Wednesday, September 25, 2024
3 changes · 17.0
Enhancements to existing features
This improvement extends the fiscal folio display feature to vendor invoices and payment records in list views. Previously, this important Mexican tax identification number was only visible for customer invoices. Now users can see the fiscal folio across all relevant transaction types, improving visibility and compliance tracking for Mexican operations.
Original PR description
Allow viewing the fiscal folio for vendor invoices and all payments in the tree view, as it currently only displays for customer invoices.
Resolved issues and error corrections
Fixed a bug where users could incorrectly select expense accounts from different companies when creating assets in a multi-company environment. This prevents data integrity issues and ensures assets only use accounts from their own company.
Original PR description
To reproduce: Be in multicompany, with several companies selected. Create an asset Click on the Expense Account field Select accounts from a different company than the asset's We should not show these. Even worse, in ulterior version, you can save the asset. (computing depreciations would still be prevented) The issue is that we define a custom domain, so it should include it. no-task Forward-Port-Of: odoo/enterprise#68699
Fixed an issue that prevented non-administrator users from sending and printing Mexican invoices (CFDI). The system now properly handles certificate access during invoice processing without requiring administrative rights. This allows regular users to complete their invoicing tasks independently.
Original PR description
### Steps to reproduce issue: 1. Install Mexican localization 2. Make sure Demo User has no administration right 3. As Demo User, create and confirm Invoice for Mexican customer - Make sure Products of the Invoice have an UNSPSC Category (Accounting tab) 5. Send and print Invoice for CFDI 6. An Access Error is raised: > You are not allowed to access 'SAT Digital Sail' (l10n_mx_edi.certificate) records. > > This operation is allowed for the floowing groups: > - Administration/Settings ### Explanation: During the operation, the user will retrieve the certificates of the company in `_send_api`. Those certificates can only be accessed by people with `group_system` access rights. ### Fix reasoning: Since the issue only concerns the retrieval of the certificates, we will enter superuser mode when executing this operation. opw-4205612