Commit Graph

144 Commits

Author SHA1 Message Date
Vo Minh Thu 7c33378557 [IMP] loading: the warning about access rights give an example that can be copied.
bzr revid: vmt@openerp.com-20121115160611-9dkyx82d94pve2rx
2012-11-15 17:06:11 +01:00
Vo Minh Thu 6fe4d55251 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121114123943-oh8f0ni1e2itj1os
2012-11-14 13:39:43 +01:00
Vo Minh Thu 45f8c4adb7 [IMP] loading.py: be a bit more explicit about valid/invalid data/test files.
bzr revid: vmt@openerp.com-20121114103140-y0k40eb525ak99v1
2012-11-14 11:31:40 +01:00
Vo Minh Thu 38336593f7 [IMP] registry: the `assertion_report` is now a registry attribute.
This allow us to report failure or success by inspecting the registry.

bzr revid: vmt@openerp.com-20121102134732-5uy1vp59mp1bxgjs
2012-11-02 14:47:32 +01:00
Xavier Morel f579cc927f [FIX] files filtering when loading... stuff.
also, cleanup module file (remove extra imports, extra default key in manifest)

bzr revid: xmo@openerp.com-20121024105454-nqw9taxladjofz2v
2012-10-24 12:54:54 +02:00
Fabien Pinckaers a48c57df40 [IMP] no certificate
bzr revid: fp@tinyerp.com-20120926121536-9836j42ulu8wcir8
2012-09-26 14:15:36 +02:00
Olivier Dony f9be81cb20 [MERGE] file_open: give precedence to directory before zip, courtesy of Florent Xicluna
bzr revid: odo@openerp.com-20120904074105-ql796z5c8b6o4cyf
2012-09-04 09:41:05 +02:00
Vo Minh Thu 4498663baf [FIX] ad_paths: makes sure the server addons path is absolute (needed when using cProfile).
bzr revid: vmt@openerp.com-20120903145828-8yflgc0lfqn6woai
2012-09-03 16:58:28 +02:00
Olivier Dony 869564ce28 [MERGE] file_open: give precedence to directory before zip, courtesy of Florent Xicluna
lp bug: https://launchpad.net/bugs/928376 fixed
lp bug: https://launchpad.net/bugs/928507 fixed

bzr revid: odo@openerp.com-20120903130536-5sqwp9tnhk1ntee3
2012-09-03 15:05:36 +02:00
Stephane Wirtel b3988436cb [REF] Replace the user id 1 by openerp.SUPERUSER_ID
bzr revid: stw@openerp.com-20120831135309-o4plzf5wp0kyuzgf
2012-08-31 15:53:09 +02:00
Christophe Simonis 610c8d8078 [IMP] yaml import: log as TEST only for test files
bzr revid: chs@openerp.com-20120822101156-v5w2kljumas2cyq0
2012-08-22 12:11:56 +02:00
Christophe Simonis 3e251640d2 [IMP] add cursor() contextmanager on registry
bzr revid: chs@openerp.com-20120813150501-txkrphi7hyp2tgl1
2012-08-13 17:05:01 +02:00
Vo Minh Thu b0abe3a595 [MERGE] impex tests: added test module to unittest import/export.
bzr revid: vmt@openerp.com-20120810134544-f08mjga83ghlmnp7
2012-08-10 15:45:44 +02:00
Olivier Dony 256eae55b4 [FIX] db: module auto-install should work recursively during db bootstrap too
bzr revid: odo@openerp.com-20120808165904-hyyxn3djm75od67b
2012-08-08 18:59:04 +02:00
Xavier Morel fc36345ca0 [ADD] test cases for export of simple fields
bzr revid: xmo@openerp.com-20120723150306-6zgtr9ho0d3ud78u
2012-07-23 17:03:06 +02:00
Jigar Amin - OpenERP 67931a35d2 [Add] Add module summary on db install
bzr revid: jam@tinyerp.com-20120717085028-2jkbf9ymrftkui45
2012-07-17 14:20:28 +05:30
Vo Minh Thu 877ec2d7a8 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120619132718-ag1j3itm69u8h419
2012-06-19 15:27:18 +02:00
Olivier Dony 2126f83a35 [IMP] modules, ir.ui.view: improve view validation + avoid validation errors during updates
As of 7.0, RNG validation is not possible for form views
that have a version attribute equal to "7.0", due to the
allowed usage of HTML syntax mixed with the regular OpenERP
view syntax. RNG validation is still enabled for regular
form views (@version missing or less than "7.0"), and for
all other views types.
Validation of 7.0 form views should be improved with the
addition of an assertion-based schema, still to be done.
 
The above is also complemented with an explicit call to fields_view_get()
during view installation, in order to immediately verify
that the updated view hierarchy does not cause any
issue when loaded along with its related views (i.e
parent and siblings, for inheriting views).
In addition to that, fields_view_get() will now only
consider loading views that belong to modules that have
already been loaded. This avoids a lot of validation errors
during a module update operation, which runs on top of
an existing database with all previous views visible,
even those whose module is not loaded yet.

bzr revid: odo@openerp.com-20120611122758-qcw9xdhupl24busq
2012-06-11 14:27:58 +02:00
Olivier Dony 5fd5165c20 [REVERT] db: revert incorrect change to auto_install logic
The auto_install flag means that the module will be automatically
installed as soon as all its dependencies are satisfied.
It does *not* mean that the module will be automatically installed
upon database creation. It can be used for that purpose by
setting it on a module that has no dependencies however.

bzr revid: odo@openerp.com-20120611103653-l7x0xxdqo4wixjvl
2012-06-11 12:36:53 +02:00
Fabien Pinckaers 9901961a2f fix
bzr revid: fp@tinyerp.com-20120610120614-oe3plgxr1364um0q
2012-06-10 14:06:14 +02:00
Vo Minh Thu 77ec840cb0 [FIX] ir_values: fix a test where some value was hard-coded.
bzr revid: vmt@openerp.com-20120605095210-0t5bmlyxrtnoqvr0
2012-06-05 11:52:10 +02:00
Mayur Maheshwari (OpenERP) 7c06e4a5b6 [IMP]module: improve tree and form view and remove complexity field from ir.module object
bzr revid: mma@tinyerp.com-20120518052939-51ps201qaq51g2bp
2012-05-18 10:59:39 +05:30
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 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 9f8e297531 [IMP] modules.loading: lint cleanup
bzr revid: odo@openerp.com-20120322160806-y3g18dwn2z2xyuh2
2012-03-22 17:08:06 +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
Olivier Dony 638a9102c5 [MERGE] Latest fixes from 6.1
bzr revid: odo@openerp.com-20120314142043-9jpk3dkss1hkvb3q
2012-03-14 15:20:43 +01:00
Atul Patel (OpenERP) 85dd5f6164 [MERGE]: Merge with lp:openobject-server
bzr revid: atp@tinyerp.com-20120313133708-lc4x4ekn2xv517b8
2012-03-13 19:07:08 +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
Vo Minh Thu 0cb86fc58d [IMP] tests: removed the severity concept from `assert` tags.
bzr revid: vmt@openerp.com-20120302112834-n1zyqf1g4v61ivje
2012-03-02 12:28:34 +01:00
Vo Minh Thu dc34d73695 [IMP] tests:
- pass around the assertion_report to the YAML importer
- removed TestReport, which was identical to assertion_report
- assertion_report is simpler (no more severity level)
- use the report to log a greppable sentence when some test failed.
Previously the runbot had to grep for a Traceback which was an
unreliable technique (e.g. an exception can be purposefuly
generated as part of a test and the associated traceback
visible in the logs). Now it can grep
  "At least one test failed when loading the modules".

bzr revid: vmt@openerp.com-20120302110227-nqrl7i46ju28ntdr
2012-03-02 12:02:27 +01:00
Vo Minh Thu 6323111950 [IMP] tests:
- moved a few YAML tests to unittest2 for demonstration purpose
- changed --test-disable to --test-enable (and swapped its meaning)

bzr revid: vmt@openerp.com-20120301134608-szuktuj8imdhmn0r
2012-03-01 14:46:08 +01:00
Vo Minh Thu ade3f174a5 [IMP] tests: move tests discovery and execution to openerp.modules.module, removed unexisting column name, filter out more test outputs
bzr revid: vmt@openerp.com-20120301121611-1gieqehm9wqog2fx
2012-03-01 13:16:11 +01:00
Vo Minh Thu dac45d4392 [IMP] unittest: run the fast_suite and checks tests when installing a module.
bzr revid: vmt@openerp.com-20120229172520-n0k1dmxo5p0h0bar
2012-02-29 18:25:20 +01:00
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 3f6524a6e2 [FIX] Correct remaining SQL now() calls, must use UTC
This is essential to have the proper behavior for
timestamps: on the database side we exclusively 
store UTC data (no DST issues, etc.) as naive
timestamps (to prevent Postgres from messing with them).
Inside OpenERP server/addons we work again with
pure UTC data (much simpler), and only render
them according to the user's timezone when they
are displayed in the user interface or rendered
in a PDF report.

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

bzr revid: odo@openerp.com-20120220105943-v3m0i50phrurt8x6
2012-02-20 11:59:43 +01:00
Vo Minh Thu 965e55d7e6 [REV] REVERT TEH PREVIOUS SUTPID BROKD COMMIT.
bzr revid: vmt@openerp.com-20120210095946-dxs0e0cd4ffkccy9
2012-02-10 10:59:46 +01:00
Vo Minh Thu 3bb6596890 [IMP] import hook: allow and give precedence to our own modules.
This should be reverted for 6.2 when the openerp.addons namespace will
be the only option.

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

bzr revid: vmt@openerp.com-20120209163016-1wiw1xsrppumjvfl
2012-02-09 17:30:16 +01:00
Vo Minh Thu 01449bfb37 [IMP] post_load: factored common code. This also fix bug lp:929466
lp bug: https://launchpad.net/bugs/929466 fixed

bzr revid: vmt@openerp.com-20120209152732-24ud1f70krliv2k5
2012-02-09 16:27:32 +01:00
Vo Minh Thu d14a3e9df0 [IMP] loading: call post-load hook in non-server-wide-module too.
bzr revid: vmt@openerp.com-20120209141444-12261k6zd2ovnltd
2012-02-09 15:14:44 +01:00
Olivier Dony 69a5eca5b4 [IMP] Give precedence to module directories instead of zips while locating resources
The previous behavior gave the precedence to zipped
modules, without any apparent reason, and this is
sub-optimal for several reasons:

1. The default is to have regular modules, not
zipped modules, so looking first for a regular
module is more efficient.
2. Keeping a zipped module next to a regular
module with the same name is not a documented
or supported feature.
3. Even if you were relying on this behavior
having the extracted module take precedence
is more practical: you could simply extract
the zipped module to test a quick fix.

We have another issue related to this feature
because the code looking for zipped modules
escapes the addons paths chroot and goes
up to the filesystem root looking for a zip
module at each step. This is described in
bug 928376 and a fix for it should follow.

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

bzr revid: odo@openerp.com-20120208173932-pwhz53vxxdzbo8ja
2012-02-08 18:39:32 +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
Antony Lesuisse acc91886c6 [FIX] reintroduce a default value for auto_install (aka active) removed in 4003 revid:xmo@openerp.com-20120202154532-tq9x07ujf0bn9mcp
bzr revid: al@openerp.com-20120208005252-ke2v5mtkxpmyml6d
2012-02-08 01:52:52 +01:00
Vo Minh Thu 23eb63f139 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120206203151-3snkz7usngwtv1xt
2012-02-06 21:31:51 +01:00
Xavier Morel df8af0ec4a [FIX] in load_information_from_description_file, f can be a StringIO (in case of zipped module) and StringIO are not contextmanagers.
So rollback the context management thingie

bzr revid: xmo@openerp.com-20120202154532-tq9x07ujf0bn9mcp
2012-02-02 16:45:32 +01:00
Antony Lesuisse 1a62602c86 [MERGE] trunk
bzr revid: al@openerp.com-20120131211744-whzzo0dh6w1kptng
2012-01-31 22:17:44 +01:00
Vo Minh Thu 084af04092 [FIX] import-hook: correctly import the server-wide-module (i.e
use the openerp.addons namespace), and correctly set the submodules in
sys.modules (instead of only the top-level package).

bzr revid: vmt@openerp.com-20120201152710-s7sxlgibwd3lwr5l
2012-02-01 16:27:10 +01:00
Antony Lesuisse 89e411fb39 remove warning
bzr revid: al@openerp.com-20120130210429-zw7aziwhkhi0yhqv
2012-01-30 22:04:29 +01:00
Vo Minh Thu c22e8190da [IMP] manifest: still support the old `active` entry (but deprecate it and display a warning).
bzr revid: vmt@openerp.com-20120130113116-msjaej7jxp96tbvh
2012-01-30 12:31:16 +01:00
Vo Minh Thu 0d86e08450 [IMP] manifest: `auto_installable` renamed to `auto_install`.
bzr revid: vmt@openerp.com-20120130095238-x2by4y11joeytipr
2012-01-30 10:52:38 +01:00