Skip to content

Commit

Permalink
Merge PR #86 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
github-grap-bot committed Dec 19, 2023
2 parents 833049b + ef91804 commit 1826b54
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion joint_buying_base/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Joint Buying - Base",
"version": "12.0.5.0.4",
"version": "12.0.6.0.0",
"category": "GRAP - Logistics",
"author": "GRAP,La Jardinière,Hashbang",
"website": "https://github.com/grap/odoo-addons-logistics",
Expand Down
15 changes: 15 additions & 0 deletions joint_buying_base/migrations/12.0.6.0.0/end-migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import logging

from openupgradelib import openupgrade

_logger = logging.getLogger(__name__)


@openupgrade.migrate()
def migrate(env, version):
TransportRequest = env["joint.buying.transport.request"]
requests = TransportRequest.search([])
_logger.info(f"Recompute Origin field for {len(requests)} transport requests ...")
requests._compute_origin()
_logger.info(f"Recompute Tours for {len(requests)} transport requests ...")
requests.button_compute_tour()

0 comments on commit 1826b54

Please sign in to comment.