Merge lp:~openerp-dev/openobject-server/6.0-bug-726592-ysa into lp:openobject-server/6.0
- 6.0-bug-726592-ysa
- Merge into 6.0
Status: | Merged |
---|---|
Merged at revision: | 3520 |
Proposed branch: | lp:~openerp-dev/openobject-server/6.0-bug-726592-ysa |
Merge into: | lp:openobject-server/6.0 |
Diff against target: |
27 lines (+8/-1) 1 file modified
bin/osv/fields.py (+8/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-server/6.0-bug-726592-ysa |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphael Collet (OpenERP) (community) | Approve | ||
Rifakat Husen (OpenERP) (community) | Needs Resubmitting | ||
Review via email: mp+64357@code.launchpad.net |
Commit message
Description of the change
- 3444. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Panos' branch for the fix of install_lang passing wrong format of model, it should be list rather than a string
- 3445. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3446. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3447. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3448. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Rifakat's branch for the fix of report headers not appearing for multicomapny environment
- 3449. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Panos' branch for the fix of the problem found by pyflakes
- 3450. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3451. By Jay Vora (Serpent Consulting Services)
-
[MERGE] fixes launchpad bug 780584: Field definition translate=Yes is not stored in ir.model.fields
- 3452. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3453. By Jay Vora (Serpent Consulting Services)
-
[FIX] Report : Removed the unnecessary Return of setLang()
- 3454. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3455. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3456. By Priyesh (OpenERP)
-
[MERGE] Merged IRA's branch for the fix of correction in address_get method and addition of active field in address (case:6198)
- 3457. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Anup's branch for the fix of record rule for allowing access to users of relevant groups only
- 3458. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3459. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3460. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged ILA's branch for the fix of correction in get_id() of ir_sequence to allow multi-company feature
- 3461. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3462. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3463. By Antony Lesuisse (OpenERP)
-
[FIX] res_currency typo
- 3464. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3465. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Rifakat's branch for the fix which stops the record rule for users/comapny getting updated on each update of base module
- 3466. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3467. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3468. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3469. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3470. By Priyesh (OpenERP)
-
[MERGE] Merged ADO's branch to fetch the correct values in Partner Labels report(case:16548)
- 3471. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3472. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3473. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3474. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3475. By Stephane Wirtel (OpenERP)
-
[RELEASE] OpenERP 6.0.3
- 3476. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3477. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3478. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3479. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3480. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3481. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Rifakat's branch to fix the problem of search with 'active' field when its in _inherit_fields
- 3482. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3483. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3484. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3485. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3486. By Husen Daudi <hda@hda-laptop>
-
merge ach branch issue 16889
- 3487. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3488. By Raphael Collet (OpenERP)
-
[MERGE] backport of revision 3391.4.1 from trunk, To fix Printscreen report Title translation
- 3489. By Raphael Collet (OpenERP)
-
[MERGE] translation import: source is not relevant in case of translation of record data (model)
- 3490. By Raphael Collet (OpenERP)
-
[MERGE] overwrite translation terms when updating modules from command line
- 3491. By Raphael Collet (OpenERP)
-
[MERGE] correct store computation of global field of ir.rule
- 3492. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3493. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3494. By Raphael Collet (OpenERP)
-
[MERGE] improve method exists() to handle list of ids
- 3495. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3496. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3497. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3498. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3499. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3500. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3501. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3502. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3503. By Jay Vora (Serpent Consulting Services)
-
[FIX] call to fields_get should always go with context attached
- 3504. By Jay Vora (Serpent Consulting Services)
-
[MERGE] Merged Rifakat's branch for the fix of domain and context over Accounting/
Customers/ Customers menu - 3505. By Raphael Collet (OpenERP)
-
[MERGE] opw 17657
- 3506. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3507. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3508. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3509. By Raphael Collet (OpenERP)
-
[MERGE] owp 17683
- 3510. By Raphael Collet (OpenERP)
-
[MERGE] opw 17601
- 3511. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3512. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3513. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3514. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3515. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3516. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3517. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3518. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
- 3519. By Launchpad Translations on behalf of openerp
-
Launchpad automatic translations update.
Raphael Collet (OpenERP) (rco-openerp) wrote : | # |
- 3520. By Rifakat Husen (OpenERP)
-
[FIX] fields.property: performed check with browse_record
Rifakat Husen (OpenERP) (rha-openerp) : | # |
Raphael Collet (OpenERP) (rco-openerp) wrote : | # |
Excellent!
Thanks,
Raphael
Preview Diff
1 | === modified file 'bin/osv/fields.py' | |||
2 | --- bin/osv/fields.py 2011-05-25 14:59:09 +0000 | |||
3 | +++ bin/osv/fields.py 2011-10-12 09:12:23 +0000 | |||
4 | @@ -38,6 +38,7 @@ | |||
5 | 38 | import xmlrpclib | 38 | import xmlrpclib |
6 | 39 | from psycopg2 import Binary | 39 | from psycopg2 import Binary |
7 | 40 | 40 | ||
8 | 41 | import osv | ||
9 | 41 | import netsvc | 42 | import netsvc |
10 | 42 | import tools | 43 | import tools |
11 | 43 | from tools.translate import _ | 44 | from tools.translate import _ |
12 | @@ -1030,8 +1031,14 @@ | |||
13 | 1030 | cr.execute('DELETE FROM ir_property WHERE id IN %s', (tuple(nids),)) | 1031 | cr.execute('DELETE FROM ir_property WHERE id IN %s', (tuple(nids),)) |
14 | 1031 | 1032 | ||
15 | 1032 | default_val = self._get_default(obj, cr, uid, prop_name, context) | 1033 | default_val = self._get_default(obj, cr, uid, prop_name, context) |
16 | 1034 | property_create = False | ||
17 | 1035 | if isinstance(default_val, osv.orm.browse_record): | ||
18 | 1036 | if default_val.id != id_val: | ||
19 | 1037 | property_create = True | ||
20 | 1038 | elif default_val != id_val: | ||
21 | 1039 | property_create = True | ||
22 | 1033 | 1040 | ||
24 | 1034 | if id_val is not default_val: | 1041 | if property_create: |
25 | 1035 | def_id = self._field_get(cr, uid, obj._name, prop_name) | 1042 | def_id = self._field_get(cr, uid, obj._name, prop_name) |
26 | 1036 | company = obj.pool.get('res.company') | 1043 | company = obj.pool.get('res.company') |
27 | 1037 | cid = company._company_default_get(cr, uid, obj._name, def_id, | 1044 | cid = company._company_default_get(cr, uid, obj._name, def_id, |
You should not access '_id' (fragile). The branch lp:~openerp-dev/openobject-server/trunk-bug-726592-ysa uses a better solution (isinstance(..., browse_record)).
Can you please modify the code, to align it on that branch?
Thanks,
Raphael