Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13] delivery: all states are removed on adding/removed on adding new one #74200

Open
sswapnesh opened this issue Jul 25, 2021 · 5 comments
Open
Labels
13.0 14.0 Logistics about stock, mrp, delivery, purchase

Comments

@sswapnesh
Copy link
Contributor

Impacted versions: 13/14

Steps to reproduce:
Screenshot from 2021-07-25 23-57-48

add new State Which belongs to another Country or add another Country

Current behavior: States are Empty

Expected behavior: States should stay.

Video/Screenshot link (optional):

Support ticket number submitted via odoo.com/help (optional):

@pedrobaeza
Copy link
Collaborator

I don't see it as incorrect. Maybe a domain over the field State for preventing the first case is needed.

@beshoynabeih
Copy link
Contributor

@pedrobaeza I see It is issue because when I create new state, It adds the country but no state added in the m2m field.

@pedrobaeza
Copy link
Collaborator

I don't get the steps to reproduce it.

@beshoynabeih
Copy link
Contributor

@pedrobaeza I will send the video at the end of the day

@sswapnesh
Copy link
Contributor Author

Shipping.Methods.-.Odoo.mp4

@pedrobaeza pedrobaeza added 13.0 14.0 Logistics about stock, mrp, delivery, purchase labels Jul 27, 2021
sswapnesh added a commit to sswapnesh/odoo that referenced this issue Jul 31, 2021
Before this commit, Fields `state_ids` and 'country_ids' was not accessed correctly,
as m2m will return`new` ids during onchange.

With this commit, we are accessing fields correctly.

Fixes odoo#74200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
13.0 14.0 Logistics about stock, mrp, delivery, purchase
Projects
None yet
Development

No branches or pull requests

3 participants