Merge lp:~serpent-consulting-services/openobject-extension/gekko-tek-995350 into lp:openobject-extension/oerp6.1-stable

Proposed by Kyle Waid
Status: Rejected
Rejected by: Sébastien BEAU - http://www.akretion.com
Proposed branch: lp:~serpent-consulting-services/openobject-extension/gekko-tek-995350
Merge into: lp:openobject-extension/oerp6.1-stable
Diff against target: 45 lines (+6/-3) (has conflicts)
2 files modified
base_external_referentials/external_osv.py (+3/-3)
base_external_referentials/report.py (+3/-0)
Text conflict in base_external_referentials/report.py
To merge this branch: bzr merge lp:~serpent-consulting-services/openobject-extension/gekko-tek-995350
Reviewer Review Type Date Requested Status
Sébastien BEAU - http://www.akretion.com Pending
Review via email: mp+106494@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Sorry the problem was not here.
This functions have correct args.
I fix the bug in rev 638 of magentoerpconnect.

Thanks for helping us.

PS : take care about >>>TREE and <<<MERGE ;)

Unmerged revisions

291. By Serpent Consulting Services

[FIX] fix some issue releated to referential_id field.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'base_external_referentials/external_osv.py'
2--- base_external_referentials/external_osv.py 2012-05-12 23:48:24 +0000
3+++ base_external_referentials/external_osv.py 2012-05-19 17:02:19 +0000
4@@ -157,7 +157,7 @@
5 def get_or_create_extid(self, cr, uid, external_session, openerp_id, context=None):
6 """Returns the external id of a resource by its OpenERP id.
7 Returns False if the resource id does not exists."""
8- res = self.get_extid(cr, uid, openerp_id, external_session.referential_id.id, context=context)
9+ res = self.get_extid(cr, uid, openerp_id, external_session, context=context)
10 if res is not False:
11 return res
12 else:
13@@ -560,7 +560,7 @@
14 if self.oe_update(cr, uid, external_session, existing_rec_id, vals, resource, defaults=defaults, context=context):
15 written = True
16 else:
17- existing_rec_id = self.oe_create(cr, uid, external_session, vals, resource, defaults, context=context)
18+ existing_rec_id = self.oe_create(cr, uid, external_session, vals, resource, defaults, context)
19 created = True
20
21 if external_id_ok:
22@@ -855,7 +855,7 @@
23 @extend(osv.osv)
24 def _export_one_resource(self, cr, uid, external_session, resource_id, context=None):
25 defaults = self._get_default_export_values(cr, uid, external_session, context=context)
26- mapping, mapping_id = self._init_mapping(cr, uid, external_session.referential_id.id, convertion_type='from_openerp_to_external', context=context)
27+ mapping, mapping_id = self._init_mapping(cr, uid, external_session, convertion_type='from_openerp_to_external', context=context)
28 langs = self.get_lang_to_export(cr, uid, external_session, context=context)
29 resource = self._get_oe_resources(cr, uid, external_session, [resource_id], langs=langs,
30 smart_export=False, last_exported_date=False,
31
32=== modified file 'base_external_referentials/report.py'
33--- base_external_referentials/report.py 2012-05-19 13:44:06 +0000
34+++ base_external_referentials/report.py 2012-05-19 17:02:19 +0000
35@@ -31,7 +31,10 @@
36 class external_report(osv.osv):
37 _name = 'external.report'
38 _description = 'External Report'
39+<<<<<<< TREE
40 _order = 'name desc'
41+=======
42+>>>>>>> MERGE-SOURCE
43
44
45 def _get_full_name(self, cr, uid, ids, name, arg, context=None):