@@ -214,6 +214,28 @@ class PropertyLeaseContract(models.Model):
|
||||
self_users_ids = fields.Many2many('res.users', string="当前经办人", default=lambda self: [(6, 0, [self.env.user.id])])
|
||||
title_information = fields.Text(string="产权证信息")
|
||||
|
||||
def action_open_contract(self):
|
||||
self.ensure_one()
|
||||
action = self.env["ir.actions.actions"]._for_xml_id("yuthon_property_approval.property_accounts_receivable_action")
|
||||
action.update({'domain': [('contract_id', '=', self.id)]})
|
||||
return action
|
||||
|
||||
def action_open_reconciliation(self):
|
||||
self.ensure_one()
|
||||
action = self.env["ir.actions.actions"]._for_xml_id("yuthon_property.view_property_bank_statements_action1")
|
||||
action.update({'domain': [('contract_id', '=', self.id),
|
||||
('name_account', '=', self.lessee_id.name)
|
||||
]
|
||||
})
|
||||
return action
|
||||
|
||||
def action_open_process(self):
|
||||
self.ensure_one()
|
||||
action = self.env["ir.actions.actions"]._for_xml_id("soong_workflow.soong_workflow_other_record_action")
|
||||
action.update({'domain': [('code', '=', self.code)]})
|
||||
return action
|
||||
|
||||
|
||||
@api.depends()
|
||||
def _compute_not_received(self):
|
||||
not_reconciled_records = self.env['property.accounts.receivable'].search([
|
||||
|
||||
@@ -420,6 +420,29 @@
|
||||
string="生成管理费用" invisible="1"/>
|
||||
</header>
|
||||
<sheet>
|
||||
<div name="button_box" class="oe_button_box">
|
||||
<button name="action_open_contract" class="oe_stat_button" type="object">
|
||||
<div class="o_stat_info d-flex flex-column align-items-center justify-content-center" style="height: 100%; width: 100%;">
|
||||
<span class="o_stat_text" title="应租" style="text-align: center; margin: 0 auto; font-size: 18px">
|
||||
应租
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
<button name="action_open_reconciliation" class="oe_stat_button" type="object">
|
||||
<div class="o_stat_info d-flex flex-column align-items-center justify-content-center" style="height: 100%; width: 100%;">
|
||||
<span class="o_stat_text" title="对账" style="text-align: center; margin: 0 auto; font-size: 18px">
|
||||
对账
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
<button name="action_open_process" class="oe_stat_button" type="object">
|
||||
<div class="o_stat_info d-flex flex-column align-items-center justify-content-center" style="height: 100%; width: 100%;">
|
||||
<span class="o_stat_text" title="流程" style="text-align: center; margin: 0 auto; font-size: 18px">
|
||||
流程
|
||||
</span>
|
||||
</div>
|
||||
</button>
|
||||
</div>
|
||||
<widget name="web_ribbon" title="待执行" bg_color="text-bg-success"
|
||||
invisible="condition != 'be_executed'"/>
|
||||
<widget name="web_ribbon" title="已执行" bg_color="text-bg-success"
|
||||
|
||||
Reference in New Issue
Block a user