Commit Graph

1758 Commits

Author SHA1 Message Date
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
Antony Lesuisse 675aa4a549 [REL] OpenERP 6.1
bzr revid: al@openerp.com-20120216185110-gkoqaj3ncdy52hd3
2012-02-16 19:51:10 +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
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