添加功能

This commit is contained in:
zhouzhou
2024-10-12 11:07:54 +08:00
parent 2b0a7bd9fc
commit dc6e8e140b
40 changed files with 881 additions and 37 deletions
+40 -3
View File
@@ -16,15 +16,52 @@ class YuthonProperty(models.Model):
property_use_id = fields.Integer(string="物业用途ID")
property_asset_type = fields.Selection([('plant', '厂房'), ('goods', '商品'),
('office', '写字楼'), ('dormitory', '宿舍'),
('rig', '设备等管理用房')], string='资产类型')
('rig', '设备等管理用房')], string='管理类型')
property_asset_use = fields.Selection([('hire', '出租'), ('personal', '自用')], string='资产用途')
property_use_type = fields.Selection([('work', '办公'), ('dorm', '宿舍'), ('cater', '餐饮')], string='使用类型')
property_use_type = fields.Selection([('work', '办公'), ('dorm', '宿舍'), ('cater', '餐饮'),('shops', '商铺'),
('plant', '厂房')], string='出租用途')
property_use_time = fields.Datetime(string="使用年限")
property_rent_type = fields.Selection([('could', '可租'), ('no', '不可租'),
('done', '已租'), ('none', '空置')], string="出租状态")
('done', '已租'), ('none', '空置'),('assessment','评估'),
('none_assessment', '待评估'),('filing', '备案'),('hang', '挂网'),
('agency', '签约中')], string="出租状态")
state_id = fields.Many2one('property.type', string='状态')
property_source = fields.Selection([('cut', '划入'), ('self', '自建'),
('replace', '置换'), ('buy', '购入'),
('entrust', '委托'), ('Rent', '租入')], string='来源')
image_1920 = fields.Image(string="图片")
description = fields.Html(string="描述")
ame = fields.Char(string='标题')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code('property_message_code'))
rental_unit_price = fields.Float(string="评估单价")
address = fields.Char(string="物业地址")
is_confirm_authorization = fields.Boolean(string="是否确权")
is_handle_land = fields.Boolean(string="是否办理土地有偿使用手续")
owner = fields.Char(string="权属人")
title_number = fields.Char(string="产权编号")
property_area = fields.Float(string="产权面积")
suite_area = fields.Float(string="套内面积")
pooled_area = fields.Float(string="公摊面积")
start_time = fields.Date(string="开始时间")
end_time = fields.Date(string="结束时间")
management_area = fields.Float(string="管理面积")
rentable_area = fields.Float(string="可租面积")
is_meter = fields.Boolean(string="是否支持多个水表")
is_electricity_meter = fields.Boolean(string="是否支持多个电表")
is_hvac = fields.Boolean(string="是否中央空调")
manage_standard = fields.Char(string="物业管理费标准")
remarks = fields.Char(string="备注")
company_page = fields.Selection([('tz', '天河投资'), ('wg', '天河物管'), ('lc', '天河粮储')], string="所属公司")
property = fields.Selection([('escrow','代管'), ('self','私有')], string="属性")
street = fields.Char(string="街道")
admin = fields.Many2one('res.users', string="管理员")
title_address = fields.Char(string="产权地址")
rental_address = fields.Char(string="出租地址")
def put_change_title(self):
pass
def put_change_manage(self):
pass
+6 -1
View File
@@ -257,7 +257,12 @@
parent="yuthon_property_menu_root"
name="资源管理"
sequence="2"/>
<menuitem
id="property_approval_management_menu"
parent="property_approval_menu"
name="物业信息"
sequence="1"
action="yuthon_property_action"/>
<!-- &lt;!&ndash; 二级标题 &ndash;&gt;-->
<!-- <menuitem id="yuthon_property_evaluated_menu"-->
<!-- sequence="9"-->
+84 -28
View File
@@ -5,19 +5,41 @@
<field name="model">yuthon.property</field>
<field name="arch" type="xml">
<tree string="物业管理">
<header>
<button name="put_change_title" string="提交产权变更审批" type="object"/>
<button name="put_change_manage" string="提交管理变更审批" type="object"/>
</header>
<field name="name"/>
<field name="property_precinct"/>
<field name="property_floor"/>
<field name="property_room"/>
<field name="property_house"/>
<field name="property_orientation"/>
<field name="property_use_id"/>
<field name="property_asset_type"/>
<field name="property_use_type"/>
<field name="property_use_time"/>
<field name="property_source"/>
<field name="property_rent_type"/>
<field name="state_id"/>
<field name="property_precinct" optional="show"/>
<field name="address" optional="hide"/>
<field name="is_confirm_authorization" optional="hide"/>
<field name="is_handle_land" optional="hide"/>
<field name="owner" optional="show"/>
<field name="title_number" optional="show"/>
<field name="property_area" optional="show"/>
<field name="pooled_area" optional="show"/>
<field name="start_time" optional="show"/>
<field name="end_time" optional="show"/>
<field name="management_area" optional="hide"/>
<field name="rentable_area" optional="hide"/>
<field name="property_floor" optional="hide"/>
<field name="property_room" optional="hide"/>
<field name="street" optional="hide"/>
<field name="property_house" optional="hide"/>
<field name="property_orientation" optional="hide"/>
<field name="property_use_id" optional="hide"/>
<field name="property_asset_type" optional="hide"/>
<field name="property_use_type" optional="hide"/>
<field name="property_rent_type" optional="hide"/>
<field name="is_meter" optional="show"/>
<field name="is_electricity_meter" optional="show"/>
<field name="is_hvac" optional="hide"/>
<field name="manage_standard" optional="show"/>
<field name="remarks" optional="hide"/>
<field name="company_page" optional="hide"/>
<field name="property" optional="hide"/>
<field name="rental_unit_price" optional="show"/>
<field name="admin" optional="show"/>
</tree>
</field>
</record>
@@ -27,7 +49,7 @@
<field name="arch" type="xml">
<form string="产品管理">
<sheet>
<field name="image_1920" widget="image" class="oe_avatar" options="{'preview_image': 'image_128'}"/>
<field name="image_1920" widget="image" class="oe_avatar" optional="{'preview_image': 'image_128'}"/>
<div class="oe_title">
<label for="name" string="名称"/>
<h1>
@@ -36,25 +58,48 @@
</div>
<group>
<group>
<field name="property_precinct"/>
<field name="property_floor"/>
<field name="property_room"/>
<field name="property_house"/>
<field name="property_orientation"/>
<field name="owner"/>
<field name="title_number"/>
<field name="property_asset_type"/>
<field name="property_area"/>
<field name="suite_area"/>
<field name="pooled_area"/>
<field name="start_time"/>
<field name="end_time"/>
</group>
<group>
<field name="property_use_id"/>
<field name="property_asset_type"/>
<field name="property_use_type"/>
<field name="property_use_time"/>
<field name="property_rent_type"/>
<field name="state_id"/>
<field name="property_source"/>
<field name="is_meter"/>
<field name="is_electricity_meter"/>
<field name="manage_standard"/>
<field name="company_page"/>
<field name="admin"/>
<field name="rental_unit_price"/>
</group>
</group>
<notebook>
<page string="描述">
<field name="description" widget="tinymce"/>
<page string="更多详情">
<group>
<group>
<field name="property_precinct"/>
<field name="address"/>
<field name="is_confirm_authorization"/>
<field name="property_use_id"/>
<field name="property_use_type"/>
<field name="property_rent_type"/>
<field name="property"/>
<field name="rental_address"/>
</group>
<group>
<field name="management_area"/>
<field name="rentable_area"/>
<field name="property_floor"/>
<field name="property_room"/>
<field name="property_asset_type"/>
<field name="street"/>
<field name="title_address"/>
<field name="remarks"/>
</group>
</group>
</page>
</notebook>
</sheet>
@@ -72,6 +117,9 @@
<field name="model">yuthon.property</field>
<field name="arch" type="xml">
<search>
<field name="company_page" string="公司"/>
<field name="owner" string="负责人"/>
<field name="property_precinct" string="片区"/>
<filter string="可租" name="could" domain="[('property_rent_type', '=', 'could')]"/>
<filter string="不可租" name="could" domain="[('property_rent_type', '=', 'no')]"/>
<filter string="已租" name="done" domain="[('property_rent_type', '=', 'done')]"/>
@@ -106,6 +154,14 @@
<strong class="o_kanban_record_title">
<field name="name"/>
</strong>
<div>
<span>面积:</span>
<field name="property_area"/>
</div>
<div>
<span>评估单价:</span>
<field name="rental_unit_price"/>
</div>
</div>
<!-- <field name="priority" widget="priority"/>-->
</div>
@@ -115,7 +171,7 @@
<!-- <div class="o_kanban_tags_section">-->
<!-- <field name="product_template_variant_value_ids"-->
<!-- groups="product.group_product_variant" widget="many2many_tags"-->
<!-- options="{'color_field': 'color'}"/>-->
<!-- optional="{'color_field': 'color'}"/>-->
<!-- </div>-->
<!-- <div name="product_lst_price" class="mt-1">-->
<!-- Price:-->
@@ -208,4 +208,5 @@
<field name="code">property_renamed_code</field>
<field name="prefix">%(y)s%(month)s%(day)s</field>
</record>
</odoo>
@@ -17,11 +17,14 @@ class PropertyEquity(models.Model):
original_certificate_number = fields.Char(string='原产权证号')
original_are = fields.Float(string='原面积')
original_owner = fields.Char(string='原权属人')
original_get = fields.Char(string="取得方式")
start_date = fields.Date(string="生效日期")
new_property_name = fields.Char(string='新物业名称')
new_certificate_number = fields.Char(string='新产权证号')
new_are = fields.Float(string='新面积')
new_get = fields.Char(string="取得方式")
new_equity = fields.Char(string="新产权")
new_owner = fields.Char(string='新权属人')
@@ -21,7 +21,7 @@ class PropertyInformation(models.Model):
company_id = fields.Many2one('res.company', string="所属公司")
admin_id = fields.Many2one('res.users', string="管理员")
precinct = fields.Char(string="片区")
address = fields.Char(string="物业地址")
management_type = fields.Char(string="管理类型")
property_id = fields.Char(string="物业ID")
@@ -26,12 +26,13 @@
</div>
<group col="2">
<group>
<field name="department_id"/>
<field name="original_property_name"/>
<field name="department_id"/>
<field name="original_property_name"/>
<field name="original_get"/>
</group>
<group>
<field name="applicant"/>
<field name="original_certificate_number"/>
<field name="applicant"/>
<field name="original_certificate_number"/>
</group>
<group>
<field name="original_are"/>
@@ -45,10 +46,12 @@
<group>
<field name="new_property_name"/>
<field name="new_certificate_number"/>
<field name="new_get"/>
</group>
<group>
<field name="new_are"/>
<field name="new_owner"/>
<field name="new_equity"/>
</group>
</group>
</sheet>
+1
View File
@@ -0,0 +1 @@
from . import models
+33
View File
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
{
'name': "yuthon trade",
'summary': "工会管理",
'description': """""",
'author': 'zhou',
'version': '0.1',
'license': 'LGPL-3',
'data': [
'security/ir.model.access.csv',
'data/sale_renting_code_data.xml',
'views/yuthon_personal_condolences.xml',
'views/yuthon_trade_activities.xml',
'views/yuthon_trade_borrowing.xml',
'views/yuthon_trade_contract.xml',
'views/yuthon_trade_pay.xml',
'views/yuthon_trade_policy.xml',
'views/yuthon_trade_purchase.xml',
'views/yuthon_trade_premium.xml',
'views/yuthon_trade_refund.xml',
'views/yuthon_trade_reimbursed.xml',
'views/yuthon_trade_supportive.xml',
'views/yuthon_none_views.xml',
'views/yuthon_work_condolences.xml',
'views/yuthon_trade_menu.xml',
],
'demo': [],
'depends': ['mail','documents','soong_workflow'],
'installable': True,
'application': True,
}
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="property_work_condolences_code_sequence" model="ir.sequence">
<field name="name">节日慰问编号</field>
<field name="code">property_work_condolences_code</field>
<field name="prefix">JR%(y)s%(month)s%(day)s</field>
<field name="padding">3</field>
</record>
<record id="property_personal_condolences_code_sequence" model="ir.sequence">
<field name="name">个人慰问编号</field>
<field name="code">property_personal_condolences_code</field>
<field name="prefix">GR%(y)s%(month)s%(day)s</field>
<field name="padding">3</field>
</record>
</odoo>
+13
View File
@@ -0,0 +1,13 @@
from . import yuthon_personal_condolences
from . import yuthon_trade_activities
from . import yuthon_trade_borrowing
from . import yuthon_trade_contract
from . import yuthon_trade_pay
from . import yuthon_trade_policy
from . import yuthon_trade_premium
from . import yuthon_trade_purchase
from . import yuthon_trade_refund
from . import yuthon_trade_reimbursed
from . import yuthon_trade_supportive
from . import yuthon_work_condolences
from . import yuthon_none
+7
View File
@@ -0,0 +1,7 @@
from odoo import models, fields, api
class YuthonNone(models.Model):
_name = 'yuthon.none'
name = fields.Char(string='名称')
@@ -0,0 +1,11 @@
from odoo import models, fields, api
class YuthonPersonalCondolences(models.Model):
_name = 'yuthon.personal.condolences'
_description = '个人节日慰问'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code('property_personal_condolences_code_sequence'))
@@ -0,0 +1,12 @@
from odoo import models, fields, api
class YuthonTradeActivities(models.Model):
_name = 'yuthon.trade.activities'
_description = '工会活动'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
@@ -0,0 +1,14 @@
from odoo import models, fields, api
class YuthonTradeBorrowing(models.Model):
_name = 'yuthon.trade.borrowing'
_description = '借支流程'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
@@ -0,0 +1,12 @@
from odoo import models, fields, api
class YuthonTradeContract(models.Model):
_name = 'yuthon.trade.contract'
_description = '合同审批'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
+12
View File
@@ -0,0 +1,12 @@
from odoo import models, fields, api
class YuthonTradePay(models.Model):
_name = 'yuthon.trade.pay'
_description = '付款流程'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
@@ -0,0 +1,12 @@
from odoo import models, fields, api
class YuthonTradePolicy(models.Model):
_name = 'yuthon.trade.policy'
_description = '保单列表'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
@@ -0,0 +1,12 @@
from odoo import models, fields, api
class YuthonTradePremium(models.Model):
_name = 'yuthon.trade.premium'
_description = '缴保申请表'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
@@ -0,0 +1,10 @@
from odoo import models, fields, api
class YuthonTradePurchase(models.Model):
_name = 'yuthon.trade.purchase'
_description = '采购'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code('property_personal_condolences_code_sequence'))
@@ -0,0 +1,12 @@
from odoo import models, fields, api
class YuthonTradeRefund(models.Model):
_name = 'yuthon.trade.refund'
_description = '退款流程'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称', required=True)
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_personal_condolences_code_sequence'))
@@ -0,0 +1,13 @@
from odoo import models, fields, api
class YuthonTradeReimbursed(models.Model):
_name = 'yuthon.trade.reimbursed'
_description = '报销流程'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_work_condolences_code_sequence'))
@@ -0,0 +1,13 @@
from odoo import models, fields, api
class YuthonTradeSupportive(models.Model):
_name = 'yuthon.trade.supportive'
_description = '互助申请表'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code(
'property_work_condolences_code_sequence'))
@@ -0,0 +1,11 @@
from odoo import models, fields, api
class YuthonWorkCondolences(models.Model):
_name = 'yuthon.work.condolences'
_description = '节日慰问'
_inherit = ['soong.workflow.mixin']
name = fields.Char(string='名称')
code = fields.Char(string="编号",
default=lambda self: self.env['ir.sequence'].next_by_code('property_work_condolences_code_sequence'))
+15
View File
@@ -0,0 +1,15 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_yuthon_personal_condolences,yuthon_personal_condolences,model_yuthon_personal_condolences,base.group_user,1,1,1,1
access_yuthon_trade_activities,yuthon_trade_activities,model_yuthon_trade_activities,base.group_user,1,1,1,1
access_yuthon_trade_borrowing,yuthon_trade_borrowing,model_yuthon_trade_borrowing,base.group_user,1,1,1,1
access_yuthon_trade_contract,yuthon_trade_contract,model_yuthon_trade_contract,base.group_user,1,1,1,1
access_yuthon_trade_pay,yuthon_trade_pay,model_yuthon_trade_pay,base.group_user,1,1,1,1
access_yuthon_trade_policy,yuthon_trade_policy,model_yuthon_trade_policy,base.group_user,1,1,1,1
access_yuthon_trade_purchase,yuthon_trade_purchase,model_yuthon_trade_purchase,base.group_user,1,1,1,1
access_yuthon_trade_premium,yuthon_trade_premium,model_yuthon_trade_premium,base.group_user,1,1,1,1
access_yuthon_trade_refund,yuthon_trade_refund,model_yuthon_trade_refund,base.group_user,1,1,1,1
access_yuthon_trade_reimbursed,yuthon_trade_reimbursed,model_yuthon_trade_reimbursed,base.group_user,1,1,1,1
access_yuthon_trade_supportive,yuthon_trade_supportive,model_yuthon_trade_supportive,base.group_user,1,1,1,1
access_yuthon_work_condolences,yuthon_work_condolences,model_yuthon_work_condolences,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_yuthon_personal_condolences yuthon_personal_condolences model_yuthon_personal_condolences base.group_user 1 1 1 1
3 access_yuthon_trade_activities yuthon_trade_activities model_yuthon_trade_activities base.group_user 1 1 1 1
4 access_yuthon_trade_borrowing yuthon_trade_borrowing model_yuthon_trade_borrowing base.group_user 1 1 1 1
5 access_yuthon_trade_contract yuthon_trade_contract model_yuthon_trade_contract base.group_user 1 1 1 1
6 access_yuthon_trade_pay yuthon_trade_pay model_yuthon_trade_pay base.group_user 1 1 1 1
7 access_yuthon_trade_policy yuthon_trade_policy model_yuthon_trade_policy base.group_user 1 1 1 1
8 access_yuthon_trade_purchase yuthon_trade_purchase model_yuthon_trade_purchase base.group_user 1 1 1 1
9 access_yuthon_trade_premium yuthon_trade_premium model_yuthon_trade_premium base.group_user 1 1 1 1
10 access_yuthon_trade_refund yuthon_trade_refund model_yuthon_trade_refund base.group_user 1 1 1 1
11 access_yuthon_trade_reimbursed yuthon_trade_reimbursed model_yuthon_trade_reimbursed base.group_user 1 1 1 1
12 access_yuthon_trade_supportive yuthon_trade_supportive model_yuthon_trade_supportive base.group_user 1 1 1 1
13 access_yuthon_work_condolences yuthon_work_condolences model_yuthon_work_condolences base.group_user 1 1 1 1
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="yuthon_trade_none_tree" model="ir.ui.view">
<field name="name">yuthon.none.tree</field>
<field name="model">yuthon.none</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
</tree>
</field>
</record>
<record id="yuthon_trade_none_tree_action" model="ir.actions.act_window">
<field name="name">待开发</field>
<field name="res_model">yuthon.none</field>
<field name="view_mode">tree</field>
</record>
</odoo>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_personal_condolences_tree" model="ir.ui.view">
<field name="name">yuthon.personal.condolences.tree</field>
<field name="model">yuthon.personal.condolences</field>
<field name="arch" type="xml">
<tree string="个人慰问">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_personal_condolences_form" model="ir.ui.view">
<field name="name">yuthon.personal.condolences.form</field>
<field name="model">yuthon.personal.condolences</field>
<field name="arch" type="xml">
<form string="个人慰问">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_personal_condolences" model="ir.actions.act_window">
<field name="name">个人慰问</field>
<field name="res_model">yuthon.personal.condolences</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_activities_tree" model="ir.ui.view">
<field name="name">yuthon.trade.activities.tree</field>
<field name="model">yuthon.trade.activities</field>
<field name="arch" type="xml">
<tree string="工会活动">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_activities_form" model="ir.ui.view">
<field name="name">yuthon.trade.activities.form</field>
<field name="model">yuthon.trade.activities</field>
<field name="arch" type="xml">
<form string="工会活动">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_activities" model="ir.actions.act_window">
<field name="name">工会活动</field>
<field name="res_model">yuthon.trade.activities</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_borrowing_tree" model="ir.ui.view">
<field name="name">yuthon.trade.borrowing.tree</field>
<field name="model">yuthon.trade.borrowing</field>
<field name="arch" type="xml">
<tree string="借支">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_borrowing_form" model="ir.ui.view">
<field name="name">yuthon.trade.borrowing.form</field>
<field name="model">yuthon.trade.borrowing</field>
<field name="arch" type="xml">
<form string="借支">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_borrowing" model="ir.actions.act_window">
<field name="name">借支</field>
<field name="res_model">yuthon.trade.borrowing</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_contract_tree" model="ir.ui.view">
<field name="name">yuthon.trade.contract.tree</field>
<field name="model">yuthon.trade.contract</field>
<field name="arch" type="xml">
<tree string="合同审批">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_contract_form" model="ir.ui.view">
<field name="name">yuthon.trade.contract.form</field>
<field name="model">yuthon.trade.contract</field>
<field name="arch" type="xml">
<form string="合同审批">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_contract" model="ir.actions.act_window">
<field name="name">合同审批</field>
<field name="res_model">yuthon.trade.contract</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
+99
View File
@@ -0,0 +1,99 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="fleet.menu_root" model="ir.ui.menu">
<field name="active">False</field>
</record>
<menuitem id="executive_manage_menu_root"
name="行政管理"
web_icon="yuthon_work_brand,static/description/manage.png"
sequence="1"/>
<menuitem id="executive_manage_union_root"
name="工会"
parent="executive_manage_menu_root"
sequence="1"/>
<menuitem id="executive_manage_welfare"
name="福利"
parent="executive_manage_union_root"
sequence="1"/>
<menuitem id="executive_manage_activities"
name="活动"
parent="executive_manage_union_root"
action="yuthon_trade_none_tree_action"
sequence="3"/>
<menuitem id="executive_manage_insurance"
name="保险"
parent="executive_manage_union_root"
action="yuthon_trade_none_tree_action"
sequence="5"/>
<menuitem id="executive_manage_expenses"
name="费用"
parent="executive_manage_union_root"
action="yuthon_trade_none_tree_action"
sequence="7"/>
<menuitem id="executive_personal_condolences"
name="个人慰问"
parent="executive_manage_union_root"
action="action_yuthon_personal_condolences"
sequence="9"/>
<menuitem id="executive_work_condolences"
name="节日慰问"
parent="executive_manage_union_root"
action="action_yuthon_work_condolences"
sequence="11"/>
<menuitem id="executive_trade_activities"
name="工会活动"
parent="executive_manage_union_root"
action="action_yuthon_trade_activities"
sequence="13"/>
<menuitem id="executive_trade_borrowing"
name="借支"
parent="executive_manage_union_root"
action="action_yuthon_trade_borrowing"
sequence="15"/>
<menuitem id="executive_trade_contract"
name="合同审批"
parent="executive_manage_union_root"
action="action_yuthon_trade_contract"
sequence="17"/>
<menuitem id="executive_trade_pay"
name="付款"
parent="executive_manage_union_root"
action="action_yuthon_trade_pay"
sequence="19"/>
<menuitem id="executive_trade_policy"
name="保单列表"
parent="executive_manage_union_root"
action="action_yuthon_trade_policy"
sequence="21"/>
<menuitem id="executive_trade_premium"
name="缴保申请表"
parent="executive_manage_union_root"
action="action_yuthon_trade_premium"
sequence="23"/>
<menuitem id="executive_trade_purchase"
name="采购"
parent="executive_manage_union_root"
action="action_yuthon_trade_purchase"
sequence="25"/>
<menuitem id="executive_trade_refund"
name="退款"
parent="executive_manage_union_root"
action="action_yuthon_trade_refund"
sequence="27"/>
<menuitem id="executive_trade_supportive"
name="互助申请表"
parent="executive_manage_union_root"
action="action_yuthon_trade_supportive"
sequence="29"/>
<menuitem id="executive_trade_reimbursed"
name="报销"
parent="executive_manage_union_root"
action="action_yuthon_trade_reimbursed"
sequence="31"/>
</odoo>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_pay_tree" model="ir.ui.view">
<field name="name">yuthon.trade.pay.tree</field>
<field name="model">yuthon.trade.pay</field>
<field name="arch" type="xml">
<tree string="付款">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_pay_form" model="ir.ui.view">
<field name="name">yuthon.trade.pay.form</field>
<field name="model">yuthon.trade.pay</field>
<field name="arch" type="xml">
<form string="付款">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_pay" model="ir.actions.act_window">
<field name="name">付款</field>
<field name="res_model">yuthon.trade.pay</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_policy_tree" model="ir.ui.view">
<field name="name">yuthon.trade.policy.tree</field>
<field name="model">yuthon.trade.policy</field>
<field name="arch" type="xml">
<tree string="保单列表">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_policy_form" model="ir.ui.view">
<field name="name">yuthon.trade.policy.form</field>
<field name="model">yuthon.trade.policy</field>
<field name="arch" type="xml">
<form string="保单">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_policy" model="ir.actions.act_window">
<field name="name">保单</field>
<field name="res_model">yuthon.trade.policy</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_premium_tree" model="ir.ui.view">
<field name="name">yuthon.trade.premium.tree</field>
<field name="model">yuthon.trade.premium</field>
<field name="arch" type="xml">
<tree string="缴保申请表">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_premium_form" model="ir.ui.view">
<field name="name">yuthon.trade.premium.form</field>
<field name="model">yuthon.trade.premium</field>
<field name="arch" type="xml">
<form string="缴保申请表">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_premium" model="ir.actions.act_window">
<field name="name">缴保申请表</field>
<field name="res_model">yuthon.trade.premium</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_purchase_tree" model="ir.ui.view">
<field name="name">yuthon.trade.purchase.tree</field>
<field name="model">yuthon.trade.purchase</field>
<field name="arch" type="xml">
<tree string="采购">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_purchase_form" model="ir.ui.view">
<field name="name">yuthon.trade.purchase.form</field>
<field name="model">yuthon.trade.purchase</field>
<field name="arch" type="xml">
<form string="采购">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_purchase" model="ir.actions.act_window">
<field name="name">采购</field>
<field name="res_model">yuthon.trade.purchase</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_refund_tree" model="ir.ui.view">
<field name="name">yuthon.trade.refund.tree</field>
<field name="model">yuthon.trade.refund</field>
<field name="arch" type="xml">
<tree string="退款">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_refund_form" model="ir.ui.view">
<field name="name">yuthon.trade.refund.form</field>
<field name="model">yuthon.trade.refund</field>
<field name="arch" type="xml">
<form string="退款">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_refund" model="ir.actions.act_window">
<field name="name">退款</field>
<field name="res_model">yuthon.trade.refund</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_reimbursed_tree" model="ir.ui.view">
<field name="name">yuthon.trade.reimbursed.tree</field>
<field name="model">yuthon.trade.reimbursed</field>
<field name="arch" type="xml">
<tree string="报销">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_reimbursed_form" model="ir.ui.view">
<field name="name">yuthon.trade.reimbursed.form</field>
<field name="model">yuthon.trade.reimbursed</field>
<field name="arch" type="xml">
<form string="报销">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_reimbursed" model="ir.actions.act_window">
<field name="name">报销</field>
<field name="res_model">yuthon.trade.reimbursed</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_trade_supportive_tree" model="ir.ui.view">
<field name="name">yuthon.trade.supportive.tree</field>
<field name="model">yuthon.trade.supportive</field>
<field name="arch" type="xml">
<tree string="互助申请表">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_trade_supportive_form" model="ir.ui.view">
<field name="name">yuthon.trade.supportive.form</field>
<field name="model">yuthon.trade.supportive</field>
<field name="arch" type="xml">
<form string="互助申请表">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_trade_supportive" model="ir.actions.act_window">
<field name="name">互助申请表</field>
<field name="res_model">yuthon.trade.supportive</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_yuthon_work_condolences_tree" model="ir.ui.view">
<field name="name">yuthon.work.condolences_tree</field>
<field name="model">yuthon.work.condolences</field>
<field name="arch" type="xml">
<tree string="节日慰问">
<field name="name"/>
<field name="code"/>
</tree>
</field>
</record>
<record id="view_yuthon_work_condolences_form" model="ir.ui.view">
<field name="name">yuthon.work.condolences.form</field>
<field name="model">yuthon.work.condolences</field>
<field name="arch" type="xml">
<form string="节日慰问">
<sheet>
<group>
<field name="name"/>
<field name="code"/>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_yuthon_work_condolences" model="ir.actions.act_window">
<field name="name">节日慰问</field>
<field name="res_model">yuthon.work.condolences</field>
<field name="view_mode">tree,form</field>
</record>
</odoo>