Commit Graph

78 Commits

Author SHA1 Message Date
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
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
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