Commit Graph

43230 Commits

Author SHA1 Message Date
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
Fabien Meghazi 60d19cc27a [FIX] footer is not sticky and scroll with page under IE8
A better fix would be not to use Internet Explorer at all !

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

bzr revid: fme@openerp.com-20120213151347-4v9271zgnii90cbi
2012-02-13 16:13:47 +01:00
Thibault Delavallée 901a88bf25 [IMP] When trying to launch the Chart of Accounts configuration wizard, there is now a check of the number of unconfigured companies. This prevents from having a wizard impossible to execute due to the lack of company_id. Also cleaned a bit the code in account_view.xml (ir_actions_server_action_wizard_multi_chart id).
bzr revid: tde@openerp.com-20120213150322-a8d6kx5047r0sdd9
2012-02-13 16:03:22 +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
Minh Tran a465c4c118 [FIX] Reduced size of CRM from 330kb to 19kb
bzr revid: mit@openerp.com-20120213145239-cv8117ez6do76gig
2012-02-13 15:52:39 +01:00
Fabien Meghazi f12e598b59 [FIX] QWeb2: Array-like character access in String is not supported in IE<8
bzr revid: fme@openerp.com-20120213144234-dtdw5e8ho4x85frj
2012-02-13 15:42:34 +01:00
Olivier Dony 16a8811930 [IMP] mail,email_template: improved views, assert missing email_from
- add missing colspans for notebooks
- remove some buttons from mail.message form view,
  namely because send button can cause record deletion
  possibly causing some weird UI result.. better used
  from the list view for now (web was fixed anyway)
- better domain on Message action, to ease debugging
- added assert for email_from in email_template.send_email()
  to catch errors earlier

bzr revid: odo@openerp.com-20120213143531-eiuhulo46bv059pl
2012-02-13 15:35:31 +01:00
niv-openerp 3aaa2b8f1e [fix] point of sale: problem with total
bzr revid: nicolas.vanhoren@openerp.com-20120213142326-94zlaah6k2rny0xs
2012-02-13 15:23:26 +01:00
Fabien Meghazi a95db7c28c [FIX] Fix one million bugs in IE8
bzr revid: fme@openerp.com-20120213135611-ndrboz8urcg6kclu
2012-02-13 14:56:11 +01:00
Quentin (OpenERP) 7718ad9157 [FIX] account, financial report: don't display lines twice
bzr revid: qdp-launchpad@openerp.com-20120213135604-tsmzruto4h50obd0
2012-02-13 14:56:04 +01:00
Quentin (OpenERP) 614893d620 [MERGE] account: merged the dev branch with workaround of context['line_id'] in line_id field (operation not supported in web client)
bzr revid: qdp-launchpad@openerp.com-20120213131702-f20fl7ydpxvt9o7g
2012-02-13 14:17:02 +01:00
Fabien Meghazi ba05ec55fd [ADD] Add sticky option to do_warn() and do_notify()
[IMP] Form view uses a notification when a record is not found in the database

bzr revid: fme@openerp.com-20120213123805-4dqg4oioous25nuo
2012-02-13 13:38:05 +01:00
Xavier Morel 9552dbc215 [FIX] replace :first-of-type by custom class in treeview styles, so open/close arrows appear in MSIE8
lp bug: https://launchpad.net/bugs/927631 fixed

bzr revid: xmo@openerp.com-20120213115220-dt147bo51q2zqrnp
2012-02-13 12:52:20 +01:00
Thibault Delavallée 413e09e5fe [FIX] Fixed wrong account_id not using property_account_receivable by default when using web-based POS front-end
bzr revid: tde@openerp.com-20120213112823-6mdf83hqiawoca27
2012-02-13 12:28:23 +01:00
Xavier Morel b1f1ca0ea1 [FIX] stupid dhtmlxGraph blowing up everything in MSIE8 when not in debug mode
bzr revid: xmo@openerp.com-20120213111746-uojye5kfp1zpsb4a
2012-02-13 12:17:46 +01:00