Odoo Help


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.


How to set defaults dynamically, depending on last record?

on 4/26/13, 7:52 AM 917 views

I have a one2many field which has an editable tree view inside the parent object's form view. Each new entry should by default copy values from the last entry. I tried to update the context on the create method and call it as default, but no success. Something similar is implemented in the v5 and v7 of the account entry lines, where when a move is recorded, the reverse entry is generated...but have not been able to do so

use default get method you will get it

on 4/30/13, 11:39 AM
arun das
On 4/30/13, 8:50 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

1 follower(s)


Asked: 4/26/13, 7:52 AM
Seen: 917 times
Last updated: 3/16/15, 8:10 AM