Skip to content

Conversation

@matiasperalta1
Copy link
Contributor

The error is when the payment term is set in the partner as well as pricelist.
The case of replication by creating a quotation and introducing a partner with the payment term and pricelist set in its configuration. Then we manually change the payment term and pricelist to another. And finally we change the type of sale. Here we observe that the aforementioned fields are recomputed to those configured in the partner and this is an error. With this PR the error no longer persists since all cases are considered.

@rousseldenis
Copy link
Contributor

@matiasperalta1 I'm not sure about the solution. We should avoid onchanges.

A test case should be welcomed.

@rousseldenis
Copy link
Contributor

@matiasperalta1

@matiasperalta1
Copy link
Contributor Author

@rousseldenis
Hi! sorry for the delay in the response. I analyzed another type of solution for the case but for the moment I understand that it is the best. I know that you should avoid using onchange but in some cases I can't think of how we could replace it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants