Saturday, November 30, 2024
2 changes
Resolved issues and error corrections
Loading a new chart of accounts for a company no longer deletes accounting records that are shared with other companies. This prevents one company’s setup changes from accidentally disrupting accounting configurations used elsewhere.
Original PR description
When loading a chart template on a root company, we check whether any journal items have already been created for the company, and if not, we delete the existing accounting configuration before loading the new CoA. However, we must take care in the case of records that are shared between several companies, to just unlink them from the active company, rather than delete them (which would affect other companies as well). This commit fixes that. task-none
Mexican global invoices can now be created from invoices or POS orders in a foreign currency, as long as all selected documents use the same currency. This prevents unnecessary blocking for valid USD or other foreign-currency transactions while still avoiding mixed-currency global invoices.
Original PR description
### Steps to reproduce the issue: 1. Activate Mexican Localization and switch to Mexican company 2. Create a POS Order or an Invoice in USD 3. Select the Order/Invoice and create a Global Invoice 4. Receive the error: > You can't process orders having a foreign currency. or > You can't process invoices having a foreign currency. ### Explanation: The intended behaviour, blocking multicurrency on Global Invoicing, was explained as an interdiction on foreign currencies. ### Fix reasoning: Intended behaviour is to block the user when all `pos.order` or `account.move` do not have the same `currency_id`. opw-4302180