Permalink
Browse files

🚑 html fields got False on get_multi calls

  • Loading branch information...
KolushovAlexandr committed Feb 1, 2019
1 parent df79343 commit 38dda747a4a04077551a0907376efea293c9a9b2
Showing with 4 additions and 0 deletions.
  1. +4 −0 web_website/models/ir_property.py
@@ -114,6 +114,10 @@ def get_multi(self, name, model, ids):
field_id = self.env['ir.model.fields']._get(model, name).id
company_id = self._context.get('force_company') or self.env['res.company']._company_default_get(model, field_id).id or None

# for some reason html field type is missed in TYPE2FIELD
if field.type == 'html':
TYPE2FIELD['html'] = 'value_text'

if field.type == 'many2one':
comodel = self.env[field.comodel_name]
model_pos = len(model) + 2

0 comments on commit 38dda74

Please sign in to comment.