From 899a219761e4c7e7f02765ffba8747dfaa483edf Mon Sep 17 00:00:00 2001 From: zhou <123@> Date: Thu, 1 May 2025 18:36:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- room/controllers/main_room_yuthon.py | 1 - room/views/room_booking_views.xml | 12 +++--------- room/views/webclient_templates.xml | 5 ----- .../views/issue_approval_decision_views.xml | 4 ++-- .../static/src/js/task_create_button.js | 18 ++++++++++++++---- .../static/src/xml/task_create_button.xml | 5 ++++- 6 files changed, 23 insertions(+), 22 deletions(-) diff --git a/room/controllers/main_room_yuthon.py b/room/controllers/main_room_yuthon.py index 038bf8dbd..0922c3262 100644 --- a/room/controllers/main_room_yuthon.py +++ b/room/controllers/main_room_yuthon.py @@ -70,7 +70,6 @@ class Home(http.Controller): def web_room_partner_create(self, room_id=None, **kw): ensure_db() values = {k: v for k, v in request.params.items()} - _logger.info("Initial values: %s", values) if not (room_id or values['room_id']): values['error'] = "缺少会议号" response = request.render('room.partner_create_form_room', values) diff --git a/room/views/room_booking_views.xml b/room/views/room_booking_views.xml index bc3e9aea2..2a723b7d6 100644 --- a/room/views/room_booking_views.xml +++ b/room/views/room_booking_views.xml @@ -178,15 +178,9 @@ - - - - - - - - - + + + diff --git a/room/views/webclient_templates.xml b/room/views/webclient_templates.xml index 1121e0bff..6e194c439 100644 --- a/room/views/webclient_templates.xml +++ b/room/views/webclient_templates.xml @@ -153,11 +153,6 @@
- - - - - diff --git a/yuthon_issue/views/issue_approval_decision_views.xml b/yuthon_issue/views/issue_approval_decision_views.xml index 3b633f1a8..e52408b37 100644 --- a/yuthon_issue/views/issue_approval_decision_views.xml +++ b/yuthon_issue/views/issue_approval_decision_views.xml @@ -18,7 +18,7 @@ - + @@ -40,7 +40,7 @@ - + diff --git a/yuthon_will_task/static/src/js/task_create_button.js b/yuthon_will_task/static/src/js/task_create_button.js index 9475aef56..e70e99dff 100644 --- a/yuthon_will_task/static/src/js/task_create_button.js +++ b/yuthon_will_task/static/src/js/task_create_button.js @@ -10,12 +10,22 @@ export class CustomTaskListController extends ListController { openTaskForm() { this.actionService.doAction({ type: 'ir.actions.act_window', - res_model: 'task.room.wizard', - name: '日程会议', + res_model: 'yuthon.will.task', + name: '创建日程', + view_mode: 'form', + view_type: 'form', + views: [[false, 'form']], + context: {}, + }); + } + openMeetingArrangementForm() { + this.actionService.doAction({ + type: 'ir.actions.act_window', + res_model: 'room.booking', + name: '会议安排', view_mode: 'form', view_type: 'form', views: [[false, 'form']], - target: 'new', context: {}, }); } @@ -25,4 +35,4 @@ registry.category("views").add("custom_task_tree_button", { ...listView, Controller: CustomTaskListController, buttonTemplate: "yuthon_task.ListView.Buttons", -}); +}); \ No newline at end of file diff --git a/yuthon_will_task/static/src/xml/task_create_button.xml b/yuthon_will_task/static/src/xml/task_create_button.xml index 3fa99fcd1..b12f64da3 100644 --- a/yuthon_will_task/static/src/xml/task_create_button.xml +++ b/yuthon_will_task/static/src/xml/task_create_button.xml @@ -3,7 +3,10 @@ +