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

like OpenERP save should include the loaded related models cascade by default #3

Closed
rvalyi opened this issue Nov 8, 2009 · 2 comments

Comments

@rvalyi
Copy link
Member

rvalyi commented Nov 8, 2009

In the following script provided by Joël Grand-Guillaume from CampToCamp:

a=ResPartnerAddress.find(:first)
a.partner_id.supplier=true
a.save
a.partner_id.supplier -> false

a.save doesn't save the related partner address. OpenERP ORM is able do do it and that would be the default using the OpenERP client (change a sale order and it will save lines and all other many2one/one2many related records.

From now on, many2one loaded relation are cached in @loaded_relations. If those relations are many2one and one2many fields, let's give them to the OpenERP save method too.

@rvalyi
Copy link
Member Author

rvalyi commented Nov 8, 2009

see an ActiveRecord like library that does it optionnaly: http://www.themidnightcoders.com/fileadmin/docs/flexclient/weborb/data/ActiveRecord.html

Still, I think this should be the default for us in OOOR as OpenERP clients does it be default and OpenERP ORM supports it

@rvalyi
Copy link
Member Author

rvalyi commented Jan 18, 2010

fixed for the in line one2many relations in OOOR 1.2.0 (so it's iso-functionnal with the GTK client, see details in the up to date README).

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant