Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Creating the new model and fields in odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 485
    Comment on it

    First create a model (if you dont have one yet) then create some fields on this model:

    class check_demo(models.Model):
        _name = 'check.demo'
        name = fields.Char(required=True)
        numberOfUpdates = fields.Integer('Number of updates', help='The number of times the scheduler has run and updated this field')
        lastModified = fields.Date('Last updated')
    

    This will create a new model named check.demo which will contain three fields: a text field for the name, an integer field to keep track of how many times the record was updated and a date field.
    This is all you need on the database level. You have your fields in the database, now you only need to show them to the user now.

 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: