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

Generate records in database automatically

By
Diego Calzadilla
on 4/13/15, 11:51 AM 498 views

Hi,

Is it possible that after capturing a field generate a record in the database automatically and leave blank screen ready to take next record. All this without the neccesity of clicking "Save" button?


Is there already a module?

or any ideas to reach this goal?



0

Bole

--Bole--
2385
| 5 4 6
Zagreb | Karlovac, Croatia
--Bole--

there is only 10 kind of people the ones that understand binary ... and others

Bole
On 4/15/15, 9:43 AM

if you need such functionality :

  1. create a custom module

  2. inherit desired model, 

  3. create onchange method on field (that capturs some data) that will 

    1. first write all current values

    2. then return create new record


Typical this is something you should never do( write in onchage method) but in your case it can be easy way to achieve desired behaivour...

beware that this could lead to more problems than benefits

Hope it helps a bit


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

1 follower(s)

Stats

Asked: 4/13/15, 11:51 AM
Seen: 498 times
Last updated: 4/15/15, 9:43 AM