-
Notifications
You must be signed in to change notification settings - Fork 62
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
Remove Many2One #48
Comments
Hello @serxoz ! odoo.NewMany2One(0, "") It will unassign the current value from the model instance. |
Hello @ahuret and thank you :D I've done what you have said but now I get:
Maybe you have struggled with this thing before if not, don't worry, we can close the issue. |
What's the model you're trying to update ? |
It's a custom model of a module developed by ourselves to manage telephone numbers. It has some odoo.Relation and odoo.Many2One fields. Here it is:
And I am doing this:
But when update is executed I got the error message that told before:
|
Did you generate the model using the generator or did you create it by hand youself. |
btw what about the |
I don't know about why it suggest that with the |
Interesting, maybe the Also I would be interested to know the version of the odoo instance you're working with. |
Good morning! I've cleaned all caches:
Then upgraded to the commit you pointed:
And, it worked! |
Nice, I will merge it :-) Closing it ! |
new https://github.com/skilld-labs/go-odoo/releases/tag/v1.9.1 tag contains the fix @serxoz ! |
Hi!
I have a model with a Many2One relation and I want to unassign it but I don't know how to do it.
I hope you can tell me the direction to follow.
Thank you in advance.
The text was updated successfully, but these errors were encountered: