Odoo Help

Torsten Francke
On 12/3/13, 10:09 AM

I think your way is bad design. In my eyes there are two other ways.

1) Update the write() method. But this should work on saving but in general generating other objects makes it bad handle in the long run.

2) The clean way, is not patching the object. Instead make a wizard that creates a pre-define default object. Than a user can trigger this wizard if he want, but if the object was create in a flow of other prozess or module it will not be changed.

Thanks for your reply. I see your point and will try to use a wizard. But i dont quite get how to handle this yet. What do you mean by 'pre-defined default object' ? Regards

René Schuster
on 12/5/13, 5:14 AM

So instead of creating the project_lines directly in the database table, i will use a wizard to create them?

René Schuster
on 12/6/13, 4:17 AM

Yes, like transform a sale_order as a invoice or make hr_timesheet to a invoice

initOS GmbH, Torsten Francke
on 12/6/13, 8:55 AM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 12/3/13, 6:38 AM
Seen: 3647 times
Last updated: 3/16/15, 8:10 AM