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_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_structure"></div>
0 Comment(s)