[MOV] rma: from Hibou Suite Enterprise for 13.0

This commit is contained in:
Jared Kipe
2020-07-03 08:53:24 -07:00
parent 78da77ab55
commit 9afed572a2
24 changed files with 1936 additions and 0 deletions

View 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
''')