Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Create/Write on click one2many

By
Dércio Duvane
on 5/8/13, 12:27 PM 1,798 views

Hello, I have a bit of a problem with editable one2many fields on openerp 6.1

I need to on click of the save button on an editable tree line the system automatically save that line on the database, pretty much like the previous versions of Openerp.

1

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 5/11/13, 9:35 AM

Hi,

due to the code in web client (create a virtual id for the line which is changed to real id only when form is saved) and onchange method return (can't return a view or action), it is not possible, this is logical, lines are saved only when form is saved. The best way I find for 6.1 is to add a button update which return an action ir.actions.act_window, just on click to do (not two for save the form and edit in case where you want to save multi lines).

Bye.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

0 follower(s)

Stats

Asked: 5/8/13, 12:27 PM
Seen: 1798 times
Last updated: 3/16/15, 8:10 AM