[IMP] base: make module fields !create

Trying to create a module through the interface will blow up as
computing the `desc` leads to a concatenation of the module's addons
path, the module's name and a hard-coded path, which does not work as
the module does not have a name yet. This creation attempt can be
performed as the admin through m2o fields.

Given said creation through the UI doesn't really make sense, disable
it on the relevant fields.

Fixes #23059
This commit is contained in:
xmo-odoo
2018-02-19 15:02:38 +01:00
committed by GitHub
parent 97ed2e730e
commit 2c1b97e22b
+2 -2
View File
@@ -443,7 +443,7 @@
<group col="4">
<field name="type"/>
<field name="name"/>
<field name="module"/>
<field name="module" can_create="false"/>
<field name="model"/>
<newline/>
<field name="date_update" />
@@ -479,7 +479,7 @@
<form string="ManyToMany Relations">
<group col="4">
<field name="name"/>
<field name="module"/>
<field name="module" can_create="false"/>
<field name="model"/>
<newline/>
<field name="date_update" />