Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
purchase_exception/migrations/12.0.1.0.1/noupdate_changes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 < 0: | ||
failed=True</field> | ||
</record> | ||
</odoo> |
10 changes: 10 additions & 0 deletions
10
purchase_exception/migrations/12.0.1.0.1/post-migration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |