Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Field edition in Odoo-9

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 158
    Comment on it

    Field edition in odoo which is specific to a record should be saved on that record, soFor record fields, templates can use a special t-field directive which allows editing the field content from the website using field-specific interfaces. Change the person template to use t-field and for example you can see below code and you can use it in .py and .xml file in Odoo module.

    demo.py
        _name = 'academy.demo'
    
        name = fields.Char()
        biography = fields.Html()
    academy/templates.xml
                    <div class="oe&#95;structure">
                        <div class="container">
                            <h3><t t-esc="test.name"></t></h3>
                            <div><t t-esc="demo.biography"></t></div>
                        </div>
                    </div>
                    <div class="oe&#95;structure"></div>
    

 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: