Commit Graph

1771 Commits

Author SHA1 Message Date
Vo Minh Thu d2b5a20182 [FIX] tests: mistakenly removed a self argument.
bzr revid: vmt@openerp.com-20120302123535-jxsf49wr4at1ylhh
2012-03-02 13:35:35 +01:00
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 d85da03314 [IMP] tests: xml-rpc test drops the created database (which has its own name, not clashing with the main db name).
bzr revid: vmt@openerp.com-20120301105419-8ik3z5eikwjnackk
2012-03-01 11:54:19 +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
Vo Minh Thu 73ea6a214b [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120229160123-hzsm15d8zjuga4sv
2012-02-29 17:01:23 +01:00
Launchpad Translations on behalf of openerp 679d307ead Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120222045636-woireovexwftw6ar
bzr revid: launchpad_translations_on_behalf_of_openerp-20120223043844-s2ndx8sv4esnqoln
bzr revid: launchpad_translations_on_behalf_of_openerp-20120224044737-fun2dpz186j8py0b
bzr revid: launchpad_translations_on_behalf_of_openerp-20120225051322-6aya32sbxaxvd5yq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120226045523-gtd8h7707vl2clzj
bzr revid: launchpad_translations_on_behalf_of_openerp-20120227045228-dwmdog6eitav044b
bzr revid: launchpad_translations_on_behalf_of_openerp-20120228054731-fg5ohpi4t4vgc67p
bzr revid: launchpad_translations_on_behalf_of_openerp-20120229044148-vpzionn12cp18a8a
2012-02-29 04:41:48 +00:00
Vo Minh Thu d709d602d8 [ADD] FEATURES.rst: whenever a feature branch is reviewed (but normally also when it is started),
the description of the implented features must be provided, so
here they are.

bzr revid: vmt@openerp.com-20120228112418-r8tjx3o6xc2cbaej
2012-02-28 12:24:18 +01:00
Christophe Simonis 15bf79811d [FIX] proxy-mode is now really active
bzr revid: chs@openerp.com-20120221185441-czz0wbz0ah88lxht
2012-02-21 19:54:41 +01:00
Launchpad Translations on behalf of openerp e3cc141be5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120217045751-thn23vacyxknwt83
bzr revid: launchpad_translations_on_behalf_of_openerp-20120218045735-7snhwn8hjo2d7pe1
bzr revid: launchpad_translations_on_behalf_of_openerp-20120219054155-s1ok19use0jf281o
bzr revid: launchpad_translations_on_behalf_of_openerp-20120220053935-hgbv4yi1a5njd8a6
bzr revid: launchpad_translations_on_behalf_of_openerp-20120221055431-l0n17ap5346a02wg
2012-02-21 05:54:31 +00:00
Vo Minh Thu ed71ad0946 [FIX] tests: `core` is really `common`. Also added some comments
and a second test suite variable for sanity checks. The comments will
later be changed to point to some documentation instead.

bzr revid: vmt@openerp.com-20120217150049-in1lmo24qay8ulmh
2012-02-17 16:00:49 +01:00
Antony Lesuisse 675aa4a549 [REL] OpenERP 6.1
bzr revid: al@openerp.com-20120216185110-gkoqaj3ncdy52hd3
2012-02-16 19:51:10 +01:00
Vo Minh Thu 0037575619 [IMP] tests: provide simple reusable base classes to write tests.
bzr revid: vmt@openerp.com-20120216162706-ccbgkqv8k8kufmnb
2012-02-16 17:27:06 +01:00
Launchpad Translations on behalf of openerp 2094148de5 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120216050419-fgzhvlogc71u42qe
bzr revid: launchpad_translations_on_behalf_of_openerp-20120216050718-lf9hgvr1p33jpm2h
bzr revid: launchpad_translations_on_behalf_of_openerp-20120216052148-ta5bwtqg3bzmvp3i
2012-02-16 05:21:48 +00:00
Olivier Dony 0e97ec4a12 [MERGE] Fix bug 932170 - formatLang() should render using context timezone
bzr revid: odo@openerp.com-20120215144727-4vtoxdz7dk9si3wn
2012-02-15 15:47:27 +01:00
Olivier Dony e9143a0ba8 [FIX] reports: formatLang() should render datetime values in appropriate timezone
lp bug: https://launchpad.net/bugs/932170 fixed

bzr revid: odo@openerp.com-20120215133748-2iodxq0z1vqhyz13
2012-02-15 14:37:48 +01:00
Vo Minh Thu 64ba0da663 [FIX] fields: duplicate float fields per registry (because they are stateful).
lp bug: https://launchpad.net/bugs/929483 fixed

bzr revid: vmt@openerp.com-20120215101714-zjsdcizzb1m2x6k5
2012-02-15 11:17:14 +01:00
Launchpad Translations on behalf of openerp ee8cc0a459 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120215052652-i9y75rm42kvbvlx7
2012-02-15 05:26:52 +00:00
Antony Lesuisse c6ad066b59 [FIX] database restore dont prepend a space before the tempfile
lp bug: https://launchpad.net/bugs/859720 fixed

bzr revid: al@openerp.com-20120214193030-uhqyuo70l527ypsn
2012-02-14 20:30:30 +01:00
Olivier Dony 04849550aa [FIX] ir.module.module: `demo` field should be readonly
lp bug: https://launchpad.net/bugs/928431 fixed

bzr revid: odo@openerp.com-20120214151846-1fsbc225bz1x5ujp
2012-02-14 16:18:46 +01:00
Olivier Dony 79ac080fb2 [MERGE] Minor bugfixes (missing imports, etc.) courtesy of Florent Xicluna
bzr revid: odo@openerp.com-20120214150022-yx6zi0j4fr2d48uc
2012-02-14 16:00:22 +01:00
Olivier Dony 7d84dbc118 [MERGE] More consistent widget for res.partner.event, courtesy of Serpent CS
Note that res.partner.event is deprecated and the
mass mailing wizard is replaced as soon as the
mail module is installed.

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

bzr revid: odo@openerp.com-20120214142607-vp6k09139rumhmpt
2012-02-14 15:26:07 +01:00
Olivier Dony 7deee635b2 [MERGE] Make <report> tag extensible for extra report engines, courtesy of Nicolas Bessi (Camptocamp)
The processing of <report> tags during XML file
processing is not modular or extensible, which
means that extra reporting engines cannot easily
add custom behavior for <report> records of their
type. By returning the newly created ID in
the tag_report() method we at least allow them
to hook up a monkey-patch without need to copy-
paste the original code.
This patch also allows an extra XML attribute
for webkit headers, because the original @header
attribute is reserved for a boolean value.

bzr revid: odo@openerp.com-20120214135255-a7hyxsoif4jhg6ro
2012-02-14 14:52:55 +01:00
Olivier Dony 3d637db6d0 [FIX] fields.sparse: fix multiple relational sparse fields on same model, courtesy of Guewen Baconnier (Camptocamp)
lp bug: https://launchpad.net/bugs/912203 fixed

bzr revid: odo@openerp.com-20120214125725-p2ayh1lckr50vebi
2012-02-14 13:57:25 +01:00
Olivier Dony aa658124a6 [FIX] fields.date.context_today: proper signature for call by default_get()
The ORM automatically passes a Model instance
as the first argument to _default callables,
historically provided to give lambda functions
access to the Model instance.
context_today() does not need it but takes it
for compatibility purposes.
This also means that when called explicitly
within business code we should now pass a
Model instance as first argument, typically 'self'

bzr revid: odo@openerp.com-20120214122413-rznpdyqajrzswk4o
2012-02-14 13:24:13 +01:00
Olivier Dony ed677bbfae [IMP] fields.date.context_today: actually use the optional timestamp + better naming
- optional datetime was not being used
- parameter renamed to timestamp to better
  indicate that it must be a datetime, not
  a simple date

bzr revid: odo@openerp.com-20120214085044-unpa77hork25gtif
2012-02-14 09:50:44 +01:00
Launchpad Translations on behalf of openerp 74b3b0bc69 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120214054303-2gawtr1s4zulhhhs
bzr revid: launchpad_translations_on_behalf_of_openerp-20120214054630-925y7kotw7axa7z4
bzr revid: launchpad_translations_on_behalf_of_openerp-20120214061906-2g5kxwe0xle5u54c
2012-02-14 06:19:06 +00:00
Olivier Dony 3520cc25aa [MERGE] Added fields.date.context_today method for bug 925361
lp bug: https://launchpad.net/bugs/925361 fixed

bzr revid: odo@openerp.com-20120213184802-gm6mqd8tk2kkswwn
2012-02-13 19:48:02 +01:00
Olivier Dony f87324e93e [FIX] res.users: don't delay login() if user row is currently locked
Any running transaction that has created or altered
a record that contains a FK to the user is automatically
holding an SharedRowLock that prevents login() from
updating the last login date. As we cannot delay the
login() until all such transactions are finished,
it's simpler to try to get the lock and if that
fails, we skip the login date update for once,
no big deal.
A typical candidate for this situation is the
Admin user, locked out by long running cron
jobs that touch rows as Admin, hence holding
a ShareRowLock to res.users ID 1 because of the
many create_uid/write_uid foreign keys.

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

bzr revid: odo@openerp.com-20120213183207-45ptopqm0szritgx
2012-02-13 19:32:07 +01:00
Olivier Dony 2b8a0616c7 [ADD] field.date.context_today: added function to use as _defaults for date fields
As discussed on bug 925361, in order to have
a consistent behavior everywhere we need default
values to be using the client's timezone, just
as if the user had set the value themselves
using their local clock.
Because fields.date values are timezone
agnostic by design, they must be correctly
initialized from the start, no conversion
happens later.
The new context_today method is mean to be
easily usable as _defaults initialize, i.e.:
 'date_field': fields.date.context_today
is all that is needed.
It also avoids the classical mistake of
forgetting to make the default value
dynamic and directly passing the result of
a time.strftime() call.

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

bzr revid: odo@openerp.com-20120213180355-ruyw5j2w7r06kyue
2012-02-13 19:03:55 +01:00
Vo Minh Thu 1cf8f5680a [IMP] tests: expose an explicit list of test sub-modules.
bzr revid: vmt@openerp.com-20120213162058-e7u9jap679z4hep5
2012-02-13 17:20:58 +01:00
Olivier Dony c658241072 [IMP] res.partner.bank: swap state/country fields in vertical layout
Users need to fill in country to see the
list of states, so it must be first in the
form, even if that does not feel very
natural in a vertical layout.

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

bzr revid: odo@openerp.com-20120213145904-i731wr9msex3fmx6
2012-02-13 15:59:04 +01:00
Vo Minh Thu 8e2134981d [FIX] ir_rule: disallow ir_rules on ir_rule.
bzr revid: vmt@openerp.com-20120213110144-p5wrxccl39vrkwjy
2012-02-13 12:01:44 +01:00
Olivier Dony a60edc90da [ADD] base: missing post-1995 ISO3166 countries
lp bug: https://launchpad.net/bugs/930242 fixed

bzr revid: odo@openerp.com-20120213105901-hx9qh1hqvqz8h2h0
2012-02-13 11:59:01 +01:00
Xavier Morel 48645fe412 [IMP] remove nonsensical attributes on tree and search, tighten tree/@toolbar
bzr revid: xmo@openerp.com-20120213101758-i20p214w21u0ik5r
2012-02-13 11:17:58 +01:00
Launchpad Translations on behalf of openerp 769e8fc3a7 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120211050703-tr5u3ccsyn3nr4a3
bzr revid: launchpad_translations_on_behalf_of_openerp-20120212044214-22i3b1p1odzszfm8
bzr revid: launchpad_translations_on_behalf_of_openerp-20120213044933-drlzxl0ds3vw5pct
2012-02-13 04:49:33 +00:00
Vo Minh Thu 4890c95447 [FIX] wsgi: use wsgi.core instead of wsgi, remove unused variable.
bzr revid: vmt@openerp.com-20120210151715-5vei5cbpdlimlqj5
2012-02-10 16:17:15 +01:00
Vo Minh Thu db7e1f37a5 [IMP] typo.
bzr revid: vmt@openerp.com-20120210150615-3ywm0le30niofxy3
2012-02-10 16:06:15 +01:00
Vo Minh Thu 1c6af53988 [MERGE]merged trunk.
bzr revid: vmt@openerp.com-20120210144114-rm4mt9x3uyekinto
2012-02-10 15:41:14 +01:00
Vo Minh Thu 4f64a7b09d [IMP] wsgi: expose both a normal application() and a proxied application() entry points.
bzr revid: vmt@openerp.com-20120210143609-auackb5ip7dqvlk2
2012-02-10 15:36:09 +01:00
Olivier Dony 9b7539ae26 [IMP] ir.config.parameter: admin menu and views (inspired by Camptocamp's ir_config_parameter_viewer module)
bzr revid: odo@openerp.com-20120210142318-6h6nb42vgrvxfcdb
2012-02-10 15:23:18 +01:00
Vo Minh Thu 0124aa45c6 [FIX] netsvc: make sure pseudo_config variable is always initialized.
bzr revid: vmt@openerp.com-20120210134446-ijg8t6ms1938i77t
2012-02-10 14:44:46 +01:00
Vo Minh Thu 799752a74b [FIX] report: do not use the default_type entry from the context:
the type column exists on both the account_invoice and on the attachment.
It is set for the account_invoice, so we must not use it for the attachment
creation.

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

bzr revid: vmt@openerp.com-20120210113427-vnty3pcmcw3g3b97
2012-02-10 12:34:27 +01:00
Olivier Dony a04e39233c [IMP] res.users: avoid reading twice the groups_id o2m - causing duped query
lp bug: https://launchpad.net/bugs/922198 fixed

bzr revid: odo@openerp.com-20120210105955-arhy1wc2qzlfy87r
2012-02-10 11:59:55 +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 602a931ae4 [MERGE] addons import hook: give precedence to our own modules, let them shadow other Python modules.
bzr revid: vmt@openerp.com-20120210094812-7lewrxwpqfrlmke1
2012-02-10 10:48:12 +01:00
Raphael Collet 2c2432ad33 [FIX] ir_ui_menu: do not create a menu binding when field 'action' is False
bzr revid: rco@openerp.com-20120210082637-tn4cyvgfa4jrxpj4
2012-02-10 09:26:37 +01:00
Launchpad Translations on behalf of openerp 5d4664f823 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120210044704-ffxh1ikqgom660lz
bzr revid: launchpad_translations_on_behalf_of_openerp-20120210045028-kbviilp8xdby42fi
2012-02-10 04:50:28 +00:00