<?xml version="1.0" encoding="utf-8"?>
<odoo>

    <record id="except_no_project_id" model="exception.rule">
        <field name="name">No Project Id on task</field>
        <field name="description">No Project Id on task</field>
        <field name="sequence">50</field>
        <field name="model">project.task</field>
        <field name="code">if not task.project_id.name: failed=True</field>
        <field name="active" eval="False"/>
  </record>

</odoo>
