Skip to content

Commit

Permalink
Merge pull request #2845 from ForgeFlow/14.0-mig-sale_management
Browse files Browse the repository at this point in the history
[14.0][OU-ADD] sale_management
  • Loading branch information
pedrobaeza authored Jan 2, 2022
2 parents 7ca426c + b06f976 commit 9afde00
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docsource/modules130-140.rst
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ Module coverage 13.0 -> 14.0
+--------------------------------------------+-------------------------------------------------+
|sale_expense | |
+--------------------------------------------+-------------------------------------------------+
|sale_management | |
|sale_management | Done |
+--------------------------------------------+-------------------------------------------------+
|sale_margin | |
+--------------------------------------------+-------------------------------------------------+
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<odoo>
<record id="sale_order_template_rule_company" model="ir.rule">
<!-- <record id="sale_order_template_rule_company" model="ir.rule">
<field name="global"/>
</record>
</record> -->
</odoo>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.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, "sale_management", "14.0.1.0/noupdate_changes.xml")
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2021 ForgeFlow S.L. <https://www.forgeflow.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.set_xml_ids_noupdate_value(
env, "sale_management", ["sale_order_template_rule_company"], True
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---Models in module 'sale_management'---
---Fields in module 'sale_management'---
sale_management / res.company / sale_order_template_id (many2one): NEW relation: sale.order.template
# NOTHING TO DO: new feature

sale_management / sale.order.template.line / discount (float) : DEL
sale_management / sale.order.template.line / price_unit (float) : DEL required
sale_management / sale.order.template.option / discount (float) : DEL
sale_management / sale.order.template.option / price_unit (float) : DEL required
# NOTHING TO DO: obsolete

---XML records in module 'sale_management'---
NEW digest.tip: sale_management.digest_tip_sale1_management_0 (noupdate)
NEW digest.tip: sale_management.digest_tip_sale_management_1 (noupdate)
# NOTHING TO DO

ir.rule: sale_management.sale_order_template_rule_company (noupdate) (noupdate switched)
# DONE: pre-migration: switched noupdate

0 comments on commit 9afde00

Please sign in to comment.