[IMP] account_exception: back to detedt error on post

H11044
This commit is contained in:
Jorge Che
2022-09-30 21:06:40 +00:00
parent 78fa2aec94
commit c0a1c1af4b
4 changed files with 13 additions and 33 deletions

View File

@@ -10,13 +10,4 @@
<field name="active" eval="True"/>
</record>
<record id="except_no_phone_on_post" model="exception.rule">
<field name="name">No phone when posting</field>
<field name="description">No phone when posting</field>
<field name="sequence">50</field>
<field name="model">account.move</field>
<field name="code">failed = journal_entry._context.get('newState') == 'posted' and journal_entry.move_type == 'out_invoice' and not journal_entry.partner_id.phone</field>
<field name="active" eval="True"/>
</record>
</odoo>