Commit Graph
43988 Commits
Author SHA1 Message Date
Olivier Dony 0b1fc7aaa5 [FIX] account.bank.statement: minor typo in test comments
bzr revid: odo@openerp.com-20120704171822-3q2xwsvqmlvc75sa
2012-07-04 19:18:22 +02:00
Olivier Dony 3811a896ce [MERGE] OPW 576006: account.period.find() should not select opening/special periods in some cases
The cases where we filter out special periods
should in fact be the default, but this is a risky
change, so we turn this filtering on via an extra
context flag instead, which can be added by callers
as needed.

bzr revid: odo@openerp.com-20120704171726-vmkvb8dwbc9mdvs8
2012-07-04 19:17:26 +02:00
Olivier Dony 59757807ba [MERGE] OPW 576406: bank.statement: allow cancelling statements with manual entries
bzr revid: odo@openerp.com-20120704164208-7fahmtx9uibwxxgd
2012-07-04 18:42:08 +02:00
Olivier Dony c2aaad1dd3 [FIX] OPW 576006: account.period.find() should not select opening/special periods in some cases
The cases where we filter out special periods
should in fact be the default, but this is a risky
change, so we turn this filtering on via an extra
context flag instead, which can be added by callers
as needed.

bzr revid: odo@openerp.com-20120704163307-bvu454y7if8vck8j
2012-07-04 18:33:07 +02:00
Olivier Dony 4805c12199 [FIX] OPW 576406: bank.statement: fix incorrect test + cleanup bad variable names
bzr revid: odo@openerp.com-20120704144721-9moczgo1k3shuh7j
2012-07-04 16:47:21 +02:00
Launchpad Translations on behalf of openerp 2444c6f23b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120703062901-49zsn4i96tmozpj5
bzr revid: launchpad_translations_on_behalf_of_openerp-20120704052415-q0iltvrpzyalwfqk
2012-07-04 05:24:15 +00:00
Olivier Dony 0cf4baa071 [FIX] mail: more reliable parsing of Date header to avoid rejecting emails
dateutil.parser.parse() was failing to parse the date on
some seemingly non-standard Date headers including trailing
extra TZ info, such as:
 "Thu, 28 Jun 2012 18:09:47 +0200 (GMT+02:00)"
RFC2822 seems to only mention the +XXXX offset format, but
apparently other formats are employed in the wild, such
as this one coming from the Zimbra webclient.
The fuzzy matching copes with that, and an extra try/except
block was added for good measure, with a fallback on the
current datetime, should the parsing still fail.

bzr revid: odo@openerp.com-20120702154106-mwdrd9bv9xvbde0s
2012-07-02 17:41:06 +02:00
Olivier Dony 1fef29cb80 [FIX] OPW 575804: web_gantt: hide internal dhtmlx duration for tasks/phases, as it is misleading
The `duration` used by the dhtmlx gantt component
corresponds to the calendar duration of the event
divided by 3. This makes sense only for events
spanning full days, and for working times
with 8 hours per day. Unfortunately these
hypotheses do not hold for most cases inside
OpenERP, so we should hide this information.
The actual duration of the items can always
been viewed by clicking on the corresponding
label.

bzr revid: odo@openerp.com-20120702133016-gzscrpbbh1a9mgez
2012-07-02 15:30:16 +02:00
Olivier Dony 4216edfd5f [FIX] mail: preserve timezone offset when extracting the Date of received mails
Previously the date was treated as UTC, ignoring
the specified timezone offset. As a result the
displayed date was off by the actual UTC offset
of the sender's timezone

bzr revid: odo@openerp.com-20120702093523-fttsemnl1irc7917
2012-07-02 11:35:23 +02:00
Olivier Dony 433f7e7f17 [FIX] portal: prevent deleting a partner that has shared users
bzr revid: odo@openerp.com-20120702084844-5o07ji7658fqvkw3
2012-07-02 10:48:44 +02:00
Rifakat 64297873d4 [FIX] account: put amove into draft state by button_cancel() before unlink() because we can not delete any posted move
bzr revid: rha@tinyerp.com-20120702055845-60nprzm2lq7rv2hc
2012-07-02 11:28:45 +05:30
Launchpad Translations on behalf of openerp d7d33ef888 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120623052438-zdt5lzhx41r4j8v4
bzr revid: launchpad_translations_on_behalf_of_openerp-20120624055437-qg2pl455g47gso3v
bzr revid: launchpad_translations_on_behalf_of_openerp-20120625053410-ie6te1077q8uzpko
bzr revid: launchpad_translations_on_behalf_of_openerp-20120626054722-g0arah67qg0v8amr
bzr revid: launchpad_translations_on_behalf_of_openerp-20120627061422-ldhv9tfc5u2z6441
bzr revid: launchpad_translations_on_behalf_of_openerp-20120628051236-9x5od26mgguatain
bzr revid: launchpad_translations_on_behalf_of_openerp-20120629050943-vtlgifme5lkz3sbs
bzr revid: launchpad_translations_on_behalf_of_openerp-20120630053833-7l5m61z2v7zdfck1
bzr revid: launchpad_translations_on_behalf_of_openerp-20120701045758-kns6qj2y772015vt
bzr revid: launchpad_translations_on_behalf_of_openerp-20120702050202-w4jckxy9pl7nv2lz
bzr revid: launchpad_translations_on_behalf_of_openerp-20120630054013-e34e1rm8p6gb0qgq
bzr revid: launchpad_translations_on_behalf_of_openerp-20120702050210-43c28ektiwcmzzn8
2012-07-02 05:02:10 +00:00
Xavier Morel b2042b36e4 [IMP] export translatable strings
bzr revid: xmo@openerp.com-20120629155436-358c4mvcgj5kflf2
2012-06-29 17:54:36 +02:00
Xavier Morel 1376020559 [FIX] make datepicker and timepicker translatable
bzr revid: xmo@openerp.com-20120629152811-9015tj66xzfw94o2
2012-06-29 17:28:11 +02:00
Xavier Morel e1df6e9a7d [FIX] remove custom error handling on saving kanban records
hides actual error (which may be e.g. validation error) and adds no value

bzr revid: xmo@openerp.com-20120629131611-r1ydn6b0f8agi85n
2012-06-29 15:16:11 +02:00
Xavier Morel 548be06651 [FIX] correctly pass along options in ProxyDataSet#write calls
bzr revid: xmo@openerp.com-20120629130703-7hgylg6uulp9pkka
2012-06-29 15:07:03 +02:00
Xavier Morel f1fbb9018b [FIX] missing comma in CSS leading to incorrect selectors
bzr revid: xmo@openerp.com-20120629130319-zn9sc9xkaz01n0yv
2012-06-29 15:03:19 +02:00
Olivier Dony 978bb2f119 [MERGE] OPW 572856: translate: attempt to auto-detect user's language preferences when no context is available
lp bug: https://launchpad.net/bugs/434266 fixed

bzr revid: odo@openerp.com-20120629123912-uum4n4rqz0pddmca
2012-06-29 14:39:12 +02:00
Xavier Morel 85884f6485 [FIX] Add new operator case to advanced search: field is set or is not set
lp bug: https://launchpad.net/bugs/1013528 fixed

bzr revid: xmo@openerp.com-20120629121805-mosmy1t366sozv1e
2012-06-29 14:18:05 +02:00
Olivier Dony e3922a054b [FIX] OPW 572856: translate: attempt to auto-detect user's language preferences when no context is available
lp bug: https://launchpad.net/bugs/434266 fixed

bzr revid: odo@openerp.com-20120629120418-q61hd8cbxy2nftva
2012-06-29 14:04:18 +02:00
Bhumi Thakkar (Open ERP) be07ba003f [FIX] Implement is set and is not set for char,inetger,float,date,datetime widget.
bzr revid: bth@tinyerp.com-20120629111236-27j1mj5krha0rkkm
2012-06-29 16:42:36 +05:30
Xavier Morel e979565c68 [FIX] action-type button from a list row being edited in an o2m
Issue 575065

Flow for a button[@type=action] requires going through multiple RPC
calls to execute action. Due to reloading behavior of o2m-list on
actions (saves containing form then executes action then reloads row),
internal form view gets removed while e.g. server action is being
fetched (in Views#do_execute_action).

Problem: there is guard on ``rpc`` call which drops response to
stopped widget (Widget#rpc) => action/load call never returns
successfully because linked form is dead.

Solution: instead of calling View#do_execute_action via the formview,
call it via the listview (do_execute_action was already partially
overridden to change the ``on_close`` callback, override it further).

=> widget still lives, and rpc requests execute correctly leading to
all actions being correctly called (mostly).

bzr revid: xmo@openerp.com-20120629105325-vmwpyi7w3pc33sg9
2012-06-29 12:53:25 +02:00
Xavier Morel 6f22caee30 [FIX] server action not returning anything should be treated as an empty action descriptor
bzr revid: xmo@openerp.com-20120629095753-n7o6armcs68y8dsr
2012-06-29 11:57:53 +02:00
Xavier ALT c576c4c2e9 [MERGE] OPW 573621: web_calendar: fix localisation of calendar view
backport of trunk fme@openerp.com-20120625115839-vgdsq9g5p4d4x51b

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

bzr revid: xal@openerp.com-20120629103512-cg9sbfsesxi2jef1
2012-06-29 12:35:12 +02:00
Launchpad Translations on behalf of openerp 06509a0043 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120626054629-tn9lvdwswmjd4k09
bzr revid: launchpad_translations_on_behalf_of_openerp-20120627061344-yrppqj2hh5w0b03e
bzr revid: launchpad_translations_on_behalf_of_openerp-20120628051201-11jou6kk8vd97bld
bzr revid: launchpad_translations_on_behalf_of_openerp-20120629050923-5omtp9heor1e7clm
2012-06-29 05:09:23 +00:00
msh-openerp e4a99a044c [FIX]Fixed the issue of on_rpc_error in kanban view, if we have raised the exception from addons on state change still we will not be able to see the CrashManager and instead of it we will have an static message that error while changing the state...
bzr revid: msh@tinyerp.com-20120628094913-es9hgfl51e6x21f9
2012-06-28 15:19:13 +05:30
Launchpad Translations on behalf of openerp 8d311a136a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120626054725-sfkh458dji20957x
bzr revid: launchpad_translations_on_behalf_of_openerp-20120628051241-wa9tpq3yf1fzqm3y
2012-06-28 05:12:41 +00:00
Olivier Dony a0dd1a8acc [MERGE] OPW 574360: yaml_import: properly handle x2m default values
bzr revid: odo@openerp.com-20120625161954-pl0ma1kilq599yxe
2012-06-25 18:19:54 +02:00
Olivier Dony e3f997c44d [FIX] yaml_import: support False as a o2m default value
bzr revid: odo@openerp.com-20120625144013-r6j6zabaap6739gf
2012-06-25 16:40:13 +02:00
Xavier Morel 9029f24d87 [FIX] action buttons activated in editable o2m lists during or after row edition
bzr revid: xmo@openerp.com-20120625072046-29tg3vnnpkhj8fe9
2012-06-25 09:20:46 +02:00
Xavier Morel 942f72b578 [MERGE] behavioral fixes and changes to editable list o2ms
* Correctly propagate current validation status of row being edited
* Automatically save row being edited upon leaving it
* Replace "Save" button (floppy) by "Cancel" (cross)
* Allow easier overriding of Groups and List sub-widgets

bzr revid: xmo@openerp.com-20120625070901-4cs6v24exjk5z2fa
2012-06-25 09:09:01 +02:00
Xavier Morel a227e1e43c [CHG] reintroduce a button at the end of the line, but use the cross as a cancel
bzr revid: xmo@openerp.com-20120625065812-6n8lxb0zimzvq1ee
2012-06-25 08:58:12 +02:00
Launchpad Translations on behalf of openerp bd909a7ce6 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120622051328-pcxd9js5f92wdgmr
bzr revid: launchpad_translations_on_behalf_of_openerp-20120623052419-1961hw7lylxyxmis
bzr revid: launchpad_translations_on_behalf_of_openerp-20120624055418-uwu6rzb83nei1970
bzr revid: launchpad_translations_on_behalf_of_openerp-20120625053327-yvs063aomd7l98tu
2012-06-25 05:33:27 +00:00
msh-openerp 563bf4d709 [FIX]Fixed the issue of coma missing in base.css, which do not loads required class for the textarea.
bzr revid: msh@tinyerp.com-20120625043126-gfvq0so0v2257wbw
2012-06-25 10:01:26 +05:30
Olivier Dony b4be8b80b2 [MERGE] mail: avoid obscure failure when processing batches of emails with attachments
This issue was caused by the way browse_records are cached,
  in combination with the deletion of messages just after sending
  them. When processing a second message, the attachment.datas
  function fields gets computed for all messages that are being
  browsed, including the first message that was already deleted,
  causing an exception. The value of the function field had 
  already been computed for the first message, but had been
  discarded by the message.refresh() call.
  Hopefully this kind of issue will disappear once we implement
  the new ORM API.

bzr revid: odo@openerp.com-20120622152536-42b2s28lvdv3odyr
2012-06-22 17:25:36 +02:00
Xavier Morel d64f983fce [FIX] correctly reload an o2m list *after* triggering an action from a row being edited
bzr revid: xmo@openerp.com-20120622150117-w04eibub93ve81mo
2012-06-22 17:01:17 +02:00
Xavier Morel 9e134c9afa [IMP] move ListView.List#reload_record to ListView
bzr revid: xmo@openerp.com-20120622135015-dsvjblv1rd4oezcp
2012-06-22 15:50:15 +02:00
cpa-openerp 45fe4e10b2 [FIX] Fixed options not reach at write method of DataSet.
bzr revid: cpa@tinyerp.com-20120622113153-xdwtfb3lzya65u4v
2012-06-22 17:01:53 +05:30
Olivier Dony 95e00367f5 [FIX] mail: avoid obscure failure when processing batches of emails with attachments
This issue was caused by the way browse_records are cached,
in combination with the deletion of messages just after sending
them. When processing a second message, the attachment.datas
function fields gets computed for all messages that are being
browsed, including the first message that was already deleted,
causing an exception. The value of the function field had 
already been computed for the first message, but had been
discarded by the message.refresh() call.
Hopefully this kind of issue will disappear once we implement
the new ORM API.

bzr revid: odo@openerp.com-20120622093123-wpk8ht454w7p2c1w
2012-06-22 11:31:23 +02:00
Xavier Morel 5182068b43 [FIX] ensure containing form is saved when triggering an action from an editable o2m list
After opening a record with a list o2m, editing said list o2m and
saving a row, clicking the action button would lose all data
explicitly changed: the o2m would just call the action without saving
the form's current state, so the corresponding server method would
only be able to use data previously saved.

Fixed by overriding do_button_action, and only calling the _super()
method after the parent form has announced it is saved (either because
nothing was changed or because it did indeed save itself).

bzr revid: xmo@openerp.com-20120622085432-mh3977uygua5bypn
2012-06-22 10:54:32 +02:00
Launchpad Translations on behalf of openerp 838b035f5a Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20120622051402-aeivuh5dgoe8idc5
2012-06-22 05:14:02 +00:00
Christophe Simonis 136589aafd [FIX] base_vat: correct Switzerland VAT check
bzr revid: chs@openerp.com-20120621143152-1h8xvyoj5rw899ww
2012-06-21 16:31:52 +02:00
Olivier Dony 2a31beee8b [MERGE] orm: make sure all *Model classes define _auto,_register,_transient
This is required to avoid strange mro() pitfalls
where an AbstractModel is inherited by a Model,
and the _auto=False of AbstractModel ends up
first in the mro() because Model does not explicitly
define it, and the BaseModel default _auto is farther
in the mro().

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

bzr revid: odo@openerp.com-20120621110825-ry8e5tktvwv3h4tm
2012-06-21 13:08:25 +02:00
Olivier Dony a320a72cf8 [FIX] yaml_import: fix incorrect m2m default handling from previous commit
bzr revid: odo@openerp.com-20120621110532-fsi7hz8fllnlab07
2012-06-21 13:05:32 +02:00
Xavier Morel 1851e1735e [MERGE] visual effects fix on diagram nodes in firefox
bzr revid: xmo@openerp.com-20120621105658-2bgozggy6ouz9fca
2012-06-21 12:56:58 +02:00
Xavier Morel a4004f0bd5 [IMP] simplify localconnector's exception converter: use Python's facilities correctly
bzr revid: xmo@openerp.com-20120621103342-nea9yw135dl5lsta
2012-06-21 12:33:42 +02:00
Xavier Morel 7ee3c3f43d [MERGE] ensure exception information is correctly converted to string before being concatenated with the faultCode string (sic) of emulated XMLRPC faults
bzr revid: xmo@openerp.com-20120621102940-2lh6ho6v6d64h8hr
2012-06-21 12:29:40 +02:00
Xavier Morel ace69b6921 [MERGE] move filtering of non-searchable fields to prune the fields list itself
if only the *display* list is filtered, the advanced search engine may
still attempt to *select* a non-searchable field (if it's the first
one) leading to broken/nonsensical behavior. 

Non-searchable fields should be removed from the advanced search's
ability to find them altogether.

bzr revid: xmo@openerp.com-20120621101103-k842i8h1rxlr4n9k
2012-06-21 12:11:03 +02:00
Xavier Morel 326d6f419a [FIX] incorrect clearing of default values on selection fields in search view
and simplification of the same on basic fields

bzr revid: xmo@openerp.com-20120621101009-vg0rnwnitxfhaill
2012-06-21 12:10:09 +02:00
Olivier Dony 2611c22efe [FIX] orm: make sure all *Model classes define _auto,_register,_transient
This is required to avoid strange mro() pitfalls
where an AbstractModel is inherited by a Model,
and the _auto=False of AbstractModel ends up
first in the mro() because Model does not explicitly
define it, and the BaseModel default _auto is farther
in the mro().

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

bzr revid: odo@openerp.com-20120621100900-xejo9yhgx36kyh03
2012-06-21 12:09:00 +02:00