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
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
80f9a1e770
[MERGE] loading/post_load hook: the code is consolidated in one place.
...
The post-load hook is called whenever a module is loaded, be it via the --load
option or via regular module installation. This is mostly for backward compatibility:
we might require an explicit --load for such server-wide modules.
bzr revid: vmt@openerp.com-20120209154800-2t11mtpf33r1bcig
2012-02-09 16:48:00 +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
d163de7b55
[FIX] ir.values: avoid returning conditional defaults when condition is not set
...
This should un-break the tests introduced
in previous revision
bzr revid: odo@openerp.com-20120209130854-x73j0ouyjsjnhsdg
2012-02-09 14:08:54 +01:00
Olivier Dony
5c5a5b94fc
[IMP] ir.values: add (breaking) testcase for conditional defaults, currently misbehaving
...
bzr revid: odo@openerp.com-20120209130526-b6rg5qlf07sucafq
2012-02-09 14:05:26 +01:00
Olivier Dony
1f189228b5
[IMP] ir.module: remove technical `icon path` field from module form view
...
bzr revid: odo@openerp.com-20120209095616-gbus0ri06hhs90cy
2012-02-09 10:56:16 +01:00
Vo Minh Thu
79d7e883f5
[IMP] fields: turn the warning() in a debug() for the required bool/int/float deprecation message.
...
bzr revid: vmt@openerp.com-20120209094342-n1n7ex5ef25bjvfw
2012-02-09 10:43:42 +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
Launchpad Translations on behalf of openerp
0e2e9ddd78
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20120209055558-qfwy9bg1km791dys
bzr revid: launchpad_translations_on_behalf_of_openerp-20120209071015-0jykfhbo8iamzpzk
bzr revid: launchpad_translations_on_behalf_of_openerp-20120209072746-stmwycdircyzrxn4
2012-02-09 07:27:46 +00:00
Antony Lesuisse
d6e0a7e43c
[IMP] ir properties list view show res_id and type
...
lp bug: https://launchpad.net/bugs/919991 fixed
bzr revid: al@openerp.com-20120209025847-suuwmy31wfybkkqt
2012-02-09 03:58:47 +01:00
Antony Lesuisse
d8ed922e26
[FIX] res_currency remove warning about float field
...
bzr revid: al@openerp.com-20120208224031-korqq1crt0u3wpuh
2012-02-08 23:40:31 +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
Antony Lesuisse
2cd26d3763
[FIX] ir.model.fields form view
...
lp bug: https://launchpad.net/bugs/912769 fixed
bzr revid: al@openerp.com-20120208213047-2uq1wze2xdzbghgh
2012-02-08 22:30:47 +01:00
Antony Lesuisse
30b8d271e5
[FIX] ir.model form view
...
lp bug: https://launchpad.net/bugs/912769 fixed
bzr revid: al@openerp.com-20120208175223-lqoyeqcfj53gb0lh
2012-02-08 18:52:23 +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
Olivier Dony
7629281e08
[MERGE] Contributed Costa Rica (es_CR) translations, courtesy of Carlos Vásquez / Clearcorp
...
In the future it is much more recommended to upload
the PO files on Launchpad or work directly in the
Launchpad translation interface.
bzr revid: odo@openerp.com-20120208154332-r1ru2lnzaq9bagbt
2012-02-08 16:43:32 +01:00
Christophe Simonis
5af49817f4
[FIX] allow text inside <label> tags
...
bzr revid: chs@openerp.com-20120208135945-6p22z3e69r7z0tty
2012-02-08 14:59:45 +01:00
Antony Lesuisse
301afd4baa
[REM] hide menutip option from user preference
...
bzr revid: al@openerp.com-20120208135010-u6s6tl1loss9a74u
2012-02-08 14:50:10 +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
Carlos Vásquez
9737108f62
[ADD] openerp/addons/base/i18n/es_CR.po: first version
...
bzr revid: carlos.vasquez@clearcorp.co.cr-20120208075007-4bpuu9ksrn68o1w9
2012-02-08 01:50:07 -06:00
Launchpad Translations on behalf of openerp
7ad8821958
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20120208045408-48nq5dhfhsh1p2l8
2012-02-08 04:54:08 +00:00
Antony Lesuisse
868c029b4b
logging define a sane default_config
...
bzr revid: al@openerp.com-20120208015957-a9g3ngfo2kj0l76v
2012-02-08 02:59:57 +01:00
Antony Lesuisse
108e53b253
[FIX] use _logger instead of stderr in trml2pdf
...
lp bug: https://launchpad.net/bugs/906377 fixed
bzr revid: al@openerp.com-20120208013617-22wu77ph56nr58us
2012-02-08 02:36:17 +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
Olivier Dony
f13de315be
[I18N] base: updated translation template
...
This should be the last major sync before the
final release of 6.1
bzr revid: odo@openerp.com-20120208004538-uutge29kymontex4
2012-02-08 01:45:38 +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