diff --git a/onlyoffice_odoo_templates/views/onlyoffice_menu_views.xml b/onlyoffice_odoo_templates/views/onlyoffice_menu_views.xml index 4bdab6c6f..09536b92f 100644 --- a/onlyoffice_odoo_templates/views/onlyoffice_menu_views.xml +++ b/onlyoffice_odoo_templates/views/onlyoffice_menu_views.xml @@ -37,7 +37,7 @@ - + diff --git a/yuthon_property/__manifest__.py b/yuthon_property/__manifest__.py index d65c8962b..b5a38df20 100644 --- a/yuthon_property/__manifest__.py +++ b/yuthon_property/__manifest__.py @@ -64,8 +64,10 @@ 'yuthon_property/static/src/scss/approval.scss', 'yuthon_property/static/src/js/rent_create_button.js', 'yuthon_property/static/src/js/bank_create_button.js', + 'yuthon_property/static/src/js/statements_create_button.js', 'yuthon_property/static/src/xml/rent_create_button.xml', 'yuthon_property/static/src/xml/bank_create_button.xml', + 'yuthon_property/static/src/xml/statements_create_button.xml', ], }, 'demo': [], diff --git a/yuthon_property/static/src/js/statements_create_button.js b/yuthon_property/static/src/js/statements_create_button.js new file mode 100644 index 000000000..726ffaac4 --- /dev/null +++ b/yuthon_property/static/src/js/statements_create_button.js @@ -0,0 +1,29 @@ +/** @odoo-module */ +import { ListController } from "@web/views/list/list_controller"; +import { registry } from '@web/core/registry'; +import { listView } from '@web/views/list/list_view'; + +export class CustomStatementsListController extends ListController { + setup() { + super.setup(); + } + + openAllStatementsWizard() { + this.actionService.doAction({ + type: 'ir.actions.act_window', + res_model: 'property.statements.wizard', + name: '批量对账', + view_mode: 'form', + view_type: 'form', + views: [[false, 'form']], + target: 'new', // 以弹窗形式打开 + context: {}, + }); + } +} + +registry.category("views").add("custom_statements_list_button", { + ...listView, + Controller: CustomStatementsListController, + buttonTemplate: "statements_module.ListView.Buttons", +}); \ No newline at end of file diff --git a/yuthon_property/static/src/xml/statements_create_button.xml b/yuthon_property/static/src/xml/statements_create_button.xml new file mode 100644 index 000000000..ab8293ff9 --- /dev/null +++ b/yuthon_property/static/src/xml/statements_create_button.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx b/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx new file mode 100644 index 000000000..998599a9d Binary files /dev/null and b/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx differ diff --git a/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx b/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx new file mode 100644 index 000000000..b7ff60e58 Binary files /dev/null and b/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx differ diff --git a/yuthon_property/static/tmpl/fujiayaosu.xlsx b/yuthon_property/static/tmpl/fujiayaosu.xlsx new file mode 100644 index 000000000..e154b90cf Binary files /dev/null and b/yuthon_property/static/tmpl/fujiayaosu.xlsx differ diff --git a/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx b/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx new file mode 100644 index 000000000..1458e8e96 Binary files /dev/null and b/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx differ diff --git a/yuthon_property/views/property_accounts_receivable_views.xml b/yuthon_property/views/property_accounts_receivable_views.xml index 478c225cc..233364b3a 100644 --- a/yuthon_property/views/property_accounts_receivable_views.xml +++ b/yuthon_property/views/property_accounts_receivable_views.xml @@ -56,11 +56,75 @@ tree {'search_default_group_is_reconciliation': 0} - + 批量导入合同 code action = model.report_button_xls() + + 发票基本信息模板下载 + self + /yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx + + + 发票基本信息 + + + code + + + + + + 发票明细信息模板下载 + self + /yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx + + + 发票明细信息 + + + code + + + + + + 附加要素 + self + /yuthon_property/static/tmpl/fujiayaosu.xlsx + + + 附加要素 + + + code + + + + + + 特定业务信息 + self + /yuthon_property/static/tmpl/tedingyewuxinxi.xlsx + + + 特定业务信息 + + + code + + + + diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml index 7d1c3d8aa..8f10e7075 100644 --- a/yuthon_property_approval/views/property_lease_contract.xml +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -688,8 +688,8 @@ - - + +