mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[WIP] project_acceptance: refactor the last changes by percy
H11043
This commit is contained in:
@@ -15,12 +15,11 @@
|
||||
'data/mail_template_data.xml',
|
||||
# 'report/project_report.xml',
|
||||
# 'report/project_report_template.xml',
|
||||
# 'security/project_acceptance_security.xml',
|
||||
'security/project_acceptance_security.xml',
|
||||
'views/project_portal_templates.xml',
|
||||
'views/project_views.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/project_exception_demo.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': False,
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="except_no_project_id" model="exception.rule">
|
||||
<field name="name">Task Acceptance is Blank</field>
|
||||
<field name="description">When task stage changes and requires acceptance and task acceptance is blank</field>
|
||||
<field name="sequence">50</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="code">if not task.task_acceptance and task.stage_id.requires_acceptance: failed=True</field>
|
||||
<field name="active" eval="False"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
@@ -2,17 +2,13 @@
|
||||
<!-- <odoo noupdate="1"> -->
|
||||
<odoo>
|
||||
|
||||
<record id="task_acceptance_rule_" model="exception.rule">
|
||||
<field name="name">Task Acceptance Exception Rule</field>
|
||||
<field name="description">Task Acceptance Exception Rule</field>
|
||||
<record id="except_no_project_id" model="exception.rule">
|
||||
<field name="name">Task Acceptance is Blank</field>
|
||||
<field name="description">When task stage changes and requires acceptance and task acceptance is blank</field>
|
||||
<field name="sequence">50</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="code">
|
||||
<!-- if task.stage_id.name == 'Accept Required' and task.task_acceptance == False: failed=True -->
|
||||
</field>
|
||||
<field name="code">if not task.task_acceptance and task.stage_id.requires_acceptance: failed=True</field>
|
||||
<field name="active" eval="False"/>
|
||||
<!-- if task.stage_id.name == 'In progress' and task.task_acceptance == False: failed=True -->
|
||||
<!-- stage_id == 'Accept Required' -->
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user