Odoo Help


How to make new default data if year of periode changed ?

Dion Martin
on 2/10/14, 11:01 PM 985 views

i have a code of periode

'periode' : fields.many2one('account.period','Periode'),

and default

def default_abcd(self, cr, uid, context={}):

return '12'

_defaults = {

        'abcd' : default_abcd,


and 1 function fields to accomodate (abcd + another fields.float)

and how if i want to abcd return back into '12' when periode change from 2013 to 2014

Hi Dion Martin, to create a new period you enter Accounting --> configuration --> periode --> fiscal years

on 2/4/15, 9:44 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/10/14, 11:01 PM
Seen: 985 times
Last updated: 3/16/15, 8:10 AM