Commit Graph

201 Commits

Author SHA1 Message Date
Vo Minh Thu 041a61c1b1 [REF] openerp.conf: new module
- see its docstring for its purpose
- otherwise empty for now

bzr revid: vmt@openerp.com-20110420102627-j5zbn1phuc0pmffk
2011-04-20 12:26:27 +02:00
Vo Minh Thu 4b3357652d [REF] osv_pool cleaning:
- removed unused variables (module_list, module_object_list, created)
  - removed unecessary call to del on a dictionary
  (as its element is replaced anyway)
  - added some comments

bzr revid: vmt@openerp.com-20110519085035-p9ohve0nfkudgrx5
2011-05-19 10:50:35 +02:00
Vo Minh Thu 67aa6c461a [REF] pooler: expose a delete_pool method, can be useful to debug memory leaks.
bzr revid: vmt@openerp.com-20110427092836-284bci0an48nopwc
2011-04-27 11:28:36 +02:00
Vo Minh Thu 4f163f727a [IMP] orm: check for object _name validity.
bzr revid: vmt@openerp.com-20110427090846-pxqkyk2y0p8sjb8v
2011-04-27 11:08:46 +02:00
Vo Minh Thu 2856d16912 [ADD] sql_db: show file/line where the cursor was closed
This will be printed along the error message whenever an attempt to use
a closed cursor is made (only in debug_sql log level).

bzr revid: vmt@openerp.com-20110422112417-dbeqq4qm59sr2wvt
2011-04-22 13:24:17 +02:00
Vo Minh Thu aaedb68331 [ADD]: dummy cache class replacement.
bzr revid: vmt@openerp.com-20110422100720-5ffk1tp944b53c7a
2011-04-22 12:07:20 +02:00
Vo Minh Thu a659d1fa8c [REF] netsvc: explicit Agent thread creation.
bzr revid: vmt@openerp.com-20110421155836-70da1nhpb38zqbls
2011-04-21 17:58:36 +02:00
Vo Minh Thu 7008aa3e0e [FIX] sql_db: connection pool created lazily.
- This is necessary to give a chance to change the config just after importing openerp.

bzr revid: vmt@openerp.com-20110421103125-3lv609wnu3vh2m4f
2011-04-21 12:31:25 +02:00
Vo Minh Thu 2356412aea [FIX] openerp.addons: corrected wrong import syntax.
bzr revid: vmt@openerp.com-20110420153741-scgftlguxqvopgur
2011-04-20 17:37:41 +02:00
Vo Minh Thu 545a438c03 [REF] openerp.modules
- for the moment it is a copy of openerp.addons

bzr revid: vmt@openerp.com-20110420152718-eok61oule6p2x58z
2011-04-20 17:27:18 +02:00
Vo Minh Thu 0e1186dd3d [REF] openerp.pooler/openerp.sql_db: cleaner dependencies:
- openerp.pooler no longer provides get_db_only, which is a provided by sql_db
- openerp.sql_db does not rely anymore on netsvc, which is goog as it was
making a circular import. The downside is that db_close callers have to clean
also the Agent themselves.

bzr revid: vmt@openerp.com-20110420141407-au0oanwjc0t15vy5
2011-04-20 16:14:07 +02:00
Vo Minh Thu f96d58c9c6 [REF] pooler: added some comments.
bzr revid: vmt@openerp.com-20110420072346-os10xhy9lnvposi2
2011-04-20 09:23:46 +02:00
Naresh (OpenERP) 6e516475ee [FIX]:editing shortcuts from client were not dispalying the changes
bzr revid: nch@tinyerp.com-20110420054947-t02qg7sm8g5vzcuf
2011-04-20 11:19:47 +05:30
Vo Minh Thu 7410d8e410 [REF] config: removed duplicated list of options
- the list is still reconstructed from the optparse options.

bzr revid: vmt@openerp.com-20110419134016-og6ye1hjrb0j52cl
2011-04-19 15:40:16 +02:00
AMP (OpenERP) 8cd3b96019 [FIX] Usability : Usability Improvement
bzr revid: amp@tinyerp.com-20110419131154-1ucsrn7wtpq83apg
2011-04-19 18:41:54 +05:30
Anup (OpenERP) da64dc059f [FIX] base : Now It's Possible to save languages that have code having size>5
bzr revid: ach@tinyerp.com-20110419090343-7h35qwblnfeotsg2
2011-04-19 14:33:43 +05:30
Vo Minh Thu 342f2047cf [REF] openerp-server: better imports.
bzr revid: vmt@openerp.com-20110418155733-gt8shgr0yilo20mw
2011-04-18 17:57:33 +02:00
Vo Minh Thu 0b42209314 [REF] osv.py: removed unused variable class_pool.
bzr revid: vmt@openerp.com-20110418134236-p5a1wikw10wtplvg
2011-04-18 15:42:36 +02:00
Vo Minh Thu c2a752321b [MERGE] merged Julien Thewys branch to disallow unrecognized command line parameters.
bzr revid: vmt@openerp.com-20110418131023-mza0x2yo075xj0qb
2011-04-18 15:10:23 +02:00
Vo Minh Thu ae0751f116 [MERGE] merged gpa branch to add supplier = 1 domain in partner_view.xml.
bzr revid: vmt@openerp.com-20110418124950-cmxfv5dnlmrpk268
2011-04-18 14:49:50 +02:00
AMP (OpenERP) 59ee56541c [FIX] base : Fixes the partner manager group problem
bzr revid: amp@tinyerp.com-20110414095231-jltmqb3i22z4s7i3
2011-04-14 15:22:31 +05:30
Ujjvala Collins (OpenERP) 2e138b0d0d [FIX] : Fixed partner label report bug.
bzr revid: uco@tinyerp.com-20110412045642-d2gpgoyzmi00glio
2011-04-12 10:26:42 +05:30
Olivier Dony 556f36b5d5 [FIX] ir.ui.menu: load web icons for all menus, not just top levels ones
This is useful for portal, where a subtree of the menus
is used as top-level menu for portal users.

bzr revid: odo@openerp.com-20110411211835-zw2kazf63ae4qrr1
2011-04-11 23:18:35 +02:00
Olivier Dony cf1a395cbf [FIX] base: corrected symbol for CFA currency added in previous revision
bzr revid: odo@openerp.com-20110411120908-4my154j6429jjjaq
2011-04-11 14:09:08 +02:00
Olivier Dony 3c6a1956d6 [MERGE] merged addition of CFA currency, courtesy of Tidiane Sy (BAAMTU)
bzr revid: odo@openerp.com-20110411114816-mz4t0h2rch1qjd72
2011-04-11 13:48:16 +02:00
Olivier Dony f59ac0d6b1 [MERGE] merged latest fixes from 6.0 - up to rev 3399
bzr revid: odo@openerp.com-20110411101327-dxkwvwstjf9xc58s
2011-04-11 12:13:27 +02:00
Tidiane Sy (Baamtu) b02cbab49f [IMP] add CFA currency and rate
bzr revid: tsy@baamtu.com-20110408142310-mas92mtjb4jupv8m
2011-04-08 16:23:10 +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 11e1097c61 [FIX] ir.actions: fixed and documented a bit the function field computing views for actions
The previous implementation had numerous flaws and edge cases where it would
not have any useful result. The new implementation is backwards compatible
with the valid combinations of view_id, view_modes and view_id.
A unique constraint was also added to make sure that it is not possible to
specify multiple views of the same type for the same action. This was never
used, but should be prevented completely so that clients can rely on this
fact. Also a little bit of documentation was added to explain what the field
is doing.

bzr revid: odo@openerp.com-20110401124852-r0i6cclc80acoegj
2011-04-01 14:48:52 +02:00
Raphael Collet edaae88606 add a page with submenus in edit_menu_access form
bzr revid: rco@openerp.com-20110330153321-bstnetdx7cg7q6ii
2011-03-30 17:33:21 +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 9effe4fa6d [IMP] tools: add "unquote" class for magic bare variables in context/domains
This is used to allow bare active_id variables in context
or domains of act_window tags. 
Note that previously this was done by replacing the active_id with
a active_id string, which required further trick on the client
side to perform the reverse operation.

bzr revid: odo@openerp.com-20110328075920-ljadcubezs9swli8
2011-03-28 09:59:20 +02:00
Vo Minh Thu 7766fcca62 [REF] renamed openerp-server.py to openerp-server.
bzr revid: vmt@openerp.com-20110324095012-a5joofz60zrhbit5
2011-03-24 10:50:12 +01:00
Vo Minh Thu d02ffafe30 [MERGE] merged the 6.0 branch.
bzr revid: vmt@openerp.com-20110322140841-6lt7ky1ohxbrgx68
2011-03-22 15:08:41 +01:00
Olivier Dony ad2967d350 [MERGE] merged fix for osm_memory.read() of m2o fields with name - pending addons fix
bzr revid: odo@openerp.com-20110315132628-uhhpf95b9iyin482
2011-03-15 14:26:28 +01:00
Vo Minh Thu 8fae3e7c6f [FIX] sql_db: use the config values later than at import time.
lp bug: https://launchpad.net/bugs/716715 fixed

bzr revid: vmt@openerp.com-20110308140449-5v883yms1z8dy23k
2011-03-08 15:04:49 +01:00
Vo Minh Thu dd1943c45e [MERGE] merge 6.0 branch.
bzr revid: vmt@openerp.com-20110303133011-758wfx7zompu5ugq
2011-03-03 14:30:11 +01:00
Vo Minh Thu b7740b4f84 [FIX] act_window access: corrected the access for normal users to read-only.
lp bug: https://launchpad.net/bugs/720277 fixed

bzr revid: vmt@openerp.com-20110223145335-d39xu9nyasz8gi2o
2011-02-23 15:53:35 +01:00
Olivier Dony 95de9e8cb4 [IMP] orm.fields_view_get: allow passing a view_id from a different model for creative inheritance
There are cases where several objects would like to use a single view, but
by default they cannot because a view belongs to only one model.
With this change, it becomes possible to do inheritance "by copy", reusing
a view from another model without having to redefine it, just by specifying
its view_id in the relevant actions. If the original view needs to be modified,
it is also possible to explicitly inherit the parent view from the other
model, and the effect will be what is expected: the child view can be
specified in an action, and will be the result of the inheritance applied
on the parent view; but on the other hande the parent view itself is
unaffected when used in the context of its own model.

bzr revid: odo@openerp.com-20110221172757-qepq5osjqgd9uf8x
2011-02-21 18:27:57 +01:00
Olivier Dony 2621b707e0 [MERGE] merged latest fixes from 6.0 branch up to rev 3348
Rev 3348 is odo@openerp.com-20110221101549-vp0ha2g91yl30cmk.

bzr revid: odo@openerp.com-20110221103235-6tdy5tpb6zvkbzs3
2011-02-21 11:32:35 +01:00
Olivier Dony e1d2a87fc9 [FIX] tools.config: expansion of user and path should work with multiple addons path too
lp bug: https://launchpad.net/bugs/716710 fixed

bzr revid: odo@openerp.com-20110214102914-98gdvyx5y4v2kysx
2011-02-14 11:29:14 +01:00
Olivier Ligot bafa90b716 [IMP] The command line option --i18n-overwrite can also be used when updating modules
bzr revid: olivier.ligot@groupes.be-20110209100845-ldgoxolfz98k3mnu
2011-02-09 11:08:45 +01:00
Julien Thewys 6a11b89e17 [FIX] ensures no illegitimate cli argument is silently discarded
This avoids an insidious behavior: when copy-pasting a command from a
Microsoft document to the cmd terminal, one might not see that a hyphen ('-')
preceding an option has been converted to a dash (u'\u2012') which is then
interpreted as a normal cli argument (i.e. not an option) and thus silently
discarded.

bzr revid: jth@openerp.com-20110209100735-jaschhlv3cfqjry5
2011-02-09 11:07:35 +01:00
Olivier Dony 14ebc46e3a [FIX] tools.translate: add missing imports after previous merge
bzr revid: odo@openerp.com-20110209090231-odqbf8leyurdh945
2011-02-09 10:02:31 +01:00
Olivier Dony d31260e8a8 [FIX] tools.config: override root_path in config, and avoid saving it
This should help avoid common issues with an obsolete root_path saved in
the config file. We also expand the path on-the-fly, and do the same for
addons_path.

bzr revid: odo@openerp.com-20110208170927-3kqk0c06qmxu2ko5
2011-02-08 18:09:27 +01:00
Olivier Dony cfc6d831df [MERGE] merged latest 6.0 fixes up to rev 3339
Revision 3339 = odo@openerp.com-20110208140924-0bgxqgt1oyrxwz3z

bzr revid: odo@openerp.com-20110208164923-u7mzknc0b3avb9i0
2011-02-08 17:49:23 +01:00
Vo Minh Thu 6713d57ab1 [MERGE] merge of the openerp python module branch.
bzr revid: vmt@openerp.com-20110208150149-x4vu09aj42ezma5a
2011-02-08 16:01:49 +01:00
Vo Minh Thu 3613935c53 [FIX] addons.__init__: make sure ad_paths is initialized before using it.
bzr revid: vmt@openerp.com-20110208132719-qhlqqjkcyg3j9hv8
2011-02-08 14:27:19 +01:00
Vo Minh Thu 45239ae493 [IMP] openerp.__init__ can imports all its submodules.
- The config parser is given sys.args explicitely
- addons.__init__ changed so it can be imported in openerp.__init__

bzr revid: vmt@openerp.com-20110208092923-42mj8sb8mkfbiytw
2011-02-08 10:29:23 +01:00
Vo Minh Thu ec17bb9e74 [IMP] forgot to add loglevels.py and reexport 3 functions in tools.misc.
bzr revid: vmt@openerp.com-20110208092458-qjfvf1vgflervdpm
2011-02-08 10:24:58 +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