This question has been flagged

I've a main product selection field on a form view and tree-view below it for attributes and such. I've created records using ORM Create Method in the onchange function. On selction of particular product, records are being created in treeview for it's attributes, but when I click on save, all records simple vanish from treeview, but I'm able to see new record being generated from odoo shell. I've tried using sudo with dedicated create method. but it does the same thing. How do you correctly use the ORM's Create method? so that it is saved in view as well?

Also there's a total_qty field being used to update with onchange function, which gets printed out on shell but doesn't update in the view.

note:  The view is being generated from a Button click, like wizard pop-pup.

Avatar
Discard

You can check this issue something related to your question. https://github.com/odoo/odoo/issues/2693

Author

Thanks for your reply, do you know if that issue with onchnage() has been fixed in odoo-10 ? 'coz it seems to be the issue with V8 from that link.