@@ -37,7 +37,7 @@
|
||||
<filter string="Model" name="template_model_id" context="{'group_by': 'template_model_id'}"/>
|
||||
</group>
|
||||
<searchpanel>
|
||||
<field name="template_model_id" string="Model" enable_counters="1" select="multi"/>
|
||||
<field name="template_model_id" string="Model" enable_counters="1"/>
|
||||
</searchpanel>
|
||||
</search>
|
||||
</field>
|
||||
|
||||
@@ -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': [],
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<templates>
|
||||
<t t-name="statements_module.ListView.Buttons" t-inherit="web.ListView.Buttons">
|
||||
<xpath expr="//div[hasclass('o_list_buttons')]" position="after">
|
||||
<button type="button" class="btn btn-primary" style="margin-left: 10px;" t-on-click="openAllStatementsWizard">
|
||||
批量对账
|
||||
</button>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -56,11 +56,75 @@
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="context">{'search_default_group_is_reconciliation': 0}</field>
|
||||
</record>
|
||||
<record id="all_property_accounts_receivable_contract" model="ir.actions.server">
|
||||
<record id="all_property_accounts_receivable_contract" model="ir.actions.server">
|
||||
<field name="name">批量导入合同</field>
|
||||
<field name="model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="binding_model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">action = model.report_button_xls()</field>
|
||||
</record>
|
||||
<record id="template_downloads_invoicing_basic_action" model="ir.actions.act_url">
|
||||
<field name="name">发票基本信息模板下载</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url">/yuthon_property/static/tmpl/fapiaojibenxinxi.xlsx</field>
|
||||
</record>
|
||||
<record id="server_action_invoicing_basic_template_download" model="ir.actions.server">
|
||||
<field name="name">发票基本信息</field>
|
||||
<field name="model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="binding_model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
<![CDATA[
|
||||
action = env.ref('yuthon_property.template_downloads_invoicing_basic_action').read()[0]
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record id="template_downloads_invoicing_line_action" model="ir.actions.act_url">
|
||||
<field name="name">发票明细信息模板下载</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url">/yuthon_property/static/tmpl/fapiaomingxixinxi.xlsx</field>
|
||||
</record>
|
||||
<record id="server_action_invoicing_line_template_download" model="ir.actions.server">
|
||||
<field name="name">发票明细信息</field>
|
||||
<field name="model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="binding_model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
<![CDATA[
|
||||
action = env.ref('yuthon_property.template_downloads_invoicing_line_action').read()[0]
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record id="template_downloads_invoicing_other_action" model="ir.actions.act_url">
|
||||
<field name="name">附加要素</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url">/yuthon_property/static/tmpl/fujiayaosu.xlsx</field>
|
||||
</record>
|
||||
<record id="server_action_invoicing_other_template_download" model="ir.actions.server">
|
||||
<field name="name">附加要素</field>
|
||||
<field name="model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="binding_model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
<![CDATA[
|
||||
action = env.ref('yuthon_property.template_downloads_invoicing_other_action').read()[0]
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
<record id="template_downloads_invoicing_specific_action" model="ir.actions.act_url">
|
||||
<field name="name">特定业务信息</field>
|
||||
<field name="target">self</field>
|
||||
<field name="url">/yuthon_property/static/tmpl/tedingyewuxinxi.xlsx</field>
|
||||
</record>
|
||||
<record id="server_action_invoicing_specific_template_download" model="ir.actions.server">
|
||||
<field name="name">特定业务信息</field>
|
||||
<field name="model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="binding_model_id" ref="yuthon_property.model_property_accounts_receivable"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
<![CDATA[
|
||||
action = env.ref('yuthon_property.template_downloads_invoicing_specific_action').read()[0]
|
||||
]]>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
@@ -688,8 +688,8 @@
|
||||
<field name="contract_code"/>
|
||||
<field name="name"/>
|
||||
<searchpanel>
|
||||
<field name="company_id" select="multi"/>
|
||||
<field name="precinct_id" select="multi"/>
|
||||
<field name="company_id"/>
|
||||
<field name="precinct_id"/>
|
||||
</searchpanel>
|
||||
<group expand="0" string="Group By">
|
||||
<filter name="group_by_condition" context="{'group_by': 'condition'}"/>
|
||||
|
||||
Reference in New Issue
Block a user