Skip to content
Snippets Groups Projects
Commit 4c90fde4 authored by Andrea Grazioso (agr-odoo)'s avatar Andrea Grazioso (agr-odoo)
Browse files

[FIX] base: force compute active_lang_count


Create a new contact (just open the create form)

The "Language" field is missing, because active_lang_count is not
computed before the record is saved, but it is necessary to display the
language field

opw-2149324

closes odoo/odoo#41162

Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
parent eed3171f
No related branches found
No related tags found
No related merge requests found
......@@ -234,6 +234,7 @@ class Partner(models.Model):
for partner in self:
partner.display_name = names.get(partner.id)
@api.depends('lang')
def _compute_active_lang_count(self):
lang_count = len(self.env['res.lang'].get_installed())
for partner in self:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment