Wednesday, November 20, 2024
5 changes · 18.0
Enhancements to existing features
Users can now re-import exported chart of accounts spreadsheets that include company-specific account code mappings without import failures. The update also improves account code uniqueness checks so Odoo proposes valid, available account codes more reliably across companies.
Original PR description
When exporting a CoA in Excel format, the user can export the code mapping for all the companies via the `code_mapping_ids/company_id` and `code_mapping_ids/code` columns. However, importing these…
When exporting a CoA in Excel format, the user can export the code mapping for all the companies via the `code_mapping_ids/company_id` and `code_mapping_ids/code` columns. However, importing these values fails because the import transforms these values into `CREATE` commands on `code_mapping_ids`, which are currently not handled. With this commit, we catch those CREATE commands in `account.account` `create` and `write` methods and modify the account's code in the relevant company. In addition, we take the opportunity to correctly rewrite the `_ensure_code_is_unique` check method. In https://github.com/odoo/odoo/pull/181352, we relaxed the constraint that prevented accounts from being mapped to an account code in a company the account doesn't belong to, if there already exists an account in that company that already has that code. However, the `_ensure_code_is_unique` wasn't rigorously rewritten, and it didn't apply the check in a consistent manner. We now rewrite it and provide tests for it. We also modify the `_search_new_account_codes` method accordingly, such that it proposes the first non-reserved account code. Enterprise PR: https://github.com/odoo/enterprise/pull/71910 task-4247869
Indian localization settings now clarify which HSN code length applies based on business value thresholds. Companies below 5 crore use 4-digit HSN codes, while those above 5 crore use 6-digit HSN codes, helping users follow reporting requirements more clearly.
Original PR description
Modified HSN display format based on crore thresholds: - 4-digit HSN for values below 5 crore. - 6-digit HSN for values above 5 crore. This update enhances clarity by providing distinct formats for HSN codes based on value thresholds. > Task: 4252228
A new automated test checks that non-admin users can access quotation documents as expected. This helps prevent future issues where regular sales users might be blocked from viewing or using quote documents.
Original PR description
This commit add test case to check quotation document access with non admin user to ensure user proparly able to access document without any issue. opw-4290856
Restaurant point-of-sale users can now return to the floor plan without waiting for a background server update to finish. This makes navigation feel quicker and removes an unnecessary notification when moving to the ticket screen.
Original PR description
- We don't wait anymore the server's response (from the call to `sync_from_ui`) when going to the floorplan. - Remove useless toaster notification when going to the ticket screen. task_id: 4329314 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Account imports now support accounts shared across companies by making the account code optional and allowing accounts to be matched by company-specific code, external ID, or database ID. Users can also import company-specific code mappings, helping multi-company setups maintain different account codes accurately.
Original PR description
We adjust the account import mechanism to the new reality that accounts can now be shared between companies, and have different codes in different companies. - The `code` column is now no longer required. Users can reference an account by its code in the current company (in which case only the account with that code that belongs to the current company will be matched), but can also reference an account by its external ID or database ID. - The user can import a code mapping for accounts via the `code_mapping_ids/company_id` and `code_mapping_ids/code` columns. We add a check that both of these columns must be simultaneously present. Community PR: https://github.com/odoo/odoo/pull/183695 task-4247869