Commit Graph

193 Commits

Author SHA1 Message Date
Olivier Dony 3e74579982 [FIX] ir.model: fix incorrect translate call: _()
bzr revid: odo@openerp.com-20120208004124-2nhcwrcc7js6q04s
2012-02-08 01:41:24 +01:00
Vo Minh Thu 1ab6f8883c [IMP] logging: _logger.warn() replaced by _logger.warning().
bzr revid: vmt@openerp.com-20120202092634-pylu3098p5c0mays
2012-02-02 10:26:34 +01:00
Vo Minh Thu f5db1d10ec [IMP] openerp.addons.base: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124114730-24m0ftu1wbowg8a0
2012-01-24 12:47:30 +01:00
Olivier Dony bdce754108 [IMP] cleanup deprecated method=True param for function fields
bzr revid: odo@openerp.com-20120104133027-oaydmngk2dfc22mk
2012-01-04 14:30:27 +01:00
Olivier Dony 482aee1951 [IMP] fields.sparse: custom sparse field creation now working + handle deleted resources properly
bzr revid: odo@openerp.com-20111222182405-425rzyl6idg9aocu
2011-12-22 19:24:05 +01:00
Olivier Dony d925235e62 [MERGE] sync with trunk
bzr revid: odo@openerp.com-20111222102555-bydsozbdu6urkj31
2011-12-22 11:25:55 +01:00
Olivier Dony 3bf3279f25 [MERGE] Implementation of sparse field (to review), by Sebastien Beau, Akretion
bzr revid: odo@openerp.com-20111116172525-rmri79n9hpf2plwg
2011-11-16 18:25:25 +01:00
Numerigraphe - Lionel Sausin 9ed5cbb24c [FIX] unmutable defaults in base addons.
bzr revid: ls@numerigraphe.fr-20111107151949-n9prrufvqe3ohz18
2011-11-07 16:19:49 +01:00
Olivier Dony 9d916e684e [FIX] ir_model.name_search: was incorrectly relying on name_search implementation details
As a result, it had been broken by a recent change in the implementation
of Model.name_search().

bzr revid: odo@openerp.com-20111017133702-mppmb8w54n6z23ck
2011-10-17 15:37:02 +02:00
Olivier Dony 462f808500 [IMP] ir.model.data: sanity check to help prevent external IDs conflict between models
bzr revid: odo@openerp.com-20111013163316-gjct0pyrxfz9bm45
2011-10-13 18:33:16 +02:00
Olivier Dony 32b50ddca0 [FIX] ir.model: typo - ir.model.model is the model `identifier`
bzr revid: odo@openerp.com-20110923154514-8dzodtebfik892g3
2011-09-23 17:45:14 +02:00
sebastien beau 4a8c48b4b1 [FIX] fix bug when updating a field. The support of renaming a field or changing the storing system will be done later, I not sure that I will have the time to implement it for 6.1. At least I will propose a new merge for 6.2
bzr revid: sebastien.beau@akretion.com.br-20110923112618-vq44f15cpcvxozxi
2011-09-23 13:26:18 +02:00
Olivier Dony 0d3085d14f [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110922154155-jq811w768d9zfgim
2011-09-22 17:41:55 +02:00
sebastien beau b243c0567c [REF] ir_model_field replace the serialisation_field by serialization_field_id
change request in base.sql as a new field is created in ir_model_fields

bzr revid: sebastien.beau@akretion.com.br-20110920170707-2wmfs1sg37hgvbl1
2011-09-20 19:07:07 +02:00
Olivier Dony 8c5cb638b9 [MERGE] enforce unique `key` attribute for res.currency, ir.model, res.company
For res.company the constraint is made of 2 parts:
 - one normal unique constraint (name,company_id) to catch
   most cases and define the user error message
 - one additional unique index to enforce the unique currency
   name even for multiple entries with NULL company_id, not
   caught by the constraint. The index is named with the 
   constraint name as prefix, in order to automatically
   share the user error message

Also, cleanup up the res.currency views a bit, and improved
field labels in ir.model to make them easier to understand.

lp bug: https://launchpad.net/bugs/789019 fixed

bzr revid: odo@openerp.com-20110919144821-708avl7t9q7g8vpr
2011-09-19 16:48:21 +02:00
sebastien beau 29297ed841 [IMP] add the posibility to create sparse field dynamically
bzr revid: sebastien.beau@akretion.com.br-20110917183535-idzw9wg340gywduy
2011-09-17 20:35:35 +02:00
Olivier Dony 967373ede9 [FIX] ir.model.data: revert previous context patch - unsupported on cached methods
bzr revid: odo@openerp.com-20110915102411-aedcd7wi0min2rgd
2011-09-15 12:24:11 +02:00
Olivier Dony 1a983823f5 [IMP] ir.model.data: better message + support optional context
bzr revid: odo@openerp.com-20110915094055-njeenaf871akzzgl
2011-09-15 11:40:55 +02:00
Olivier Dony eab6a77a26 [IMP] ir.model.data: usability - rename `XML ID` -> `External ID`
bzr revid: odo@openerp.com-20110906075711-lev8g5tkfhc9j3c1
2011-09-06 09:57:11 +02:00
Vo Minh Thu b8a633e578 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20110831091325-t5gfm57tmkr0fbee
2011-08-31 11:13:25 +02:00
Antony Lesuisse 7a52778235 [IMP] ir.model.data unlink clear full cache
bzr revid: al@openerp.com-20110824214843-c75b3jl1fad0mv5a
2011-08-24 23:48:43 +02:00
Antony Lesuisse 8c0fb375b4 [FIX] ir.model clear_cache use self
bzr revid: al@openerp.com-20110824214416-9eby8h7mnqmlr8a3
2011-08-24 23:44:16 +02:00
Antony Lesuisse fd83621463 [MERGE] trunk
bzr revid: al@openerp.com-20110824160936-ej26wcvgvku3lkm7
2011-08-24 18:09:36 +02:00
Vo Minh Thu 51117db344 [REF] osv: replace isinstance(m,osv_memory) by m.is_transient().
bzr revid: vmt@openerp.com-20110816095755-2g5cblolcvchtewx
2011-08-16 11:57:55 +02:00
Vo Minh Thu 9964cd1d84 [REF] osv: previous diff makes unneccessary one of makeInstance/createInstance.
bzr revid: vmt@openerp.com-20110816074431-v16wfzcy55ojkhwi
2011-08-16 09:44:31 +02:00
Nimesh (Open ERP) a5a07e4993 Add missing unique keys
lp bug: https://launchpad.net/bugs/789019 fixed

bzr revid: nco@tinyerp.com-20110726132137-h8go2l62xkn8pdme
2011-07-26 18:51:37 +05:30
Olivier Dony 301497c543 [IMP] lint cleanup
bzr revid: odo@openerp.com-20110624133335-jf5kg6dh9kgxw2dg
2011-06-24 15:33:35 +02:00
Olivier Dony 60cbf9bf14 [MERGE] sync with trunk
bzr revid: odo@openerp.com-20110624102631-kiy8j2d1fc7heeco
2011-06-24 12:26:31 +02:00
Vo Minh Thu 0e6668a391 [MERGE] ir_model_data unlinking does not use _unlink anymore, clears caches.
bzr revid: vmt@openerp.com-20110622135344-i4u23z22binbq8h1
2011-06-22 15:53:44 +02:00
Antony Lesuisse 970b19b8b4 [IMP] new tools.cache cleaner, 10% speedup and more to come...
bzr revid: al@openerp.com-20110608030330-d0dsv2k6n0w3lyd5
2011-06-08 05:03:30 +02:00
Olivier Dony bae7ef7732 [MERGE] merged with latest trunk
bzr revid: odo@openerp.com-20110531132023-or3mm8ccgbh8qmwa
2011-05-31 15:20:23 +02:00
Olivier Dony 89e66c498d [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110531103720-mas6phcnb22qj4p2
2011-05-31 12:37:20 +02:00
Olivier Dony b96c79147f [IMP] ir.model.data: remove obsolete _unlink() and unlink_mark, and their references
Now all deletions in ir.model.data are automatically handled by ORM 
during the regular call to orm.unlink(). No need for any manual care.

bzr revid: odo@openerp.com-20110531092426-ehvzf3dw6urqsdov
2011-05-31 11:24:26 +02:00
Vo Minh Thu 3fa8c6beb7 [FIX] osv/ir_model: forgot to remove the module arg in ir_model.
bzr revid: vmt@openerp.com-20110527124051-hqc566wumejw4u1s
2011-05-27 14:40:51 +02:00
Olivier Dony 82b215c583 [FIX] ir.model.data: add missing return statement, would cause marshalling errors in XMLRPC
bzr revid: odo@openerp.com-20110520084828-fre96mfaocmynmtb
2011-05-20 10:48:28 +02:00
Vo Minh Thu aa554efa57 [REF] ir.ir_{set,get,del}: removed openerp.ir:
- the three functions provided in openerp.ir are simple wrappers around ir_values
- it is easier to directly use ir_values than to keep this module around.

bzr revid: vmt@openerp.com-20110519122752-s3wwq4pwl8wlbori
2011-05-19 14:27:52 +02:00
odo@tinyerp.com 3b4e3bdac6 [FIX] solve cache problem when unlink ir.model.data
bzr revid: tfr@openerp.com-20110512100038-hng80ug44afq8fr7
2011-05-12 12:00:38 +02:00
Olivier Dony 2ad705317c [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110408203540-amjsn89g4drl8ojk
2011-04-08 22:35:40 +02:00
Vo Minh Thu a0c1363fd6 [MERGE] merged 6.0.
bzr revid: vmt@openerp.com-20110406104718-cdcyq74rltf102sa
2011-04-06 12:47:18 +02:00
Olivier Dony ac154f2a92 [MERGE] merged latest trunk
bzr revid: odo@openerp.com-20110329114055-3q35xcpq1ndm2bhg
2011-03-29 13:40:55 +02:00
Olivier Dony c39f1cca46 [FIX] orm,ir.model: add eval of domain for relationship fields
Without this, it has become impossible to add one2many fields
as custom fields, because the domain string is not evaluated

bzr revid: odo@openerp.com-20110329113824-5ca5bvp1awzies5u
2011-03-29 13:38:24 +02:00
Olivier Dony 6a46a15185 [IMP] ir.model.access: split method for generating the list of groups that have a given access right
This is useful when modules later need to override it, for example when adding
hidden groups that should not be mentioned there (this is what the share module
does).

bzr revid: odo@openerp.com-20110324111427-puz4jtrem9ceibxf
2011-03-24 12:14:27 +01:00
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00