添加功能
This commit is contained in:
@@ -15,25 +15,25 @@
|
||||
</group>
|
||||
<group invisible="node_btn_name in ['分发', '结束', '收回']">
|
||||
<div class="oe_comment_block" style=" width:1200%; border: 1px solid #dee2e6; border-radius: 4px; padding: 12px; margin-bottom: 16px;">
|
||||
<label for="comment_note_id" string="常用意见" domain="[('note_setting_id.users_role_ids', 'in', user_role_id)]"
|
||||
<label for="comment_note_id" string="常用意见"
|
||||
style="font-weight: bold; margin-bottom: 8px; display: block;"/>
|
||||
<field name="comment_note_id" class="mb-3" style="width: 100%;" options="{'no_create': True}"/>
|
||||
<field name="comment_note_id" class="mb-3" style="width: 100%;" options="{'no_create': True}" domain="[('note_setting_id.users_role_ids', 'in', user_role_id)]"/>
|
||||
<field name="comment_note" placeholder="请输入意见内容..." style="width: 100%;"/>
|
||||
</div>
|
||||
</group>
|
||||
<group invisible="node_btn_name != '结束'">
|
||||
<div class="oe_comment_block" style=" width:1200%; border: 1px solid #dee2e6; border-radius: 4px; padding: 12px; margin-bottom: 16px;">
|
||||
<label for="comment_note_id" string="结束意见" domain="[('note_setting_id.users_role_ids', 'in', user_role_id)]"
|
||||
<label for="comment_note_id" string="结束意见"
|
||||
style="font-weight: bold; margin-bottom: 8px; display: block;"/>
|
||||
<field name="comment_note_id" class="mb-3" style="width: 100%;" options="{'no_create': True}"/>
|
||||
<field name="comment_note_id" class="mb-3" style="width: 100%;" options="{'no_create': True}" domain="[('note_setting_id.users_role_ids', 'in', user_role_id)]"/>
|
||||
<field name="comment_note" placeholder="请输入意见内容..." style="width: 100%;"/>
|
||||
</div>
|
||||
</group>
|
||||
<group invisible="node_btn_name != '分发'">
|
||||
<div class="oe_comment_block" style=" width:1200%; border: 1px solid #dee2e6; border-radius: 4px; padding: 12px; margin-bottom: 16px;">
|
||||
<label for="comment_note_id" string="分发意见" domain="[('note_setting_id.users_role_ids', 'in', user_role_id)]"
|
||||
<label for="comment_note_id" string="分发意见"
|
||||
style="font-weight: bold; margin-bottom: 8px; display: block;"/>
|
||||
<field name="comment_note_id" class="mb-3" style="width: 100%;" options="{'no_create': True}"/>
|
||||
<field name="comment_note_id" class="mb-3" style="width: 100%;" options="{'no_create': True}" domain="[('note_setting_id.users_role_ids', 'in', user_role_id)]"/>
|
||||
<field name="comment_note" placeholder="请输入意见内容..." style="width: 100%;"/>
|
||||
</div>
|
||||
</group>
|
||||
|
||||
@@ -14,6 +14,7 @@ class IssueApproval(models.Model):
|
||||
create_time = fields.Date(string='创建日期', default=lambda self: fields.Date.today())
|
||||
employee_id = fields.Many2one('hr.employee', string="经办人", default=lambda self: self.env.user.employee_id)
|
||||
department_id = fields.Many2one(related='employee_id.department_id', string="部门")
|
||||
company_id = fields.Many2one(related='employee_id.company_id', string="公司")
|
||||
user_id = fields.Many2one('res.users', string="经办人", default=lambda self: self.env.user)
|
||||
meeting_details = fields.Char(string="会议详情")
|
||||
job_id = fields.Many2one(related='employee_id.job_id', string="岗位")
|
||||
|
||||
@@ -23,4 +23,9 @@
|
||||
<field name="model_id" ref="model_issue_library"/>
|
||||
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
<record model="ir.rule" id="issue_approval_rule">
|
||||
<field name="name">议题审批多公司</field>
|
||||
<field name="model_id" ref="model_issue_approval"/>
|
||||
<field name="domain_force">[('company_id', 'in', company_ids)]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -41,6 +41,7 @@
|
||||
</div>
|
||||
<group string="审批事项">
|
||||
<field name="name" required="1"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="issue_text"/>
|
||||
<field name="work_end" invisible="1"/>
|
||||
<field name="documents_ids" widget="preview_many2many"/>
|
||||
|
||||
Reference in New Issue
Block a user