添加功能
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
<field name="self_users_ids" invisible="1"/>
|
||||
<field name="create_time" invisible="1"/>
|
||||
<field name="create_time"/>
|
||||
<field name="processing_order_id" invisible="not processing_order_id"/>
|
||||
<field name="problem_description"/>
|
||||
<field name="documents_ids" widget="preview_many2many"/>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
<field name="name"/>
|
||||
<field name="users_id"/>
|
||||
<field name="types_repairs"/>
|
||||
<field name="create_time" readonly="1"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
<field name="self_users_ids" invisible="1"/>
|
||||
|
||||
@@ -19,6 +19,7 @@ class YuthonBusinessApproval(models.Model):
|
||||
is_issues = fields.Boolean(string='是否上会')
|
||||
issues_result = fields.Html(string="会议结果")
|
||||
related_issues_id = fields.Many2one('issue.library', string="关联议题")
|
||||
information_categories_ids = fields.Many2many('yuthon.information.categories', string='信息分类')
|
||||
reason = fields.Text(string="正文")
|
||||
document_ids = fields.Many2many('ir.attachment', string="附件")
|
||||
active = fields.Boolean('Active', default=True, tracking=True)
|
||||
|
||||
@@ -8,6 +8,12 @@ class YuthonCareSetting(models.Model):
|
||||
name = fields.Char(string='名称')
|
||||
documents_ids = fields.Many2many('ir.attachment', string="附件")
|
||||
|
||||
class YuthonInformationCategories(models.Model):
|
||||
_name = 'yuthon.information.categories'
|
||||
_description = '信息分类'
|
||||
|
||||
name = fields.Char(string='名称')
|
||||
|
||||
|
||||
class YuthonWorkSetting(models.Model):
|
||||
_name = 'yuthon.work.setting'
|
||||
|
||||
@@ -38,5 +38,6 @@ access_project_classify_setting,project_classify_setting,model_project_classify_
|
||||
|
||||
access_yuthon_social_transfer,yuthon_social_transfer,model_yuthon_social_transfer,base.group_user,1,1,1,1
|
||||
access_yuthon_contract_addition,yuthon_contract_addition,model_yuthon_contract_addition,base.group_user,1,1,1,1
|
||||
access_yuthon_information_categories,yuthon_information_categories,model_yuthon_information_categories,base.group_user,1,1,1,1
|
||||
|
||||
|
||||
|
||||
|
@@ -44,6 +44,7 @@
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="users_id"/>
|
||||
<field name="information_categories_ids" widget="many2many_tags"/>
|
||||
<field name="reason"/>
|
||||
<field name="document_ids" widget="preview_many2many"/>
|
||||
<field name="department_id" invisible="1"/>
|
||||
|
||||
@@ -34,4 +34,13 @@
|
||||
<field name="res_model">yuthon.stack.position</field>
|
||||
<field name="view_mode">tree</field>
|
||||
</record>
|
||||
<record id="view_yuthon_information_categories_tree" model="ir.ui.view">
|
||||
<field name="name">yuthon.information.categories.tree</field>
|
||||
<field name="model">yuthon.information.categories</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="信息分类" editable="bottom">
|
||||
<field name="name"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user