mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MOV] rma: from Hibou Suite Enterprise for 13.0
This commit is contained in:
11
rma/migrations/13.0.1.2.0/post-migration.py
Normal file
11
rma/migrations/13.0.1.2.0/post-migration.py
Normal file
@@ -0,0 +1,11 @@
|
||||
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
||||
|
||||
def migrate(cr, installed_version):
|
||||
# Provide defaults for RMAs that were created before these fields existed.
|
||||
cr.execute('''
|
||||
UPDATE rma_rma as r
|
||||
SET initial_in_picking_carrier_id = t.in_carrier_id ,
|
||||
initial_out_picking_carrier_id = t.out_carrier_id
|
||||
FROM rma_template as t
|
||||
WHERE r.template_id = t.id
|
||||
''')
|
||||
Reference in New Issue
Block a user