From c66c1d20a964b4564bdcccfaa16021df792b90b7 Mon Sep 17 00:00:00 2001 From: XuanHuyen Date: Mon, 20 Jan 2025 09:48:51 +0700 Subject: [PATCH] customize views folder --- .../dynamic_docx_pdf_reports_omax/__manifest__.py | 1 - .../views/action_server.xml | 11 ----------- .../views/hr_contract_views.xml | 9 +++++++++ 3 files changed, 9 insertions(+), 12 deletions(-) delete mode 100644 extra-addons/dynamic_docx_pdf_reports_omax/views/action_server.xml diff --git a/extra-addons/dynamic_docx_pdf_reports_omax/__manifest__.py b/extra-addons/dynamic_docx_pdf_reports_omax/__manifest__.py index c92143b30..09defc9fa 100644 --- a/extra-addons/dynamic_docx_pdf_reports_omax/__manifest__.py +++ b/extra-addons/dynamic_docx_pdf_reports_omax/__manifest__.py @@ -18,7 +18,6 @@ 'security/dynamic_docx_pdf_report_security.xml', 'wizard/docx_template_wiz.xml', 'views/docx_template.xml', - 'views/action_server.xml', 'views/hr_contract_views.xml', ], "demo": [], diff --git a/extra-addons/dynamic_docx_pdf_reports_omax/views/action_server.xml b/extra-addons/dynamic_docx_pdf_reports_omax/views/action_server.xml deleted file mode 100644 index b0110190d..000000000 --- a/extra-addons/dynamic_docx_pdf_reports_omax/views/action_server.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - Print Employee Contract - - code - - action = env['docx.template'].with_context(menu_action_id=env['docx.template'].search([('model_id.model', '=', 'hr.contract')], limit=1).id).print_employee_contract_action(records) - - - \ No newline at end of file diff --git a/extra-addons/dynamic_docx_pdf_reports_omax/views/hr_contract_views.xml b/extra-addons/dynamic_docx_pdf_reports_omax/views/hr_contract_views.xml index a7c2f013d..c45ecc829 100644 --- a/extra-addons/dynamic_docx_pdf_reports_omax/views/hr_contract_views.xml +++ b/extra-addons/dynamic_docx_pdf_reports_omax/views/hr_contract_views.xml @@ -1,5 +1,14 @@ + + Print Employee Contract + + code + + action = env['docx.template'].with_context(menu_action_id=env['docx.template'].search([('model_id.model', '=', 'hr.contract')], limit=1).id).print_employee_contract_action(records) + + + hr.contract.form.dynamic.docx.print hr.contract