Monday, December 30, 2024
2 changes · saas-17.2
Resolved issues and error corrections
This fix ensures customers requesting Mexican POS invoices must provide their RFC/VAT and zip code, preventing invoices from being incorrectly issued to the generic public customer. It also corrects portal billing field handling so the required information is validated consistently.
Original PR description
Manual forward port of https://github.com/odoo/odoo/pull/187674 In the l10n_mx localization, the field RFC(VAT) and zipcode should be required to prevent the field from being defaulted to "public en…
Manual forward port of https://github.com/odoo/odoo/pull/187674 In the l10n_mx localization, the field RFC(VAT) and zipcode should be required to prevent the field from being defaulted to "public en general". How to reproduce: -Install l10n_mx and pos -Activate the option "Generate a code on ticket" -Go to POS and sell an article to generate the ticket -Go to the POS portal to request an invoice (/pos/ticket/) -Fill all the fields except for RFC -Odoo does not request this field and allows the client to submit the information -The invoice will be generated to "public en general" and not to the client requesting the invoice (Expected when there is no RFC) In addons/portal/views/portal_templates.xml, zip was used which was not part of OPTIONAL_BILLING_FIELDS in addons/portal/controllers/portal.py. This forces us to manually inject data['zipcode'] to data['zip'] in `details_form_validate` opw-4332357 I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Refreshing the Inventory Replenishment page now restores the correct menu context. This prevents the top navigation from disappearing, helping users continue their work without confusion or extra navigation steps.
Original PR description
**Problem**: In saas-17.2, the new URL structure no longer includes `menu_id`, which was previously used to set the current menu upon page refresh: https://github.com/odoo/odoo/blob/1443e5503c7396512a078f9f52fd4cb31b62e202/addons/web/static/src/webclient/webclient.js#L76 This change causes issues for actions like `action_orderpoint_replenish`, which are not directly tied to any `ir.ui.menu` and lack a `menu_id` in the URL: https://github.com/odoo/odoo/blob/535a02565f9e9142f0ef1fe9f44d1935f7b42075/addons/web/static/src/webclient/webclient.js#L59-L65 As a result, the menuId becomes `undefined`, leading to the top menu not being loaded properly. **Solution**: Add a path to action to ensure that it is properly reloaded. **Steps to reproduce**: 1. Navigate to *Inventory > Replenishment*. 2. Refresh the page. 3. Observe that the top menu disappears. opw-4350871