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

    <record id="except_no_phone" model="exception.rule">
        <field name="name">No phone</field>
        <field name="description">No phone number on customer</field>
        <field name="sequence">50</field>
        <field name="model">account.move</field>
        <field name="code">failed = self.move_type == 'out_invoice' and not self.partner_id.phone</field>
        <field name="active" eval="True"/>
    </record>

</odoo>
