添加功能
This commit is contained in:
@@ -110,6 +110,7 @@
|
||||
'wizard/property_bills_wizard_views.xml',
|
||||
'wizard/property_meeting_wizard_views.xml',
|
||||
'wizard/property_deposit_wizard_views.xml',
|
||||
'wizard/contract_rental_wizard_views.xml',
|
||||
'data/receivable_modify_line_group_data.xml',
|
||||
'views/property_menu_all.xml',
|
||||
'report/property_lease_contract_print_report.xml',
|
||||
|
||||
@@ -1386,6 +1386,21 @@ class PropertyLeaseContract(models.Model):
|
||||
}
|
||||
}
|
||||
|
||||
def action_open_contract_rental_wizard(self):
|
||||
"""指定合同生成租金弹窗"""
|
||||
property_ids = self.env["property.lease.contract"].browse(
|
||||
self._context.get('active_ids', self._context.get('active_id')))
|
||||
return {
|
||||
'name': '生成租金',
|
||||
'type': 'ir.actions.act_window',
|
||||
'view_mode': 'form',
|
||||
'res_model': 'property.contract.rental.wizard',
|
||||
'target': 'new',
|
||||
'context': {
|
||||
'default_contract_ids': property_ids.ids,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
def action_generate_administrative_expenses(self):
|
||||
"""
|
||||
|
||||
@@ -142,4 +142,5 @@ access_property_fee_form_line,property_fee_form_line,model_property_fee_form_lin
|
||||
access_refund_wizard,refund_wizard,model_refund_wizard,base.group_user,1,1,1,1
|
||||
access_refund_wizard_line,refund_wizard_line,model_refund_wizard_line,base.group_user,1,1,1,1
|
||||
access_property_business_type,property_business_type,model_property_business_type,base.group_user,1,1,1,1
|
||||
access_property_payment_type,property_payment_type,model_property_payment_type,base.group_user,1,1,1,1
|
||||
access_property_payment_type,property_payment_type,model_property_payment_type,base.group_user,1,1,1,1
|
||||
access_property_contract_rental_wizard,property_contract_rental_wizard,model_property_contract_rental_wizard,base.group_user,1,1,1,1
|
||||
|
@@ -423,6 +423,8 @@
|
||||
<header>
|
||||
<!-- <button name="all_put_evaluation_plan" string="评估推送" type="object" class="btn btn-primary"/>-->
|
||||
<button name="button_lease_extension" type="object" class="btn-primary" string="续租"/>
|
||||
<button name="action_open_contract_rental_wizard" type="object"
|
||||
string="生成租金" class="btn-primary"/>
|
||||
<button name="button_lease_supplement" type="object" class="btn-primary" string="补充协议"/>
|
||||
<button name="button_lease_change" type="object" class="btn-primary" string="变更"/>
|
||||
<button name="refund_deposit" type="object" class="btn-primary" string="退押金"/>
|
||||
|
||||
@@ -18,4 +18,5 @@ from . import action_refuse_wizard
|
||||
from . import property_deposit_wizard
|
||||
from . import build_fee_wizard
|
||||
from . import choose_confirm_property_wizard
|
||||
from . import refund_wizard
|
||||
from . import refund_wizard
|
||||
from . import contract_rental_wizard
|
||||
Reference in New Issue
Block a user