Commit Graph
43258 Commits
Author SHA1 Message Date
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
Quentin (OpenERP) 8b4c62c624 [REF] account: small code refactoring
bzr revid: qdp-launchpad@openerp.com-20120214133053-0125ol25lwr5mk7d
2012-02-14 14:30:53 +01:00
Vo Minh Thu 93f14f9135 [FIX] product.copy(): do it in en_US:
when implementing our own copy() method, and thus part
of the copy_data() method, we should do it in a consistent
way: copy_data() copy the name in en_US, so we should do
it in en_US too. Otherwise we end up writing the name of
the new product with a user-translated name.

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

bzr revid: vmt@openerp.com-20120214143420-7c16betfwlwblgjo
2012-02-14 15:34:20 +01:00
Xavier Morel 980e2825d5 [IMP] get translated JS strings outside of QWeb attributes as the corresponding extractor does not actually work, export POTs
bzr revid: xmo@openerp.com-20120214142954-4ndkj63pog39ts0k
2012-02-14 15:29:54 +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
Thibault Delavallée 90f2502429 [MERGE] delivery: clarified behavior when saving a delivery.carrier. We want to keep the behavior of writing normal_price and free_if_more_than delivery lines. However, we also want to keep user modifications. The module now differentiates if it uses advanced pricing per destination or not. It using it, the user is responsible of the delivery grid and lines. None will be overrided. If not using it, the default behavior is used, unlinking previous lines to set normal_price and free_if_more_than.
lp bug: https://launchpad.net/bugs/927415 fixed

bzr revid: tde@openerp.com-20120214141618-w5c6ybouaqj87tqx
2012-02-14 15:16:18 +01:00
Olivier Dony 64d0bdfb4a [MERGE] webkit: support for @webkit_header attribute in <report> tags courtesy of Nicolas Bessi (Camptocamp)
Also updates the sample invoice report from
report_webkit_sample.

bzr revid: odo@openerp.com-20120214141148-qgm8sky27u9sfqhp
2012-02-14 15:11:48 +01:00
Thibault Delavallée 6ec72e3ad4 [IMP] Readded the unlink. Instead of removing unlinking, the method now differentiates if it uses advanced pricing per destination or not. It using it, the user is responsible of the delivery grid and lines. None will be overrided. If not using it, the default behavior is used, unlinking previous lines to set normal_price and free_if_more_than.
bzr revid: tde@openerp.com-20120214140825-7hdggsctk8s3twat
2012-02-14 15:08:25 +01:00
Fabien Meghazi 52ab4b67d4 [FIX] Fixed translation concurrent update + wrong context passed to Dataset#write (outdated api usage)
bzr revid: fme@openerp.com-20120214140115-y8h6anv26m3wdxrn
2012-02-14 15:01:15 +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
niv-openerp 3c8a3ab10b [fix] point of sale: problem when installing the addon
bzr revid: nicolas.vanhoren@openerp.com-20120214135054-mkgjjcb0wnnpwypu
2012-02-14 14:50:54 +01:00
Thibault Delavallée 4da82cdfc9 [MERGE] Merged with main addons
bzr revid: tde@openerp.com-20120214130700-ednaydgc1my2ktw5
2012-02-14 14:07:00 +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 da84f36eb4 [FIX] all: update context_today calls after API change
See also server revision 4053
revision-id: odo@openerp.com-20120214122413-rznpdyqajrzswk4o

bzr revid: odo@openerp.com-20120214122520-f4lyaoolw1sik7zo
2012-02-14 13:25:20 +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
Fabien Meghazi 0d5b984f35 [IMP] Make disabled fields [bg]color lighter
bzr revid: fme@openerp.com-20120214121923-vp7i8z4jlcurao4m
2012-02-14 13:19:23 +01:00
Xavier Morel cab4b4604f [IMP] account: if updating just one literal key in a dict, just call __setitem__ no need to call update with a literal dict...
bzr revid: xmo@openerp.com-20120214120741-srnfvkxf3rc2m7ev
2012-02-14 13:07:41 +01:00
Xavier Morel 2aa49acc71 [FIX] correctly evaluate and use context in logs
lp bug: https://launchpad.net/bugs/925347 fixed

bzr revid: xmo@openerp.com-20120214120230-k0yti8ap15i4zcgi
2012-02-14 13:02:30 +01:00
Fabien Meghazi 50bc473ffc [FIX] Fix search view's filter button under IE (active state not visible)
bzr revid: fme@openerp.com-20120214120026-8ju7u3d87k9e6vd6
2012-02-14 13:00:26 +01:00
Antony Lesuisse 53fdcc5016 [FIX] use add_payment for order from the web frontend
bzr revid: al@openerp.com-20120214113927-tjtxxy9aow3pmxg1
2012-02-14 12:39:27 +01:00
Fabien Meghazi b6ea37974b [FIX] Fix button overflow in IE
bzr revid: fme@openerp.com-20120214112628-vyiu173u4iwoy2g8
2012-02-14 12:26:28 +01:00
Antony Lesuisse 0b5e9b6107 [IMP] account display a warning when there are no more companies to generate a new chart of account
bzr revid: al@openerp.com-20120214110704-oz8w31yg8p5qe0jx
2012-02-14 12:07:04 +01:00
Fabien Meghazi 1ead58101f [FIX] Datetime widget buggy since jquery.ui upgrade
lp bug: https://launchpad.net/bugs/928918 fixed

bzr revid: fme@openerp.com-20120214105145-pat0srumt8m7nq38
2012-02-14 11:51:45 +01:00
Thibault Delavallée 87c8f5abdb [MERGE] project: added a missing 'state' field in the tree view, necessary to choose buttons to display
lp bug: https://launchpad.net/bugs/929519 fixed

bzr revid: tde@openerp.com-20120214100956-v772g3s6xegxoudn
2012-02-14 11:09:56 +01:00
Thibault Delavallée 3ddf844f26 [MERGE] Removed duplicate view.
lp bug: https://launchpad.net/bugs/931651 fixed

bzr revid: tde@openerp.com-20120214094804-i1hnq1djp1pfcan9
2012-02-14 10:48:04 +01:00
Fabien Meghazi e0513a9074 [FIX] Calendar box doesn't disappear on multiple clicks
lp bug: https://launchpad.net/bugs/930050 fixed

bzr revid: fme@openerp.com-20120214094730-o1xiz3k5crgzwmkn
2012-02-14 10:47:30 +01:00
Fabien Meghazi c57fc93e7c [IMP] Simplify call to date picker
bzr revid: fme@openerp.com-20120214094430-p4gm11g0paau0tnh
2012-02-14 10:44:30 +01:00
Olivier Dony addb4f14aa [IMP] project_planning: update params for fields.date.context_today after server fix
Fixed in server at revision 4052
revision-id: odo@openerp.com-20120214085044-unpa77hork25gtif

bzr revid: odo@openerp.com-20120214085109-r30kskztzwefpxna
2012-02-14 09:51:09 +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
Mayur Maheshwari (OpenERP) cbb806ac04 [FIX]account: removed action_move_line_select which is repeated
lp bug: https://launchpad.net/bugs/931651 fixed

bzr revid: mma@tinyerp.com-20120214084920-rklc4p11wp23t3pm
2012-02-14 14:19:20 +05:30
Vaibhav (OpenERP) cbbd50c764 [FIX] DatePicker remains visible(block) when clicking multiple times on picker button.
lp bug: https://launchpad.net/bugs/930050 fixed

bzr revid: vda@tinyerp.com-20120214064301-4v1umyi1hls3nq28
2012-02-14 12:13:01 +05:30
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 4202b11c5b [MERGE] Use of the new fields.date.context_today method for bug 925361
lp bug: https://launchpad.net/bugs/925361 fixed

bzr revid: odo@openerp.com-20120213184853-uoyo7utrnvlh1zoa
2012-02-13 19:48:53 +01: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 5fc1a9fc7b [FIX] all: use newly introduced fields.date.context_today
Following the introduction of fields.date.context_today,
correct the main cases where we need to use the user's
timezone instead of the default UTC one.
There are probably many minor cases where this may be
useful, but those cases should be easy to fix now
that there is a common way to fix them.

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

bzr revid: odo@openerp.com-20120213180741-4hvd4p7wsep0fomf
2012-02-13 19:07:41 +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
Quentin (OpenERP) e7ca80cdeb [FIX] l10n_be: vat intracom statement fix and polish. Thanks Noviat
bzr revid: qdp-launchpad@openerp.com-20120213172208-wejitichlxwed4mm
2012-02-13 18:22:08 +01:00
Fabien Meghazi c4d9dfd8a9 [FIX] Use formatted value in kanbans group by
lp bug: https://launchpad.net/bugs/927698 fixed

bzr revid: fme@openerp.com-20120213172038-o0gxr5avtlc2kfbc
2012-02-13 18:20:38 +01:00
Xavier Morel a7ea6c02ab [FIX] don't display a '#' in empty URI fields
lp bug: https://launchpad.net/bugs/931643 fixed

bzr revid: xmo@openerp.com-20120214074632-oumyrm5pd5e2y1ow
2012-02-14 08:46:32 +01:00
Quentin (OpenERP) 83e0e6ae18 [IMP] l10n_be: added Noviat to the authors, for posterity
bzr revid: qdp-launchpad@openerp.com-20120213171735-yf82dpd9shp0r3md
2012-02-13 18:17:35 +01:00
niv-openerp 6d17167b36 [fix] problem in BufferedDataSetStatic : should not trigger a on_change when we call create()
bzr revid: nicolas.vanhoren@openerp.com-20120213165437-lhs3d6iyvx61vlun
2012-02-13 17:54:37 +01:00
Fabien Meghazi d2a0a48e33 [FIX] Fix kanban card floating issue
bzr revid: fme@openerp.com-20120213165200-8ukpklpghjvz6xpj
2012-02-13 17:52:00 +01:00
Fabien Meghazi 7de6dbed4d [FIX] Share wizard: unselectable url and embed code
I used to like Firefox... That was before webkit.

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

bzr revid: fme@openerp.com-20120213163120-7qt0171h81uh8bvp
2012-02-13 17:31:20 +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
Thibault Delavallée bd2e58fe4f [REF] Refactored the fix. It now uses the add_payment method to ensure that the back-end and front-end behaviors are the same.
bzr revid: tde@openerp.com-20120213161201-xsc581kb4rdc65a5
2012-02-13 17:12:01 +01:00
Fabien Meghazi b55edaafd6 [IMP] Move overflow-y: scroll to body.openerp
bzr revid: fme@openerp.com-20120213160728-4jwhlw8lisq7m4pd
2012-02-13 17:07:28 +01:00
Quentin (OpenERP) 859a01bd3a [FIX] account_followup: fixed error due to virtual ids
bzr revid: qdp-launchpad@openerp.com-20120213160319-lpx878gnczz590uz
2012-02-13 17:03:19 +01:00
Thibault Delavallée 35446546d3 [IMP] Small code cleaning.
bzr revid: tde@openerp.com-20120213152152-cp4c6akarz1k45u1
2012-02-13 16:21:52 +01:00
Thibault Delavallée a22726ffe6 [IMP] Add comments
bzr revid: tde@openerp.com-20120213152121-tkdldypj70v52jrn
2012-02-13 16:21:21 +01:00