@@ -66,7 +66,7 @@ class YuthonWillTask(models.Model):
|
||||
('23', '23:00'), ('23.5', '23:30')], string='结束时间', default='18')
|
||||
|
||||
priority = fields.Selection([('general', '不紧急不重要'), ('important', '重要不紧急'),
|
||||
('urgent', '紧急不重要'), ('very_urgent', '重要且紧急')], string='优先级')
|
||||
('urgent', '紧急不重要'), ('very_urgent', '重要且紧急')], string='优先级', default='general')
|
||||
code = fields.Char(string="任务编号", default=lambda self: self.env['ir.sequence'].next_by_code('task_code'))
|
||||
user_id = fields.Many2one('res.users', string="创建人", default=lambda self: self.env.user)
|
||||
company_id = fields.Many2one('res.company', string="公司", default=lambda self: self.env.company)
|
||||
|
||||
@@ -73,7 +73,6 @@
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<field name="task_time_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<label for="start_date"/>
|
||||
@@ -86,14 +85,17 @@
|
||||
style="max-width: 4rem !important;"/>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="task_time_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="user_id"/>
|
||||
<field name="task_state" invisible="1"/>
|
||||
<field name="employee_ids" widget="many2many_tags" options="{'no_create': True}"/>
|
||||
<field name="user_role_ids" widget="many2many_tags" invisible="1"/>
|
||||
<field name='users_ids' widget="many2many_tags" invisible="1"/>
|
||||
<field name='employee_ids2' widget="many2many_tags" domain="[('user_role_ids.name', 'in', ['司机'])]"/>
|
||||
<field name="address"/>
|
||||
<field name="address"/>
|
||||
<field name='employee_ids2' widget="many2many_tags" domain="[('user_role_ids.name', 'in', ['司机'])]"/>
|
||||
<field name="remarks"/>
|
||||
<field name='document_ids' widget="preview_many2many"/>
|
||||
<field name="creation_time" invisible="1"/>
|
||||
@@ -167,9 +169,6 @@
|
||||
<field name="task_content" required="1"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<field name="task_time_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<label for="start_date"/>
|
||||
<div class="d-inline-flex w-100">
|
||||
@@ -181,14 +180,17 @@
|
||||
style="max-width: 5rem !important;"/>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="task_time_ids" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="user_id" domain="[('company_id', '=', company_id)]"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="employee_ids" widget="many2many_tags" options="{'no_create': True}"/>
|
||||
<field name='employee_ids2' widget="many2many_tags" domain="[('user_role_ids.name', 'in', ['司机'])]" options="{'no_create': True}"/>
|
||||
<field name='users_ids' widget="many2many_tags" invisible="1"/>
|
||||
<field name="user_role_ids" widget="many2many_tags" invisible="1"/>
|
||||
<field name="address"/>
|
||||
<field name='employee_ids2' widget="many2many_tags" domain="[('user_role_ids.name', 'in', ['司机'])]" options="{'no_create': True}"/>
|
||||
<field name="remarks"/>
|
||||
<field name="creation_time" invisible="1"/>
|
||||
</group>
|
||||
|
||||
Reference in New Issue
Block a user