diff --git a/yuthon_property/__manifest__.py b/yuthon_property/__manifest__.py index 4af517a72..e60d17469 100644 --- a/yuthon_property/__manifest__.py +++ b/yuthon_property/__manifest__.py @@ -8,19 +8,13 @@ 'version': '0.1', 'license': 'LGPL-3', 'data': [ - 'data/sale_renting_code_data.xml', 'security/ir.model.access.csv', 'views/yuthon_property_views.xml', - 'views/property_assess_views.xml', - 'views/property_confirm_views.xml', - 'views/property_move_views.xml', - 'views/property_open_rent_views.xml', - 'views/property_record_views.xml', 'views/property_type_views.xml', 'views/menuitem.xml', ], 'demo': [], - 'depends': ['mail', 'soong_workflow'], + 'depends': ['mail','documents','soong_workflow'], 'installable': True, 'application': True, } diff --git a/yuthon_property/data/sale_renting_code_data.xml b/yuthon_property/data/sale_renting_code_data.xml deleted file mode 100644 index bc0c5d333..000000000 --- a/yuthon_property/data/sale_renting_code_data.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - 物业评估编号 - property_assess_code - PG%(y)s%(month)s%(day)s - 3 - - - 物业成交确认编号 - property_confirm_code - QR%(y)s%(month)s%(day)s - 3 - - - 物业调拨编号 - property_move_code - DB%(y)s%(month)s%(day)s - 3 - - - 物业公开招租编号 - property_open_rent_code - GK%(y)s%(month)s%(day)s - 3 - - - 物业备案编号 - property_record_code - PG%(y)s%(month)s%(day)s - 3 - - diff --git a/yuthon_property/models/__init__.py b/yuthon_property/models/__init__.py index 82ac8c5b5..3b0f4194c 100644 --- a/yuthon_property/models/__init__.py +++ b/yuthon_property/models/__init__.py @@ -1,7 +1,2 @@ from . import yuthon_property -from . import property_assess -from . import property_confirm -from . import property_move -from . import property_open_rent -from . import property_record from . import property_type diff --git a/yuthon_property/security/ir.model.access.csv b/yuthon_property/security/ir.model.access.csv index 36f5d9a1e..2804b770e 100644 --- a/yuthon_property/security/ir.model.access.csv +++ b/yuthon_property/security/ir.model.access.csv @@ -1,9 +1,4 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink access_yuthon_property,yuthon_property,model_yuthon_property,base.group_user,1,1,1,1 -access_property_assess,property_assess,model_property_assess,base.group_user,1,1,1,1 -access_property_confirm,property_confirm,model_property_confirm,base.group_user,1,1,1,1 -access_property_move,property_move,model_property_move,base.group_user,1,1,1,1 -access_property_open_rent,property_open_rent,model_property_open_rent,base.group_user,1,1,1,1 -access_property_record,property_record,model_property_record,base.group_user,1,1,1,1 access_property_type,property_type,model_property_type,base.group_user,1,1,1,1 diff --git a/yuthon_property/views/menuitem.xml b/yuthon_property/views/menuitem.xml index 381b02387..60fd2f965 100644 --- a/yuthon_property/views/menuitem.xml +++ b/yuthon_property/views/menuitem.xml @@ -47,36 +47,6 @@ name="审批管理" sequence="2"/> - - - - - + + + 账单确认单编号 + property_billing_confirmation_code + ZQ%(y)s%(month)s%(day)s + 3 + + + + 经营报表确认单编号 + property_business_confirm_code + JQ%(y)s%(month)s%(day)s + 3 + + + + 增容编号 + property_capacity_code + ZR%(y)s%(month)s%(day)s + 3 + + + + 增容编号 + property_collection_confirm_code + ZR%(y)s%(month)s%(day)s + 3 + + + + 提前退租编号 + property_early_quitting_code + TZ%(y)s%(month)s%(day)s + 3 + + + + 承租资格编号 + property_eligibility_code + CZ%(y)s%(month)s%(day)s + 3 + + + + 装修编号 + property_fitment_code + ZX%(y)s%(month)s%(day)s + 3 + + + + 物业信息编号 + property_information_code + WY%(y)s%(month)s%(day)s + 3 + + + + 盘点表编号 + property_inventory_table_code + PD%(y)s%(month)s%(day)s + 3 + + + + 续租编号 + property_lease_alter_code + XZ%(y)s%(month)s%(day)s + 3 + + + + 租赁合同编号 + property_lease_contract_code + ZH%(y)s%(month)s%(day)s + 3 + + + + 延租编号 + property_lease_extension_code + YZ%(y)s%(month)s%(day)s + 3 + + + + 租赁合同变更编号 + property_lease_renewal_code + ZB%(y)s%(month)s%(day)s + 3 + + + + 物业管理编号 + property_management_code + WG%(y)s%(month)s%(day)s + 3 + + + + 管理费编号 + property_management_fee_code + GL%(y)s%(month)s%(day)s + 3 + + + + 物资配件采购单编号 + property_material_procurement_code + WC%(y)s%(month)s%(day)s + 3 + + + + 违约金比例编号 + property_penalty_proportion_code + WY%(y)s%(month)s%(day)s + 3 + + + + 违约金减免编号 + property_rent_relief_code + WJ%(y)s%(month)s%(day)s + 3 + + + + 租金减免编号 + property_penalty_relief_code + ZJ%(y)s%(month)s%(day)s + 3 + + + + 报事报修编号 + property_report_repair_code + BX%(y)s%(month)s%(day)s + 3 + + + + 水电费编号 + property_utility_bills_code + SD%(y)s%(month)s%(day)s + 3 + + + + 物业公开招租编号 + property_open_rent_code + GK%(y)s%(month)s%(day)s + 3 + + + + 物业成交确认编号 + property_confirm_code + QR%(y)s%(month)s%(day)s + 3 + + + + 物业调拨编号 + property_move_code + DB%(y)s%(month)s%(day)s + 3 + + + + 物业评估编号 + property_assess_code + PG%(y)s%(month)s%(day)s + 3 + + + + 物业备案编号 + property_record_code + PG%(y)s%(month)s%(day)s + 3 + + \ No newline at end of file diff --git a/yuthon_property_approval/models/__init__.py b/yuthon_property_approval/models/__init__.py new file mode 100644 index 000000000..0741c7f8f --- /dev/null +++ b/yuthon_property_approval/models/__init__.py @@ -0,0 +1,26 @@ +from . import property_billing_confirmation +from . import property_business_confirm +from . import property_capacity +from . import property_collection_confirm +from . import property_early_quitting +from . import property_eligibility +from . import property_fitment +from . import property_information +from . import property_inventory_table +from . import property_lease_alter +from . import property_lease_contract +from . import property_lease_extension +from . import property_lease_renewal +from . import property_management +from . import property_management_fee +from . import property_material_procurement +from . import property_penalty_proportion +from . import property_rent_relief +from . import property_penalty_relief +from . import property_report_repair +from . import property_utility_bills +from . import property_open_rent +from . import property_confirm +from . import property_move +from . import property_assess +from . import property_record diff --git a/yuthon_property/models/property_assess.py b/yuthon_property_approval/models/property_assess.py similarity index 100% rename from yuthon_property/models/property_assess.py rename to yuthon_property_approval/models/property_assess.py diff --git a/yuthon_property_approval/models/property_billing_confirmation.py b/yuthon_property_approval/models/property_billing_confirmation.py new file mode 100644 index 000000000..ea4d89858 --- /dev/null +++ b/yuthon_property_approval/models/property_billing_confirmation.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyBillingyConfirmation(models.Model): + _name = 'property.billing.confirmation' + _description = '账单确认单审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_business_confirm_code')) diff --git a/yuthon_property_approval/models/property_business_confirm.py b/yuthon_property_approval/models/property_business_confirm.py new file mode 100644 index 000000000..f077b6020 --- /dev/null +++ b/yuthon_property_approval/models/property_business_confirm.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyBusinessConfirm(models.Model): + _name = 'property.business.confirm' + _description = '经营报表确认单审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_billing_confirmation_code')) diff --git a/yuthon_property_approval/models/property_capacity.py b/yuthon_property_approval/models/property_capacity.py new file mode 100644 index 000000000..8f29c7627 --- /dev/null +++ b/yuthon_property_approval/models/property_capacity.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyCapacity(models.Model): + _name = 'property.capacity' + _description = '增容审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_capacity_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_collection_confirm.py b/yuthon_property_approval/models/property_collection_confirm.py new file mode 100644 index 000000000..5914b7a80 --- /dev/null +++ b/yuthon_property_approval/models/property_collection_confirm.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyCollectionConfirm(models.Model): + _name = 'property.collection.confirm' + _description = '收款确认单审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_collection_confirm_code')) \ No newline at end of file diff --git a/yuthon_property/models/property_confirm.py b/yuthon_property_approval/models/property_confirm.py similarity index 100% rename from yuthon_property/models/property_confirm.py rename to yuthon_property_approval/models/property_confirm.py diff --git a/yuthon_property_approval/models/property_early_quitting.py b/yuthon_property_approval/models/property_early_quitting.py new file mode 100644 index 000000000..4b328ae67 --- /dev/null +++ b/yuthon_property_approval/models/property_early_quitting.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyEarlyQuitting(models.Model): + _name = 'property.early.quitting' + _description = '提前退租审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_early_quitting_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_eligibility.py b/yuthon_property_approval/models/property_eligibility.py new file mode 100644 index 000000000..362161d02 --- /dev/null +++ b/yuthon_property_approval/models/property_eligibility.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyEligibility(models.Model): + _name = 'property.eligibility' + _description = '承租资格审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_eligibility_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_fitment.py b/yuthon_property_approval/models/property_fitment.py new file mode 100644 index 000000000..3f48c3cab --- /dev/null +++ b/yuthon_property_approval/models/property_fitment.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyFitment(models.Model): + _name = 'property.fitment' + _description = '装修审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_fitment_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_information.py b/yuthon_property_approval/models/property_information.py new file mode 100644 index 000000000..ff47dd1ba --- /dev/null +++ b/yuthon_property_approval/models/property_information.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyInformation(models.Model): + _name = 'property.information' + _description = '物业信息审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_information_code')) diff --git a/yuthon_property_approval/models/property_inventory_table.py b/yuthon_property_approval/models/property_inventory_table.py new file mode 100644 index 000000000..1d3fdda27 --- /dev/null +++ b/yuthon_property_approval/models/property_inventory_table.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyInventoryTable(models.Model): + _name = 'property.inventory.table' + _description = '盘点表审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_inventory_table_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_lease_alter.py b/yuthon_property_approval/models/property_lease_alter.py new file mode 100644 index 000000000..6bcd10890 --- /dev/null +++ b/yuthon_property_approval/models/property_lease_alter.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyLeaseAlter(models.Model): + _name = 'property.lease.alter' + _description = '续租审批审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_lease_alter_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_lease_contract.py b/yuthon_property_approval/models/property_lease_contract.py new file mode 100644 index 000000000..8402dd764 --- /dev/null +++ b/yuthon_property_approval/models/property_lease_contract.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyLeaseContract(models.Model): + _name = 'property.lease.contract' + _description = '租赁合同审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_lease_contract_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_lease_extension.py b/yuthon_property_approval/models/property_lease_extension.py new file mode 100644 index 000000000..31df03932 --- /dev/null +++ b/yuthon_property_approval/models/property_lease_extension.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyLeaseExtension(models.Model): + _name = 'property.lease.extension' + _description = '延租审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_lease_extension_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_lease_renewal.py b/yuthon_property_approval/models/property_lease_renewal.py new file mode 100644 index 000000000..61de50640 --- /dev/null +++ b/yuthon_property_approval/models/property_lease_renewal.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyLeaseRenewal(models.Model): + _name = 'property.lease.renewal' + _description = '租赁合同变更审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_lease_renewal_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_management.py b/yuthon_property_approval/models/property_management.py new file mode 100644 index 000000000..26009799f --- /dev/null +++ b/yuthon_property_approval/models/property_management.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyManagement(models.Model): + _name = 'property.management' + _description = '物业管理审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_management_code')) diff --git a/yuthon_property_approval/models/property_management_fee.py b/yuthon_property_approval/models/property_management_fee.py new file mode 100644 index 000000000..b0757040f --- /dev/null +++ b/yuthon_property_approval/models/property_management_fee.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyManagementFee(models.Model): + _name = 'property.management.fee' + _description = '管理费审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_management_fee_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_material_procurement.py b/yuthon_property_approval/models/property_material_procurement.py new file mode 100644 index 000000000..06200bb68 --- /dev/null +++ b/yuthon_property_approval/models/property_material_procurement.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyMaterialProcurement(models.Model): + _name = 'property.material.procurement' + _description = '物资配件采购单审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_material_procurement_code')) \ No newline at end of file diff --git a/yuthon_property/models/property_move.py b/yuthon_property_approval/models/property_move.py similarity index 100% rename from yuthon_property/models/property_move.py rename to yuthon_property_approval/models/property_move.py diff --git a/yuthon_property/models/property_open_rent.py b/yuthon_property_approval/models/property_open_rent.py similarity index 100% rename from yuthon_property/models/property_open_rent.py rename to yuthon_property_approval/models/property_open_rent.py diff --git a/yuthon_property_approval/models/property_penalty_proportion.py b/yuthon_property_approval/models/property_penalty_proportion.py new file mode 100644 index 000000000..85e7dff81 --- /dev/null +++ b/yuthon_property_approval/models/property_penalty_proportion.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyPenaltyProportion(models.Model): + _name = 'property.penalty.proportion' + _description = '违约金比例审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_penalty_proportion_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_penalty_relief.py b/yuthon_property_approval/models/property_penalty_relief.py new file mode 100644 index 000000000..3f32724e0 --- /dev/null +++ b/yuthon_property_approval/models/property_penalty_relief.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + +class PropertyPenaltyRelief(models.Model): + _name = 'property.penalty.relief' + _description = '违约金减免审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_rent_relief_code')) \ No newline at end of file diff --git a/yuthon_property/models/property_record.py b/yuthon_property_approval/models/property_record.py similarity index 100% rename from yuthon_property/models/property_record.py rename to yuthon_property_approval/models/property_record.py diff --git a/yuthon_property_approval/models/property_rent_relief.py b/yuthon_property_approval/models/property_rent_relief.py new file mode 100644 index 000000000..576daee63 --- /dev/null +++ b/yuthon_property_approval/models/property_rent_relief.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + +class PropertyRentRelief(models.Model): + _name = 'property.rent.relief' + _description = '租金减免审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_penalty_relief_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_report_repair.py b/yuthon_property_approval/models/property_report_repair.py new file mode 100644 index 000000000..197f39974 --- /dev/null +++ b/yuthon_property_approval/models/property_report_repair.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + +class PropertyRentRelief(models.Model): + _name = 'property.report.repair' + _description = '报事报修审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_report_repair_code')) \ No newline at end of file diff --git a/yuthon_property_approval/models/property_utility_bills.py b/yuthon_property_approval/models/property_utility_bills.py new file mode 100644 index 000000000..c7004862d --- /dev/null +++ b/yuthon_property_approval/models/property_utility_bills.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +from odoo import models, fields, api, exceptions, _ + + +class PropertyUtilityBills(models.Model): + _name = 'property.utility.bills' + _description = '水电费审批' + _inherit = ['mail.thread.main.attachment', 'mail.activity.mixin', 'soong.workflow.mixin'] + _rec_name = 'name' + + name = fields.Char(string='标题') + code = fields.Char(string="编号", + default=lambda self: self.env['ir.sequence'].next_by_code('property_utility_bills_code')) \ No newline at end of file diff --git a/yuthon_property_approval/security/ir.model.access.csv b/yuthon_property_approval/security/ir.model.access.csv new file mode 100644 index 000000000..9dc77a95c --- /dev/null +++ b/yuthon_property_approval/security/ir.model.access.csv @@ -0,0 +1,28 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_property_billing_confirmation,property_billing_confirmation,model_property_billing_confirmation,base.group_user,1,1,1,1 +access_property_business_confirm,property_business_confirm,model_property_business_confirm,base.group_user,1,1,1,1 +access_property_capacity,property_capacity,model_property_capacity,base.group_user,1,1,1,1 +access_property_collection_confirm,property_collection_confirm,model_property_collection_confirm,base.group_user,1,1,1,1 +access_property_early_quitting,property_early_quitting,model_property_early_quitting,base.group_user,1,1,1,1 +access_property_eligibility,property_eligibility,model_property_eligibility,base.group_user,1,1,1,1 +access_property_fitment,property_fitment,model_property_fitment,base.group_user,1,1,1,1 +access_property_information,property_information,model_property_information,base.group_user,1,1,1,1 +access_property_inventory_table,property_inventory_table,model_property_inventory_table,base.group_user,1,1,1,1 +access_property_lease_alter,property_lease_alter,model_property_lease_alter,base.group_user,1,1,1,1 +access_property_lease_contract,property_lease_contract,model_property_lease_contract,base.group_user,1,1,1,1 +access_property_lease_extension,property_lease_extension,model_property_lease_extension,base.group_user,1,1,1,1 +access_property_lease_renewal,property_lease_renewal,model_property_lease_renewal,base.group_user,1,1,1,1 +access_property_management,property_management,model_property_management,base.group_user,1,1,1,1 +access_property_management_fee,property_management_fee,model_property_management_fee,base.group_user,1,1,1,1 +access_property_material_procurement,property_material_procurement,model_property_material_procurement,base.group_user,1,1,1,1 +access_property_penalty_proportion,property_penalty_proportion,model_property_penalty_proportion,base.group_user,1,1,1,1 +access_property_rent_relief,property_rent_relief,model_property_rent_relief,base.group_user,1,1,1,1 +access_property_penalty_relief,property_penalty_relief,model_property_penalty_relief,base.group_user,1,1,1,1 +access_property_report_repair,property_report_repair,model_property_report_repair,base.group_user,1,1,1,1 +access_property_utility_bills,property_utility_bills,model_property_utility_bills,base.group_user,1,1,1,1 +access_property_open_rent,property_open_rent,model_property_open_rent,base.group_user,1,1,1,1 +access_property_confirm,property_confirm,model_property_confirm,base.group_user,1,1,1,1 +access_property_move,property_move,model_property_move,base.group_user,1,1,1,1 +access_property_assess,property_assess,model_property_assess,base.group_user,1,1,1,1 +access_property_assess_line,property_assess_line,model_property_assess_line,base.group_user,1,1,1,1 +access_property_record,property_record,model_property_record,base.group_user,1,1,1,1 \ No newline at end of file diff --git a/yuthon_property/views/property_assess_views.xml b/yuthon_property_approval/views/property_assess_views.xml similarity index 100% rename from yuthon_property/views/property_assess_views.xml rename to yuthon_property_approval/views/property_assess_views.xml diff --git a/yuthon_property_approval/views/property_billing_confirmation.xml b/yuthon_property_approval/views/property_billing_confirmation.xml new file mode 100644 index 000000000..a0da6b659 --- /dev/null +++ b/yuthon_property_approval/views/property_billing_confirmation.xml @@ -0,0 +1,19 @@ + + + + property.billing.confirmation.tree + property.billing.confirmation + + + + + + + + + + 账单确认单审批 + property.billing.confirmation + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_business_confirm.xml b/yuthon_property_approval/views/property_business_confirm.xml new file mode 100644 index 000000000..abc1d9511 --- /dev/null +++ b/yuthon_property_approval/views/property_business_confirm.xml @@ -0,0 +1,19 @@ + + + + property.business.confirm.tree + property.business.confirm + + + + + + + + + + 经营报表确认单审批 + property.business.confirm + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_capacity.xml b/yuthon_property_approval/views/property_capacity.xml new file mode 100644 index 000000000..785f32337 --- /dev/null +++ b/yuthon_property_approval/views/property_capacity.xml @@ -0,0 +1,19 @@ + + + + property.capacity.tree + property.capacity + + + + + + + + + + 增容审批 + property.capacity + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_collection_confirm.xml b/yuthon_property_approval/views/property_collection_confirm.xml new file mode 100644 index 000000000..f3e40603b --- /dev/null +++ b/yuthon_property_approval/views/property_collection_confirm.xml @@ -0,0 +1,19 @@ + + + + property.collection.confirm.tree + property.collection.confirm + + + + + + + + + + 增容审批 + property.collection.confirm + tree + + \ No newline at end of file diff --git a/yuthon_property/views/property_confirm_views.xml b/yuthon_property_approval/views/property_confirm_views.xml similarity index 100% rename from yuthon_property/views/property_confirm_views.xml rename to yuthon_property_approval/views/property_confirm_views.xml diff --git a/yuthon_property_approval/views/property_early_quitting.xml b/yuthon_property_approval/views/property_early_quitting.xml new file mode 100644 index 000000000..d160c571c --- /dev/null +++ b/yuthon_property_approval/views/property_early_quitting.xml @@ -0,0 +1,19 @@ + + + + property.early.quitting.tree + property.early.quitting + + + + + + + + + + 提前退租审批 + property.early.quitting + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_eligibility.xml b/yuthon_property_approval/views/property_eligibility.xml new file mode 100644 index 000000000..a1246998f --- /dev/null +++ b/yuthon_property_approval/views/property_eligibility.xml @@ -0,0 +1,19 @@ + + + + property.eligibility.tree + property.eligibility + + + + + + + + + + 承租资格审批 + property.eligibility + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_fitment.xml b/yuthon_property_approval/views/property_fitment.xml new file mode 100644 index 000000000..2f7f1cbed --- /dev/null +++ b/yuthon_property_approval/views/property_fitment.xml @@ -0,0 +1,19 @@ + + + + property.fitment.tree + property.fitment + + + + + + + + + + 装修审批 + property.fitment + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_information.xml b/yuthon_property_approval/views/property_information.xml new file mode 100644 index 000000000..57c2624dc --- /dev/null +++ b/yuthon_property_approval/views/property_information.xml @@ -0,0 +1,19 @@ + + + + property.information.tree + property.information + + + + + + + + + + 物业信息审批 + property.information + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_inventory_table.xml b/yuthon_property_approval/views/property_inventory_table.xml new file mode 100644 index 000000000..b52776afb --- /dev/null +++ b/yuthon_property_approval/views/property_inventory_table.xml @@ -0,0 +1,19 @@ + + + + property.inventory.table.tree + property.inventory.table + + + + + + + + + + 盘点表审批 + property.inventory.table + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_lease_alter.xml b/yuthon_property_approval/views/property_lease_alter.xml new file mode 100644 index 000000000..8b4e72cd7 --- /dev/null +++ b/yuthon_property_approval/views/property_lease_alter.xml @@ -0,0 +1,19 @@ + + + + property.lease.alter.tree + property.lease.alter + + + + + + + + + + 续租审批审批 + property.lease.alter + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_lease_contract.xml b/yuthon_property_approval/views/property_lease_contract.xml new file mode 100644 index 000000000..bad58a6aa --- /dev/null +++ b/yuthon_property_approval/views/property_lease_contract.xml @@ -0,0 +1,19 @@ + + + + property.lease.contract.tree + property.lease.contract + + + + + + + + + + 租赁合同审批 + property.lease.contract + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_lease_extension.xml b/yuthon_property_approval/views/property_lease_extension.xml new file mode 100644 index 000000000..5d809285d --- /dev/null +++ b/yuthon_property_approval/views/property_lease_extension.xml @@ -0,0 +1,19 @@ + + + + property.lease.extension.tree + property.lease.extension + + + + + + + + + + 延租审批 + property.lease.extension + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_lease_renewal.xml b/yuthon_property_approval/views/property_lease_renewal.xml new file mode 100644 index 000000000..9ed55d8c5 --- /dev/null +++ b/yuthon_property_approval/views/property_lease_renewal.xml @@ -0,0 +1,19 @@ + + + + property.lease.renewal.tree + property.lease.renewal + + + + + + + + + + 租赁合同变更审批 + property.lease.renewal + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_management.xml b/yuthon_property_approval/views/property_management.xml new file mode 100644 index 000000000..3125116d6 --- /dev/null +++ b/yuthon_property_approval/views/property_management.xml @@ -0,0 +1,19 @@ + + + + property.management.tree + property.management + + + + + + + + + + 物业管理审批 + property.management + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_management_fee.xml b/yuthon_property_approval/views/property_management_fee.xml new file mode 100644 index 000000000..a208ce5f1 --- /dev/null +++ b/yuthon_property_approval/views/property_management_fee.xml @@ -0,0 +1,19 @@ + + + + property.management.fee.tree + property.management.fee + + + + + + + + + + 管理费审批 + property.management.fee + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_material_procurement.xml b/yuthon_property_approval/views/property_material_procurement.xml new file mode 100644 index 000000000..d99b9a968 --- /dev/null +++ b/yuthon_property_approval/views/property_material_procurement.xml @@ -0,0 +1,19 @@ + + + + property.material.procurement.tree + property.material.procurement + + + + + + + + + + 物资配件采购单审批 + property.material.procurement + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_menu_all.xml b/yuthon_property_approval/views/property_menu_all.xml new file mode 100644 index 000000000..f9fb9f24b --- /dev/null +++ b/yuthon_property_approval/views/property_menu_all.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/yuthon_property/views/property_move_views.xml b/yuthon_property_approval/views/property_move_views.xml similarity index 100% rename from yuthon_property/views/property_move_views.xml rename to yuthon_property_approval/views/property_move_views.xml diff --git a/yuthon_property/views/property_open_rent_views.xml b/yuthon_property_approval/views/property_open_rent_views.xml similarity index 100% rename from yuthon_property/views/property_open_rent_views.xml rename to yuthon_property_approval/views/property_open_rent_views.xml diff --git a/yuthon_property_approval/views/property_penalty_proportion.xml b/yuthon_property_approval/views/property_penalty_proportion.xml new file mode 100644 index 000000000..081bef0e2 --- /dev/null +++ b/yuthon_property_approval/views/property_penalty_proportion.xml @@ -0,0 +1,19 @@ + + + + property.penalty.proportion.tree + property.penalty.proportion + + + + + + + + + + 违约金比例审批 + property.penalty.proportion + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_penalty_relief.xml b/yuthon_property_approval/views/property_penalty_relief.xml new file mode 100644 index 000000000..25b2f5032 --- /dev/null +++ b/yuthon_property_approval/views/property_penalty_relief.xml @@ -0,0 +1,19 @@ + + + + property.penalty.relief.tree + property.penalty.relief + + + + + + + + + + 违约金减免审批 + property.penalty.relief + tree + + \ No newline at end of file diff --git a/yuthon_property/views/property_record_views.xml b/yuthon_property_approval/views/property_record_views.xml similarity index 100% rename from yuthon_property/views/property_record_views.xml rename to yuthon_property_approval/views/property_record_views.xml diff --git a/yuthon_property_approval/views/property_rent_relief.xml b/yuthon_property_approval/views/property_rent_relief.xml new file mode 100644 index 000000000..0a698eb36 --- /dev/null +++ b/yuthon_property_approval/views/property_rent_relief.xml @@ -0,0 +1,19 @@ + + + + property.rent.relief.tree + property.rent.relief + + + + + + + + + + 租金减免审批 + property.rent.relief + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_report_repair.xml b/yuthon_property_approval/views/property_report_repair.xml new file mode 100644 index 000000000..ab4051d3b --- /dev/null +++ b/yuthon_property_approval/views/property_report_repair.xml @@ -0,0 +1,19 @@ + + + + property.report.repair.tree + property.report.repair + + + + + + + + + + 报事报修审批 + property.report.repair + tree + + \ No newline at end of file diff --git a/yuthon_property_approval/views/property_utility_bills.xml b/yuthon_property_approval/views/property_utility_bills.xml new file mode 100644 index 000000000..5ca2d5bc9 --- /dev/null +++ b/yuthon_property_approval/views/property_utility_bills.xml @@ -0,0 +1,19 @@ + + + + property.utility.bills.tree + property.utility.bills + + + + + + + + + + 水电费审批 + property.utility.bills + tree + + \ No newline at end of file