[FIX] mrp: allow access to workorder tree view

Following 332c117, the list of workorders cannot be accessed from the
menu. This is due to the `parent` not being defined in this case. The
`column_invisible` clause is useful when using the tree view from within
a MO form.

Before the change, the `attrs` attribute (containing the
`column_invisible` clause) was overwritten in the inherited view that is
accessible from the menu. Now that each previously-attrs are separate,
we need to explicitely overwrite `column_invisible` to get rid of the
reference to `parent`.

closes odoo/odoo#133026

Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
This commit is contained in:
clesgow
2023-08-25 13:58:55 +02:00
parent 19d9473010
commit 6629bb802c
+1
View File
@@ -127,6 +127,7 @@
</field>
<field name="state" position="attributes">
<attribute name="invisible">production_state == 'draft'</attribute>
<attribute name="column_invisible">False</attribute>
</field>
</field>
</record>