@@ -10,3 +10,9 @@ class OfficialType(models.Model):
|
||||
name = fields.Char(string="公文类型")
|
||||
note = fields.Char(string="说明")
|
||||
|
||||
|
||||
class MainFlats(models.Model):
|
||||
_name = 'main.flats'
|
||||
_description = '主送单位'
|
||||
|
||||
name = fields.Char(string="主送单位")
|
||||
@@ -21,7 +21,7 @@ class YuthonOfficial(models.Model):
|
||||
main_text = fields.Text(string='文件内容')
|
||||
come_file_id = fields.Char(string="来文编号")
|
||||
incoming_file_id = fields.Char(string="收文编号")
|
||||
main_flats = fields.Char(string="主送单位")
|
||||
main_flats_id = fields.Many2one('main.flats', string="主送单位")
|
||||
copy_flats = fields.Char(string="抄送单位")
|
||||
department_ids = fields.Many2many('hr.department', string='部门范围')
|
||||
employee_ids = fields.Many2many('hr.employee', string='人员范围')
|
||||
|
||||
@@ -8,4 +8,5 @@ access_yuthon_official_incoming_party,yuthon_official_incoming_party,model_yutho
|
||||
access_yuthon_official_incoming_labor,yuthon_official_incoming_labor,model_yuthon_official_incoming_labor,base.group_user,1,1,1,1
|
||||
access_yuthon_official_incoming_normal,yuthon_official_incoming_normal,model_yuthon_official_incoming_normal,base.group_user,1,1,1,1
|
||||
access_yuthon_cross_departmental, yuthon_cross_departmental,model_yuthon_cross_departmental,base.group_user,1,1,1,1
|
||||
access_yuthon_file_processing,yuthon_file_processing,model_yuthon_file_processing,base.group_user,1,1,1,1
|
||||
access_yuthon_file_processing,yuthon_file_processing,model_yuthon_file_processing,base.group_user,1,1,1,1
|
||||
access_main_flats,main_flats,model_main_flats,base.group_user,1,1,1,1
|
||||
|
@@ -58,7 +58,7 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="company_id1"/>
|
||||
<field name="secret_level"/>
|
||||
<field name="official_type_id"/>
|
||||
<field name="official_type_id" options="{'no_create': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="reference_cold"/>
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="company_id1"/>
|
||||
<field name="secret_level"/>
|
||||
<field name="official_type_id"/>
|
||||
<field name="official_type_id" options="{'no_create': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="reference_cold"/>
|
||||
|
||||
@@ -65,10 +65,11 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="company_id1"/>
|
||||
<field name="secret_level"/>
|
||||
<field name="official_type_id"/>
|
||||
<field name="official_type_id" options="{'no_create': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="reference_cold"/>
|
||||
<field name="main_flats_id"/>
|
||||
<field name="copy_flats"/>
|
||||
<field name="date"/>
|
||||
<field name="issues_result" invisible="is_meet == False"/>
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
],
|
||||
},
|
||||
'demo': [],
|
||||
'depends': ['mail', 'soong_workflow', 'documents', 'yuthon_property', 'hr', 'yuthon_issue', 'base'],
|
||||
'depends': ['mail', 'soong_workflow', 'documents', 'yuthon_property', 'hr', 'yuthon_issue', 'base', 'yuthon_trade'],
|
||||
'installable': True,
|
||||
'application': True,
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ class YuthonCareSetting(models.Model):
|
||||
|
||||
class YuthonInformationCategories(models.Model):
|
||||
_name = 'yuthon.information.categories'
|
||||
_description = '信息分类'
|
||||
_description = '业务类型'
|
||||
|
||||
name = fields.Char(string='名称')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user