Skip to content

Commit

Permalink
Merge PR #726 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 15, 2019
2 parents 0094b64 + a89f69c commit d76622a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions purchase_exception/migrations/12.0.1.0.1/noupdate_changes.xml
@@ -0,0 +1,16 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="ir_cron_test_po_order_except" model="ir.cron" forcecreate="True">
<field name="code">model.test_all_draft_orders()</field>
</record>
<record id="po_excep_no_email" model="exception.rule">
<!-- <field name="rule_group"/>-->
<field name="code">if not self.partner_id.email:
failed=True</field>
</record>
<record id="pol_excep_qty_check" model="exception.rule">
<!-- <field name="rule_group"/>-->
<field name="code">if self.product_qty &lt; 0:
failed=True</field>
</record>
</odoo>
10 changes: 10 additions & 0 deletions purchase_exception/migrations/12.0.1.0.1/post-migration.py
@@ -0,0 +1,10 @@
# Copyright 2019 Eficent <http://www.eficent.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openupgradelib import openupgrade


@openupgrade.migrate()
def migrate(env, version):
openupgrade.load_data(
env.cr, 'purchase_exception',
'migrations/12.0.1.0.1/noupdate_changes.xml')

0 comments on commit d76622a

Please sign in to comment.