Wish - it would be great to be able to change the content of a one2many list from an on_change event
Bug #969027 reported by
Christophe Hanon (www.adins.be)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Wishlist
|
OpenERP's Framework R&D |
Bug Description
This is not a bug but an enhancement/wish request.
It is possible to put an on_change attribute on a one2many field. The on_change handler is properly called.
However it is not possible to change freely the content of the one2many.
It is worth insisting on what I mean by 'freely'. You can send back an array (e.g : [1,2,3] ) of ids but these must correspond to existing item in the db.
Purpose. I stumbled on this trying to find a solution for the following business case:
when a product is added to a sale order (new sale order line), related products should be added to the sale order automatically (buty a pc, the system adds a screen, a keyboard a mouse).
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
To post a comment you must log in.