Commit Graph

193 Commits

Author SHA1 Message Date
Xavier Morel 3ee178ab2c [FIX] unnecessary backslashes
bzr revid: xmo@openerp.com-20121214132113-1ofmm5x0ua3l2q5d
2012-12-14 14:21:13 +01:00
Xavier Morel 91f441d0cd [FIX] mutable default argument values
bzr revid: xmo@openerp.com-20121214131720-jll2i2y0ph7aexox
2012-12-14 14:17:20 +01:00
Xavier Morel 1954c7ae2b [FIX] unresolved reference: 'model' not available inside test body if generator used
bzr revid: xmo@openerp.com-20121214130507-qc1fqzbdttb2a0n2
2012-12-14 14:05:07 +01:00
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Vo Minh Thu a1e2fdb69c [MERGE] fix the serialized field domain in the model view.
bzr revid: vmt@openerp.com-20121204150004-lq8t7qgeimeskysf
2012-12-04 16:00:04 +01:00
Olivier Dony 7f5ad72429 [MERGE] Forward-port 6.1 bugfixes up to rev. 4307
rev.4307 = rev-id launchpad_translations_on_behalf_of_openerp-20121125065030-g5if5pybr61la4yj

bzr revid: odo@openerp.com-20121126160320-t2suuik6lhk6wl0x
bzr revid: odo@openerp.com-20121126161836-mv8yymzgbnmif4ve
bzr revid: odo@openerp.com-20121126162023-ejvsapwouyudw6c6
bzr revid: odo@openerp.com-20121126181527-d4yx15372bis77qj
2012-11-26 19:15:27 +01:00
Xavier Morel 4a4fc38d5e [FIX] nuke ir.model.data caches before starting imports
Otherwise a previous validation (or 2) will poison the cache and the
import itself will fail even though the validation succeeeded (and
importing with no validation would have succeeded), as the orm cache
doesn't take DB rollbacks in account.

bzr revid: xmo@openerp.com-20121109113951-p3qgg6m5g7poay5e
2012-11-09 12:39:51 +01:00
Xavier Morel 5bd939f0ac [REM] useless intermediate lambdas in default values
bzr revid: xmo@openerp.com-20121102094705-6vcutz0bv4dc0jkl
2012-11-02 10:47:05 +01:00
Antony Lesuisse 8fa8551f01 [FIX] cleanup ir.xml mess, ir.ui.view name is now optional in xml files
bzr revid: al@openerp.com-20121013120924-xix9cbozm8kda7rj
2012-10-13 14:09:24 +02:00
Raphael Collet 5a971eca90 [FIX] ir: small fix to handle missing models when upgrading
bzr revid: rco@openerp.com-20121005102003-16vbr0aive2mbtid
2012-10-05 12:20:03 +02:00
Fabien Pinckaers f6ff157ca5 [MERGE] active of ACLs, courtesy of akretion
bzr revid: fp@tinyerp.com-20120929114236-lru7p4ibuclbn5nr
2012-09-29 13:42:36 +02:00
Vo Minh Thu 0b464f0882 [FIX] custom models: avoid calling twice __init__, use a correct _rec_name (calling twice __init__ caused the _rec_name to be `name` which does not exist on a custom model, and caused the assert on the _rec_name to fail.
bzr revid: vmt@openerp.com-20120824104242-wa5jq8h47im79ayd
2012-08-24 12:42:42 +02:00
Vo Minh Thu 33e9e66f71 [FIX] uninstall: pass IDs instead of names to _module_data_uninstall().
bzr revid: vmt@openerp.com-20120823161008-is5xqfe4et8xx51k
2012-08-23 18:10:08 +02:00
Xavier Morel 76f885299f [IMP] code style improvements
* Remove unused variables
* Simplify dict.get call in conditionals (default is None)
* Simplify dict.update calls (use kwargs)
* Merge dict.copy() with dict.update() as dict()
* Use isinstance instead of type() equality tests
* Simplify deeply nested code: merge conditionals and remove useless
  conditional, use dict.iteritems()
* Log traceback in exception handler logging

bzr revid: xmo@openerp.com-20120806071249-heh32pi1v0qd3m2j
2012-08-06 09:12:49 +02:00
Alexis de Lattre c28e975ee7 [IMP] add an 'active' field on ir.model.access and ir.rule objects
bzr revid: alexis@via.ecp.fr-20120713173734-2m7496qzm82gko5j
2012-07-13 19:37:34 +02:00
Sanjay Gohel (Open ERP) 6934080a3c [IMP]rename translate into translateble in ir model
bzr revid: sgo@tinyerp.com-20120703065321-atmoxi4i262jeayq
2012-07-03 12:23:21 +05:30
DBR (OpenERP) 3ca22fe02b [Merge]with :lp:openobject-server
bzr revid: dbr@tinyerp.com-20120629061344-jpncsl5q2p9kk1td
bzr revid: dbr@tinyerp.com-20120702101037-ffm5ac0ct3xudyjm
2012-07-02 15:40:37 +05:30
Hardik 350159c394 [IMP]Technical Database Structure Models :Form View Improved
bzr revid: hsa@tinyerp.com-20120628070358-djd63wemuc7x3ei9
2012-06-28 12:33:58 +05:30
Antony Lesuisse 453a1350fe [MERGE] trunk
bzr revid: vmt@openerp.com-20120620122005-2rghps6qjjkozt3n
bzr revid: al@openerp.com-20120627103900-0kgtskgipdazmgy9
2012-06-27 12:39:00 +02:00
Fabien Pinckaers a139c6fc6c [IMP] clean UI for ir.model.data form and tree view
bzr revid: fp@tinyerp.com-20120622141222-ddizks1sz66nqxgw
2012-06-22 16:12:22 +02:00
Vo Minh Thu 575e234cd4 [FIX] res.partner.category: the relation table name was manually chosen, which breaks under _inherit, so we use the automatic one.
bzr revid: vmt@openerp.com-20120619151626-2xho611icmq7e1ky
2012-06-19 17:16:26 +02:00
Vo Minh Thu 877ec2d7a8 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120619132718-ag1j3itm69u8h419
2012-06-19 15:27:18 +02:00
Olivier Dony 34965058ec [IMP] access rights: improve error messages for ACLs and record rules
bzr revid: odo@openerp.com-20120615153414-w4p4iczhl6lli50u
2012-06-15 17:34:14 +02:00
Vo Minh Thu eadd5e0a0a [IMP] uninstall: use a dedicated table for many2many relationships instead of overlaoding ir.model.data.
bzr revid: vmt@openerp.com-20120601153449-uj2sl7qjzz3s7xnj
2012-06-01 17:34:49 +02:00
Vo Minh Thu d790650bfb [IMP] uninstall: use dedicated table instead of overloading ir.model.data.
bzr revid: vmt@openerp.com-20120601131414-880vmpctmjfxl84f
2012-06-01 15:14:14 +02:00
Purnendu Singh (OpenERP) b26f2b5790 [MERGE] merge with mma branch
bzr revid: psi@tinyerp.com-20120424062906-b8wi1xwj9vkx86gt
2012-04-24 11:59:06 +05:30
Mayur Maheshwari (OpenERP) 6f2b8821e3 [IMP]all: Improve all typos
bzr revid: mma@tinyerp.com-20120424061128-1hy6izu39i56wvwb
2012-04-24 11:41:28 +05:30
Thibault Delavallée 77a569df69 [DOC] Added some comments.
bzr revid: tde@openerp.com-20120406081726-uusbqse1ty7o2yet
2012-04-06 10:17:26 +02:00
Thibault Delavallée ecad81b881 [IMP] Added a variable in context for install mode
bzr revid: tde@openerp.com-20120403074735-6gv0d64xb6dq7fzu
2012-04-03 09:47:35 +02:00
Thibault Delavallée 5959157cc5 [REM] Removed res.log feature in ORM. However, the res.log table stays, because it is still used notably in publisher_warranty, that must be checked to see how it should be updated with OpenChatter.
bzr revid: tde@openerp.com-20120402114746-unxkhxutivx2hp7f
2012-04-02 13:47:46 +02:00
Olivier Dony 8b100dd1bc [IMP] ir.model: cleanup/de-duplicate code
bzr revid: odo@openerp.com-20120331212515-qoic9kaysswurxnf
2012-03-31 23:25:15 +02:00
Olivier Dony 0904700aaa [IMP] users,ir.model: cleanup - ondelete does not exist on m2m + rem old comment
bzr revid: odo@openerp.com-20120331203710-k2w8txhz2p9njj0d
2012-03-31 22:37:10 +02:00
Olivier Dony f2272f6ecc [IMP] ir.model: avoid name clash between dummy vars and translation function _()
bzr revid: odo@openerp.com-20120331013455-4wt4utj470gyrtmd
2012-03-31 03:34:55 +02:00
Olivier Dony 74ed36e416 [IMP] orm,ir.model: improve registration and deletion of schema ext_ids
Also handle the very common cases of inheriting classes
that must *not* trigger deletion of the m2m tables and
constraints of their parent classes!

bzr revid: odo@openerp.com-20120331004215-413lcxaxvg0u6oxw
2012-03-31 02:42:15 +02:00
Olivier Dony 5f4b3c9bd3 [IMP] module,ir.model: improve name choices
bzr revid: odo@openerp.com-20120330214948-xnmbqugke1o1j3uz
2012-03-30 23:49:48 +02:00
Olivier Dony eb9b0021ff [IMP] Move uninstall behavior in modules.loading where it belongs
bzr revid: odo@openerp.com-20120330163422-jkatnkpw0cl8hd8t
2012-03-30 18:34:22 +02:00
Olivier Dony 8bd0cf42f3 [IMP] ir.model: safeguards to prevent dropping vital data
bzr revid: odo@openerp.com-20120326231829-6y8nsog1pdtbmaqt
2012-03-27 01:18:29 +02:00
olt@tinyerp.com 775a3bca89 [FIX] fixes AttributeError NoneType object has no attribute is_transient (lp:908875)
lp bug: https://launchpad.net/bugs/908875 fixed

bzr revid: olt@tinyerp.com-20120323095511-3uswje6nqnzciqtm
2012-03-23 10:55:11 +01:00
Olivier Dony 0102e40253 [IMP] ir.model: lint cleanup
bzr revid: odo@openerp.com-20120321151523-vy01phnlz1zinldo
2012-03-21 16:15:23 +01:00
Atul Patel (OpenERP) 258722cc1c [MERGE]: Merge with lp:openobject-server
bzr revid: atp@tinyerp.com-20120316042909-gb2e5cmrilyyhsef
bzr revid: atp@tinyerp.com-20120320050251-bgk9xhsfmb1fws1p
2012-03-20 10:32:51 +05:30
Atul Patel (OpenERP) 7cf78f08db [FIX]: FIX query groupby problem for string
bzr revid: atp@tinyerp.com-20120312084217-jixwo97b30qht158
2012-03-12 14:12:17 +05:30
Atul Patel (OpenERP) 4d3849b108 [FIX]: Minor fix for null value in fetchall
bzr revid: atp@tinyerp.com-20120312070445-t9u9dowz5j2mhzmd
2012-03-12 12:34:45 +05:30
Atul Patel (OpenERP) 180a23c7cc [FIX]: uninstall module.
Remove foreign key references.
Remove sql constraint .
Remove workflow activity and transition based on deleted cascade.
Drop ir model fields columns and drop table.

bzr revid: atp@tinyerp.com-20120309124753-c4yzeoij5p2fmhgg
2012-03-09 18:17:53 +05:30
Atul Patel (OpenERP) 9d8b51afc3 [FIX]: remove unused code
bzr revid: atp@tinyerp.com-20120301041444-jksnjci0ozaly28a
2012-03-01 09:44:44 +05:30
Atul Patel (OpenERP) 3465869df7 [FIX]: Remove workflow activity and drop constraint during uninstalling module.
bzr revid: atp@tinyerp.com-20120229135343-g0v04jb5nc723w9q
2012-02-29 19:23:43 +05:30
Olivier Dony a43f7940dc [FIX] ir.model: workaround for broken Python 2.6 implementations
Apparently on some RedHat/CentOS version certain
Python 2.6 version do not support more than
4 nested levels of boolean filters.

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

bzr revid: odo@openerp.com-20120227100953-2wgr0l621tpu1x4x
2012-02-27 11:09:53 +01:00
Raphael Collet ddf38fa38b [FIX] revert rev 4018 (revid:rco@openerp.com-20120208162334-ziccpi3yczp3r5z5)
bzr revid: rco@openerp.com-20120209083828-hoojows5zsg0xrif
2012-02-09 09:38:28 +01:00
Antony Lesuisse 94145b2982 [FIX] ir.model filter out link that occurs when using the ir.model web form view
lp bug: https://launchpad.net/bugs/912769 fixed

bzr revid: al@openerp.com-20120208221706-o45t6h3zgmz3ezny
2012-02-08 23:17:06 +01:00
Raphael Collet 4027d619eb [FIX] ir_model: do not call is_transient on None
bzr revid: rco@openerp.com-20120208162334-ziccpi3yczp3r5z5
2012-02-08 17:23:34 +01:00
Vo Minh Thu 876c61b052 [MERGE] merged logging changes: use a top-level `openerp` name space. Similar changes for the addons will be done after 6.1.
bzr revid: vmt@openerp.com-20120208105913-habqxas406osaz9z
2012-02-08 11:59:13 +01:00
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