[FIX] l10n_id_efaktur: Fix a TypeError exception on efaktur

When a user that doesn't have to right on "Multi company", efaktur will crash
when creating a new entry to e-Faktur.

This is due to a missing permission on the field "company".
This fix to set "company" to invisible when the user is not in the
base.group_multi_company group

opw-3052775

closes odoo/odoo#109082

X-original-commit: 3e389564601928737647472a36056246209d05b9
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
This commit is contained in:
joda-odoo
2023-01-09 12:22:49 +01:00
committed by Jordan D. (Joda)
parent 84d9cb9271
commit 241ee24b40
@@ -10,6 +10,7 @@
<field name="max"/>
<field name="available" sum="Total Available"/>
<field name="company_id" groups="base.group_multi_company"/>
<field name="company_id" invisible="1" groups="!base.group_multi_company"/>
</tree>
</field>
</record>