Skip to content

Commit

Permalink
[FIX] propagate_fields only for inserted partner
Browse files Browse the repository at this point in the history
  • Loading branch information
mourad-ehm committed Jun 14, 2016
1 parent 92cba3e commit b367c53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openerp/addons/base/migrations/7.0.1.3/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,8 @@ def process_address_type(cr, pool, fields, whereclause, args=None):
"supplier = parent.supplier "
"FROM res_partner parent "
"WHERE part.parent_id = parent.id "
" AND part.parent_id IS NOT NULL")
" AND part.parent_id IS NOT NULL"
" AND part.openupgrade_7_migrated_from_address_id IS NOT NULL")
# set_address_partner by mass update
openupgrade.logged_query(
cr, "\n"
Expand Down

0 comments on commit b367c53

Please sign in to comment.