Incoterm error when converting an opportunity to sale
Steps to reproduce:
- Activate the
incoterm
andsale_opportunity
modules. - Create a company and fill its incoterms. For example, by selecting only the incoterms of version 2020.
- Create a new opportunity linked to a party and set the incoterm of it. Note that all incoterms are shown there, so you need to select one that is not selected on the company. For example, select one of version 2010.
- Click the
Convert to Opportunity
andConvert to Sale
buttons on the opportunity.
Current behaviour:
- A
DomainValidationError
is raised showing a message similar to: "The value "FOB (2010)" for field "Incoterm" in "(104)" of "Sale" is not valid according to its domain."
Expected behaviour:
- The users is not able select an incoterm that will produce a domain validation error later.