Commit Graph

70828 Commits

Author SHA1 Message Date
Launchpad Translations on behalf of openerp 64cc283264 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131219061541-j0v5712t55sdiqb6
2013-12-19 06:15:41 +00:00
Xavier Morel 1b76c66930 [MERGE] fixes for non-direct IME
bzr revid: xmo@openerp.com-20131218152626-kexq1wudvjwnh962
2013-12-18 16:26:26 +01:00
Martin Trigaux fe5383f0e2 [MERGE] [IMP] account_payment: remove widget=selection (was forcing the preloading of every partner for an invisible field)
bzr revid: mat@openerp.com-20131218144617-pq3oy121rxaxiu5r
2013-12-18 15:46:17 +01:00
Xavier ALT 9491755b8b [FIX] web: only show in 'Advanced Search', fields that are actually searcheable and avoid duplicate 'ID' field
bzr revid: xal@openerp.com-20131218113547-myl7eihvw5vbzkaa
2013-12-18 12:35:47 +01:00
Xavier ALT bf324b417c [FIX] base: make explicit, that res.users reified fields are not selectable
bzr revid: xal@openerp.com-20131218111214-543cjhkp6k0steyi
2013-12-18 12:12:14 +01:00
Launchpad Translations on behalf of openerp d23b68540b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131218055330-dvkrpp97rqo7gcf2
2013-12-18 05:53:30 +00:00
Xavier ALT 6dc8698319 [FIX] base: remove old deprecated file ``base_module_scan.py``.
This file was wrongly left-over from ancient v6.1 times and not used at all under v7.0.

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

bzr revid: xal@openerp.com-20131217154915-v6iy8us55k8rp7nc
2013-12-17 16:49:15 +01:00
Xavier ALT 4986d636b4 [FIX] translation: force clearing of cached translated term after a successfull `trans_load_data`
When re-loading a translation (with 'Overwrite Existing Terms') we need to
  empty the translation cache to ensure overwritten terms get their new values.

bzr revid: xal@openerp.com-20131217145738-9oy2fjhbc46yzonq
2013-12-17 15:57:38 +01:00
Cecile Tonglet 0877e27f82 [FIX] The widget selection on partner_id force the form to load every partner for nothing
bzr revid: cto@openerp.com-20131217140015-f3v3tjmrhnwjfsqi
2013-12-17 15:00:15 +01:00
Denis Ledoux df0a13ab4c [FIX]sale_crm: quotation/sale order default section_id based on res_users default_section_id
bzr revid: dle@openerp.com-20131217124201-kha2717b4ka51aih
2013-12-17 13:42:01 +01:00
Xavier ALT ea1129b8f5 [FIX] base: use correct field for user's last connection.
We need to display user's last login date, not inherited res.partner ``date``
 field. This has been renamed from 'date' to 'login_date' in revision-id:
   tde@openerp.com-20120810081632-a4sg4ve68gpx6bx4

bzr revid: xal@openerp.com-20131217121132-97j3k64c875cu3h5
2013-12-17 13:11:32 +01:00
Olivier Dony df0ba6c7e8 [FIX] project_mrp: local copy of the "Procurement" process node to avoid errors during updates when sale_stock is not installed
The various attempts to fix this error without duplicating the node
have all caused other errors. Having a duplicate process node has
no consequence on business operations, so it is an acceptable
workaround until the node can be moved to the sale module.

bzr revid: odo@openerp.com-20131217104301-t8fsf28jgjqq9q7k
2013-12-17 11:43:01 +01:00
Martin Trigaux cfd24d9822 [FIX] view_list_editable: toggle visibility (using force_visibility attribute) for readonly changes, using effective_invisibility instead of invisibility attribute (opw 601970)
bzr revid: mat@openerp.com-20131217104111-u9bnqvz7rd5rzwnc
2013-12-17 11:41:11 +01:00
Xavier ALT e7c1baa4d4 [FIX] base: do not traceback when removing country code
bzr revid: xal@openerp.com-20131217092010-p7mbiu1057e2v96z
2013-12-17 10:20:10 +01:00
Launchpad Translations on behalf of openerp 04837c244f Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131217061356-7230cnvseunpundw
2013-12-17 06:13:56 +00:00
Olivier Dony d08821442e [FIX] base_action_rule: upon update/create of an automated action in multiprocess mode, force registry reload
Short of signaling the other workers, the (new) automated
rule may be randomly ignored, depending on which worker
handles the request (until the workers all reload
their registries).

bzr revid: odo@openerp.com-20131216142049-xh9gxy5cir3p2i09
2013-12-16 15:20:49 +01:00
Xavier ALT 0a3b4b7fb7 [FIX] document: duplicate directory detection should work even when a record rule prevent user from seeing duplicates
bzr revid: xal@openerp.com-20131216131949-6k0fxumgl1k1roy1
2013-12-16 14:19:49 +01:00
Xavier ALT 6fab66d6f7 [FIX] document: duplicate directory detection should work even when a record rule prevent user from seeing duplicates
bzr revid: xal@openerp.com-20131216123954-px10qz9g3qxng6c6
2013-12-16 13:39:54 +01:00
Denis Ledoux af22a1c5b7 [FIX] account_analytic_analysis: is_overdue_quantity was not updated when quantity max was changed
is_overdue_quantity is a stored function field which was updated only when analytic lines where updated. Or, when the quantity_max field is updated, this field should be recomputed and restored. This is now the case

bzr revid: dle@openerp.com-20131216111218-zcz8qwa7zn3iwvye
2013-12-16 12:12:18 +01:00
Launchpad Translations on behalf of openerp 94b4618c13 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131215054553-py8zfwrk3bir6m1l
bzr revid: launchpad_translations_on_behalf_of_openerp-20131212055820-zh0fqpweezvphdc6
bzr revid: launchpad_translations_on_behalf_of_openerp-20131213064308-hil3cycv38im8qds
bzr revid: launchpad_translations_on_behalf_of_openerp-20131215054616-uyc9y42oetvmq1cs
bzr revid: launchpad_translations_on_behalf_of_openerp-20131216053557-w3gf0jlw5wrtzllr
2013-12-16 05:35:57 +00:00
Martin Trigaux 385a54cb83 [MERGE] [FIX] fields: avoid traceback when rendering reference field if link is broken (name_get returns no result)
bzr revid: mat@openerp.com-20131211165521-dxcjq7e35q8i0xs9
2013-12-11 17:55:21 +01:00
Martin Trigaux 61db0a7755 [MERGE] [FIX] res_users: skip method _get_reified_groups if read returns no result (avoid traceback)
bzr revid: mat@openerp.com-20131211165047-7jq1got6aikjmdry
2013-12-11 17:50:47 +01:00
Denis Ledoux 89a9dbee75 [FIX] mrp: cost structure report, do not display twice main supplier
bzr revid: dle@openerp.com-20131211134120-fco4rlqjh258ba36
2013-12-11 14:41:20 +01:00
Martin Trigaux 585c72abd7 [MERGE] [FIX] Grouped ListView: avoid removing info in row title (such as total) when removing page numbers (if grouped view contains more than 80 elements) (opw 594708)
bzr revid: mat@openerp.com-20131211113330-c6mnxwba7yvxaqmc
2013-12-11 12:33:30 +01:00
Martin Trigaux ad7951214c [MERGE] [FIX] One2ManyListView: reload line data without saving it when m2o record has changed in edition mode (eg: changing product name in sale order line) (opw #600224)
bzr revid: mat@openerp.com-20131211105009-iylczcepd3a0e61l
2013-12-11 11:50:09 +01:00
Cecile Tonglet a48c8119ca [FIX] name_search() where _rec_name is a reference field and links are broken
bzr revid: cto@openerp.com-20131211103842-i1n9t8mg9kuw77v3
2013-12-11 11:38:42 +01:00
Launchpad Translations on behalf of openerp 767207aa23 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211062724-zxcigdht6w71xy7v
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211062802-mh61vodnsw0sr8im
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211062808-o9fkpg2cg9cb403z
2013-12-11 06:28:08 +00:00
Denis Ledoux 34c6eb963a [FIX] point_of_sale: fix default destination(or source, for returns) location for pos order moves
For instance, the source location of moves of returned products was output instead of partners locations / customers

bzr revid: dle@openerp.com-20131210181733-2rjw6cas8bjypp2p
2013-12-10 19:17:33 +01:00
Christophe Simonis 1734cea7d6 [MERGE] annoucement bar
bzr revid: chs@openerp.com-20131210181038-lzeg6v4n9qdup9tp
2013-12-10 19:10:38 +01:00
Christophe Simonis 0d02d06675 [IMP] mail: announcement bar: hardcode close ttl + update link with dbuuid
bzr revid: chs@openerp.com-20131210174728-hgkbv609mwq8iuu5
2013-12-10 18:47:28 +01:00
Denis Ledoux b2eb65f04e [FIX] purchase: set readonly on warehouse_id related field in stock.picking.in
bzr revid: dle@openerp.com-20131210165627-7uy323jt6k1302kz
2013-12-10 17:56:27 +01:00
Denis Ledoux 5cecb92cf8 [FIX] stock: incoming shipment supplier quick create was creating a customer instead of a supplier
bzr revid: dle@openerp.com-20131210160505-xdeeyooj07im8vz3
2013-12-10 17:05:05 +01:00
xmo 762774df37 [FIX] prevent field going to be misplaced when going from readonly to writable in editable list view
bzr revid: mat@openerp.com-20131210155703-2mzqa2mch46nxpcj
2013-12-10 16:57:03 +01:00
Cecile Tonglet 5de64b65c6 [FIX] Calling read() on a not-existing user id crash instead of returning False
bzr revid: cto@openerp.com-20131210153519-4yx724gffll27fb5
2013-12-10 16:35:19 +01:00
Xavier ALT 9a4c62861f [FIX] orm: early return within ``_apply_ir_rules`` for superuser.
Save a few time by not not trying to apply ir.rule for superuser, that will
  anyway be skipped within ir.rule's ``_compute_domain`` method.

bzr revid: xal@openerp.com-20131210140330-oui4oy8pez12xkxv
2013-12-10 15:03:30 +01:00
Xavier Morel 9322b677aa [FIX] weird behavior when drag&dropping a row during edition in editable listview
When dropping, would simultanously stop the edition and try a write
(so 2 writes on the same record) and generally screw up the state of
all the things, ending up with an empty row and a weird (and
incorrect) warning.

This can be fixed by preventing resequencing during the creation or
edition of a record (row) inline.

For simplicity, implemented by looking up .ui-sortable descendants —
there are no utility methods for handling that and, aside from the
class, there's no good way to know if sortability was enabled on a
list body or not (as far as I can see, jquery-ui's sortable has no API
to query that) — and using jquery-ui's sortable API for enabling and
disabling sortable on the fly.

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

bzr revid: xmo@openerp.com-20131210124755-ugr3ehf744qoh1o5
2013-12-10 13:47:55 +01:00
Xavier ALT f5458a954d [FIX] orm: cleaner batch number of records for auto_init() stored fields.function update
bzr revid: xal@openerp.com-20131210122312-f3f4h0z4lpiagsk3
2013-12-10 13:23:12 +01:00
Martin Trigaux f32b87e14d [FIX] css: avoid tabs in row below to move when selected (opw 601379)
bzr revid: mat@openerp.com-20131210112444-pk9yh8bke1z7eerr
2013-12-10 12:24:44 +01:00
Xavier ALT a3b8c3aa4e [FIX] crm: use email widget for email_from field in Opportunities form view
bzr revid: xal@openerp.com-20131210110007-v1bdkrxadwr661yv
2013-12-10 12:00:07 +01:00
Xavier Morel 029c866b8c [FIX] issue when tabbing too much at end of editable list row
Tabbing is intercepted by keydown_TAB, which — if the current cell is
the last active field of the row — will then call _next:476. _next
then calls save_edition:300 which "takes a lock" (more precisely
serializes access to its body) and within its body checks if an
edition is active (:303) and returns immediately if not (:304).

The problem here is when a second tab event arrives during the
potentially extremely long save_edition body (since for toplevel lists
it needs to perform a complete RPC call): the overall state of the
list has not changed so the second event *also* goes into _next, then
into save_edition. There it's serialized with the ongoing call and
thus inactive until said ongoing call's termination, and reaches the
body after the current edition has been wound down. As a result, the
body of _next (:408) gets the resolution of ``$.when()``, which is
``null`` and the first condition blows up.

There are 3 possible ways to fix this:

* adding a check in keydown_TAB's handler to see whether a _next call
  is ongoing. This requires adding a state flag to the object and does
  not protect (or cooperate with) _next calls from outside this
  specific handler, unless they are modified in turn.

* alter save_edition to *fail* in case there's no ongoing edition:
  this part was originally in ensure_saved which does not care whether
  a save was necessary or not and does not propagate save information,
  so ``$.when()`` made sense. In save_edition, there are really 3
  different outcomes: the save succeeded, the save failed (or
  potentially part of save's postprocessing failed, for the current
  implementation) and the save was unnecessary. But deferred only
  provide 1 bit of state (success or failure), so the last state has
  to be merged into either success or failure.
 
  Both make sense, to an extent. Changing from one to the other (as
  necessary here) could break existing code and have more extensive
  effects than expected.

* the simplest and least far-raging change is to just alter the
  save_edition().then handler to ignore cases where save_edition()
  results in no saveinfo, this can be assumed to be a
  bailed-out/unnecessary save call.

For simplicity, the 3rd solution was picked here although with more
extensive tests &al I'd have preferred trying out 2nd.

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

bzr revid: xmo@openerp.com-20131210093055-207fevqc1npy7fwr
2013-12-10 10:30:55 +01:00
Christophe Simonis 5520d73d5f [IMP] mail: announcement bar: no dblclick
bzr revid: chs@openerp.com-20131209192450-zacfq6i0xli7vjju
2013-12-09 20:24:50 +01:00
Christophe Simonis f8b889e1db [IMP] mail: announcement bar only for screen
bzr revid: chs@openerp.com-20131209192400-01jpkaofq1arqekz
2013-12-09 20:24:00 +01:00
Cecile Tonglet 86776035ba [FIX] Model.create: trigger stored field recalculation for implicit parent_id fields during create
The create() method implicitly creates parent records on objects of the _inherits.
Therefore, in order to make the trigger on the linked field works, we should
include all the _inherits values (fields that make the link to the parent
record) because they are created implicitly.
The write() method does not need this change, as any update of the parent
fields has to be explicit.

bzr revid: odo@openerp.com-20131209184718-wczdefzo9evc0cgc
2013-12-09 19:47:18 +01:00
Cecile Tonglet 3b328aaab4 [FIX] Trigger stored field recalculation for inherited records
The create() method implicitly creates record on objects of the _inherits.
Therefore, in order to make the trigger on linked field works, we should
include all the _inherits values (field that makes the link to the rel
record) because they are created implicitly.

bzr revid: cto@openerp.com-20131209154857-788f94w0kh6ef5pp
2013-12-09 16:48:57 +01:00
Michel Meyer 68aac8e855 [FIX] events handling ordering courtesy of Michel Meyer
lead to errors during the validation of rows in list o2ms.

See https://bugs.launchpad.net/openerp-web/+bug/1182101/comments/20
for an extensive description of the events and issue.

bzr revid: xmo@openerp.com-20131209153519-n05bdx15t75dh7gf
2013-12-09 16:35:19 +01:00
Denis Ledoux 3be327c0ae [FIX] point_of_sale: ignore TOTAlY returns
Returns were partially ignored when typing keystrokes, thanks to a return; when event which equaled 13, but the default behaviour (press on the focused input/button) was not prevented. This is now the case thanks to preventDefault. For instance, just after a discount set, the focused input was pressed and the associated value was added when scanning a new product with the scanner. Therefore, if we entered a discount of 30%, scanning a new product added '0', the last pushed button, to the discount, and then added the product.

bzr revid: dle@openerp.com-20131209145652-3g9rgnfz1w8k0whw
2013-12-09 15:56:52 +01:00
Cecile Tonglet 2e197cbb98 [IMP] Batch for the computation of function's stored values is now customizable
bzr revid: cto@openerp.com-20131209141111-tbg9x1h8l6neu0ml
2013-12-09 15:11:11 +01:00
Thibault Delavallée 93ab94a608 [MERGE] [FIX] mail: fixed message_follower_ids function field.
The set method of the field, set_followers, is now using message_subscribe and message_unsubscribe to have only one access point to adding or removing followers. Previously to this fix it was directly creating entries in the mail_followers table, neglecting the calculation of subtypes and default subtypes.

bzr revid: tde@openerp.com-20131209100822-f19udgfuubshhrg3
2013-12-09 11:08:22 +01:00
Thibault Delavallée fcd5f7d960 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20131209090903-al4o6uhrhhw4cqcl
2013-12-09 10:09:03 +01:00
Thibault Delavallée 2382710f6f [REV] mail: removed some changes to be done in trunk, not in 7.0
bzr revid: tde@openerp.com-20131209090802-q8fzn88ia9w6o5pq
2013-12-09 10:08:02 +01:00