odoo/odoo#192592

Created by fw-bot
Merged at 7b55ee1a46d46b37d89ecd3a230d64d3c39fba9b

Statuses:

label
odoo-dev:saas-18.1-17.0-opw-4332357-override_billing_fields_portal-gute-knIb-fw
head
6931bd10ba93c995ceb2ae4b7718eb650d7187bb
merged
9 months ago by Guillaume Teboul-Tornezy (gute)
odoo/odoo odoo/enterprise
17.0 #187674 #74072
saas-17.2 #191989 #76280
saas-17.4 #192167
18.0 #192578
saas-18.1 #192592
saas-18.2
saas-18.3
saas-18.4
19.0
master #192601

[FW][FIX] portal, point_of_sale: return new instance of fields list

[FIX] portal, point_of_sale: return new instance of fields list
This commit contains a backport of 1e39d5c2e5f4d4c77b0190ea1eb4781e2143657f to fix the following issue:

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
-Go to POS and sell an article to generate the ticket
-Go to the POS portal to request an invoice
-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)

opw-4332357

enterprise pr: odoo/enterprise#74072


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #192167
Forward-Port-Of: #187674