添加功能
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="rule_yuthon_issue_company" model="ir.rule">
|
||||
<field name="name">决策清单记录规则</field>
|
||||
<field name="model_id" ref="model_yuthon_issue"/>
|
||||
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
|
||||
<field name="domain_force">[('yuthon_company', 'in',self.env.user.employee_id.yuthon_company)]</field>
|
||||
<field name="perm_read" eval="True"/>
|
||||
<field name="perm_write" eval="True"/>
|
||||
<field name="perm_create" eval="True"/>
|
||||
<field name="perm_unlink" eval="True"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -20,6 +20,7 @@ class YuthonWorkTasksLine(models.Model):
|
||||
_description = "工作任务明细"
|
||||
|
||||
plan_id = fields.Many2one('yuthon.plan.management','关联个人工作任务')
|
||||
select_time = fields.Selection(related='plan_id.select_time',string='选择时间')
|
||||
task_type = fields.Selection([('KPI','KPI'),('GS','GS')],string='任务类型')
|
||||
task_name = fields.Many2one('yuthon.index.management',string='任务名称')
|
||||
plan = fields.Char('计划安排及具体措施行动')
|
||||
|
||||
Reference in New Issue
Block a user