Odoo Help

1 Answer
4/16/19, 7:14 AM


I achieved this by overriding the fields_view_get method and a simple update statement inside the method. This probably isn't the right way to do it but it works.

class AccountGroupInherit(models.Model):
_inherit = "account.group"

def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False):
res = super(AccountGroupInherit, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
self.env.cr.execute("UPDATE account_group SET name = UPPER(name)")
return res

Thank you

Ask a Question
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now