From 6346d43656335e645ad0755f5b1d2b1bc0f3f9f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com> Date: Tue, 27 Jun 2023 20:15:35 +0200 Subject: [PATCH] [FIX] load assets and no_create in views --- __manifest__.py | 5 +---- views/account_move_view.xml | 2 +- views/sale_order_view.xml | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/__manifest__.py b/__manifest__.py index 42f1ce7..a5ce9a6 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -26,10 +26,7 @@ "report/report_program.xml", ], "assets": { - "web.assets_common": [ - "lefilament_training/static/src/scss/style.scss", - ], - "web.report_assets_pdf": [ + "web.report_assets_common": [ "lefilament_training/static/src/scss/style.scss", ], }, diff --git a/views/account_move_view.xml b/views/account_move_view.xml index c140ee8..41d4e7a 100644 --- a/views/account_move_view.xml +++ b/views/account_move_view.xml @@ -13,7 +13,7 @@ <field name="training_id" domain="['|', ('customer_id', '=', partner_id), ('opco_id', '=', partner_id)]" - options="{ 'no_create_edit': True, }" + options="{ 'no_create': True, }" /> </xpath> </field> diff --git a/views/sale_order_view.xml b/views/sale_order_view.xml index 37cf140..9f91147 100644 --- a/views/sale_order_view.xml +++ b/views/sale_order_view.xml @@ -13,7 +13,7 @@ <field name="training_id" domain="['|', ('customer_id', '=', partner_id), ('opco_id', '=', partner_id)]" - options="{ 'no_create_edit': True, }" + options="{ 'no_create': True, }" /> </xpath> </field> -- GitLab