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

one2many Save & New button not working

By
Prakash
on 4/18/13, 3:30 AM 2,463 views

In Openerp 7.0 one2many field does not save in database even if Save & New or Save & Close button is clicked. To actually Save it in database, one have to click on main Save button of parent object.In Openerp 7 one2many field does not save in database even if Save & New or Save & Close button is clicked. To actually Save it in database, one have to click on main Save button of parent object.

How to solve this issue? Currently Save & New or Save & Close button is not saved the record how to make it work without using main save button?

please put an error if came in server so that we can know what is the issue

Abhishek MEhta
on 4/18/13, 3:48 AM

Issues Sales Order Lines Save & Close Button is not save the record in database. Need to click on main Save Button in Sale order. How to make work Save & Close Button ? Thanks

Prakash
on 4/18/13, 4:11 AM
0
Juanjo Algaz
On 4/18/13, 10:04 AM

This is the correct behavior from 6.1 release.

Only the main save button (parent object), save all records.

If the problem is for programming, even so, you can access from code to all values.

Is it possible to change the current behavior ? If possible how?

Prakash
on 4/18/13, 10:10 AM

I dont know, but, why change this? what you need?

Juanjo Algaz
on 4/18/13, 2:11 PM

In Custom Module Lines Sequence No auto Generated 10, 20, 30 Code is written. In Lines Each and every entry need to save the main button. Then only auto generated working. otherwise it generate 10,10,10 [so how to make work lines save & close button?]

Prakash
on 4/19/13, 2:59 AM

You can use aux vbles or internal counter to save correctly when master is saved (overwrite methods create and write)

Juanjo Algaz
on 4/19/13, 10:00 AM

please see the link http://forum.openerp.com/forum/topic31545.html same issue

Prakash
on 4/20/13, 3:53 AM

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: 4/18/13, 3:30 AM
Seen: 2463 times
Last updated: 3/16/15, 8:10 AM