Files
odoo_source/addons/project/wizard/project_delete_wizard_views.xml
T
Kevin Baptiste 58a90952ed [IMP] project: improve usability (back2basics)
* Reword tasks in the sample project
 * Add a "Create and Edit" button on the project creation modal
 * Open the file chooser in "Set a cover image" if there are no images
   set
 * Correclty display the kanban state button on archived task
 * Add a button to list the tasks when deleting a project
 * Open file chooser for cover image: Automatically open the file chooser
   when setting a cover image on a task if there are no attachments to chose
   from.

closes odoo/odoo#47306

Taskid: 2209133
Related: odoo/enterprise#9141
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-04-08 14:29:50 +00:00

29 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="project_delete_wizard_form" model="ir.ui.view">
<field name="name">Delete Project</field>
<field name="model">project.delete.wizard</field>
<field name="arch" type="xml">
<form string="Delete Project">
<field name="task_count" invisible="1" />
<group attrs="{'invisible': [('task_count', '=', 0)]}">
<span>You cannot delete a project containing tasks. You can either archive it or first delete all of its tasks.</span>
</group>
<group attrs="{'invisible': [('task_count', '>', 0)]}">
<span>Are you sure you want to delete this project ?</span>
</group>
<footer attrs="{'invisible': [('task_count', '=', 0)]}">
<button string="Archive project" type="object" name="action_archive" class="btn btn-primary" />
<button string="Discard" special="cancel" />
</footer>
<footer attrs="{'invisible': [('task_count', '>', 0)]}">
<button string="Ok" type="object" name="confirm_delete" class="btn btn-primary" />
<button string="Cancel" special="cancel" />
</footer>
</form>
</field>
</record>
</data>
</odoo>