Question

I couldn't find any documentation of the optional parameters that are available to all field types in OpenERP models, so I added what I knew to the fields documentation page.

There are a bunch of parameters that I don't understand, so I'd appreciate help fleshing out the documentation. You can post answers here, and I'll update the docs, or you can edit the docs yourself. Either one is appreciated.

The specific fields I had questions on are:

  • change_default
  • context
  • priority
  • select

The states parameter could also use more details.

Was it helpful?

Solution

Are you sure that they are still in use this fields ? because i just did a find /openerp | grep "field" and i didn't find much code that use them ? and because in my experience with openerp the core code is such a mess it's not the first time that i found such a thing (unused code, unused function ...)

but here is what i find until know maybe it can help you :

  • change_default: in documentation that you linked change_default is like on_change but are you sure, because change_default can be set to (True or False ) rather on_change is a string where you specify a function that get launched when the value is changed in the view but here is the only thing i found in the code is this :

    #one2many can't be used as condition for defaults assert(self.change_default != True)

  • ...

take a look on this too : http://openobject.com/wiki/index.php/Developers:Developper%27s_Book/Objects/ObjectsDefine/ObjectsFields

N.B:

  1. i have openerp version 5.0.14

  2. i will try to add more info as soon as i found more

good luck with the documentation is been a long time that i was waiting a good doc for openerp and up to date

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top