Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to use selection method in OpenERP(Odoo)?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 233
    Comment on it

    Its indicate no selection constraint in database. Selection must be set as a list of tuples or a callable that returns a list of tuples
    In below code i have explain search_read

    aselection = fields.Selection([('a', 'A')])
    aselection = fields.Selection(selection=[('a', 'A')])
    aselection = fields.Selection(selection='a_function_name')
    Note- a list of tuple or a callable name that take recordset as input
    .When extending a model, if you want to add possible values to a selection field, you may use the selection_add

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: