[FIX] mrp_subcontracting: portal should be readonly

1. Except for registering components, the portal should be readonly
2. Don't open sm form when click it.

closes odoo/odoo#102935

X-original-commit: 4c5ba480e91b7e06c49b3683c36ff0a9aac9b60f
Signed-off-by: Arnold Moyaux (arm) <arm@odoo.com>
Signed-off-by: Yuchen Huang (yhu) <yhu@odoo.com>
This commit is contained in:
yhu-odoo
2022-10-11 15:52:02 +02:00
parent d9e753aa29
commit 70810919da
2 changed files with 3 additions and 1 deletions
@@ -45,6 +45,8 @@ export class SubcontractingPortalWebClient extends LegacyComponent {
{
props: {
resId: picking_id,
preventEdit: true,
preventCreate: true,
},
additionalContext: {
no_breadcrumbs: true,
@@ -22,7 +22,7 @@
<notebook>
<page string="Operations" name="operations">
<field name="move_ids_without_package" mode="tree">
<tree create="0">
<tree no_open="1">
<field name="id" readonly="1" invisible="1"/>
<field name="product_id" readonly="1"/>
<field name="show_details_visible" invisible="1"/>