Merge lp:~brendan-clune/openerp-connector-magento/openerp-connector-magento-region-fix into lp:~openerp-connector-core-editors/openerp-connector-magento/7.0

Proposed by Brendan Clune (Logic Supply)
Status: Merged
Merged at revision: 931
Proposed branch: lp:~brendan-clune/openerp-connector-magento/openerp-connector-magento-region-fix
Merge into: lp:~openerp-connector-core-editors/openerp-connector-magento/7.0
Diff against target: 11 lines (+1/-1)
1 file modified
magentoerpconnect/partner.py (+1/-1)
To merge this branch: bzr merge lp:~brendan-clune/openerp-connector-magento/openerp-connector-magento-region-fix
Reviewer Review Type Date Requested Status
Guewen Baconnier @ Camptocamp code review Approve
Review via email: mp+194709@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Thanks!

review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'magentoerpconnect/partner.py'
2--- magentoerpconnect/partner.py 2013-08-05 09:42:06 +0000
3+++ magentoerpconnect/partner.py 2013-11-11 15:47:49 +0000
4@@ -486,7 +486,7 @@
5 if not record.get('region'):
6 return
7 state_ids = self.session.search('res.country.state',
8- [('name', 'ilike', record['region'])])
9+ [('name', '=ilike', record['region'])])
10 if state_ids:
11 return {'state_id': state_ids[0]}
12