Commit Graph

90735 Commits

Author SHA1 Message Date
Christophe Simonis ab6318e538 [FIX] base: ir.model.data.name_get() respect expected behavior.
name_get() must return a value for each ids and keep order of ids.
2014-09-09 13:28:47 +02:00
Raphael Collet ecd8b5222b [FIX] account.invoice.line: move context to last position in onchange methods
The methods product_id_change() and uos_id_change() have been converted to the
new api, and now use the decorator @multi.  When invoked with the old api, by
convention the methods will take the last argument as the context.  But this
will not work properly for those methods, as the context is passed in another
position.  In order to avoid an argument swap in the api wrapper, we moved the
context to its expected position.

Fixes #1943
2014-09-09 11:50:10 +02:00
Olivier Dony 5388eee321 [IMP] auth_crypt: auto-install, improve description, bump version
The compatibility issue with auth_ldap has been
fixed and the default key derivation function
switched to PKDF2+SHA512. `auth_signup` provides
a password reset mechanism that can be used in
combination with `auth_crypt`.
2014-09-09 10:35:38 +02:00
rolvraen 131d4c97c2 [ADD] l10n_no: Add Norwegian chart of accounts
Fixes #1272
2014-09-09 10:12:54 +02:00
Raphael Collet 7190bb7886 [IMP] doc/backend: add example using jsonrpclib 2014-09-09 10:12:00 +02:00
Raphael Collet ab3ec1ef6c [IMP] openerp/http.py: accept mimetype application/json-rpc for json-rpc calls 2014-09-09 10:11:33 +02:00
Xavier Morel c5fbb47abf [ADD] doc: model inheritance stuff 2014-09-09 09:19:32 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +02:00
Simon Lejeune 9f0834771d [FIX] web: base.css: fixed width for input of file type under oe_avatar
Browsers add different width to input of file type, messing up the usability of the
product formview placing  a 'phantom' box in front of the options. Added a specific
css rule for this case.
2014-09-08 19:00:52 +02:00
Denis Ledoux c12a2e1d16 [FIX] web: failing onchanges should not prevent to save
This patch is related to 82adba4714

With the above patch, it wasn't possible anymore to save if an onchange failed. This isn't the expected behavior.
Besides, $.when.apply($, defs) is rejected as soon as one def fails, without waiting other defs to be either resolved or rejected.

This new patch allows to save if onchange fails, and wait for onchanges sequentially.
2014-09-08 18:27:05 +02:00
Frederic van der Essen 89e179971a [FIX] point_of_sale: flush orders before closing the pos. This will help prevent users from closing the session with unflushed orders 2014-09-08 18:06:51 +02:00
Frederic van der Essen a11b530b9b [FIX] point_of_sale: activate on screen keyboard for user search 2014-09-08 18:06:51 +02:00
Frederic van der Essen bde444c09d [FIX] point_of_sale: prevent inexact payements when there is no cash payment method available as it will crash the backend 2014-09-08 18:06:51 +02:00
Frederic van der Essen 2a10394880 [FIX] point_of_sale: the self_checkout related fields are obsolete and should be removed, but we are too late in the release schedule to do so. Marking them as FIXME, to be removed for next major version 2014-09-08 18:06:51 +02:00
Frederic van der Essen 53cde4f7f4 [WIP] point_of_sale: checking for consistency between the user and the session's company 2014-09-08 18:06:51 +02:00
Frederic van der Essen dc8e18ac04 [WIP] point_of_sale: refactor error popups in preparation of a multicompany-screwup prevention error popup 2014-09-08 18:06:51 +02:00
Raphael Collet 7be175bad6 [IMP] doc/backend: add example for JSON-RPC interaction 2014-09-08 17:16:10 +02:00
Olivier Dony d32d120a0a [MERGE] Forward-port of saas-5 up to 9ce08b7 2014-09-08 16:54:10 +02:00
Olivier Dony 491162e653 [FIX] ir.qweb: consider empty cached bundle as a cache miss
Sometimes a cached bundled could be missing in the
ir.attachment filestore (for example after copying
a database for test purposes without duplicating
the filestore as well).
When this happens ir.attachment will return an empty
file contents ; treat this as a cache miss.

This means empty bundles would not be cached, which
is not a big issue - there is little benefit in
caching them, and they should not be common nor
useful.
2014-09-08 16:52:42 +02:00
Olivier Dony a03dfefda9 [FIX] ir.attachment: less non-transactional side-effects during deletion
When deleting filesystem-backed attachements, the
deletion on the file-system is not transactional.
In the event of a transaction rollback, the file
deletion would not be rolled back, which is a
dangerous side-effect.

This can happen for example when several transactions
try to delete the same file(s) at the same time.
The duplicate deletions might be detected by the
database (being concurrent update errors), and rolled
back at the point of the DELETE query, to be retried.
If the files have already been deleted in the file
system it before the rollback, it leaves the system
in an inconsistent state, at least temporarily.

One case where we have seen it is when web bundles
are loaded by many web users at the same time, right
after being updated (and thus invalidated).
As they are currently cached as ir.attachment records,
this often causes a corruption of the cache.
2014-09-08 16:52:42 +02:00
Olivier Dony 46784659f9 [IMP] ir.attachment: include traceback when logging low-level filesystem errors 2014-09-08 16:52:41 +02:00
Simon Lejeune bce4e227b5 [FIX] Calendar: fix some display issues
* render the invitation widget inside oe_application
* override the margin of oe_right in order to display the two div on the same line
2014-09-08 15:42:11 +02:00
Simon Lejeune 74aa7406bf [FIX] web: webclient_bootstrap: render the menus when the user is really a user
The webclient rendering is done in two parts: the server renders the boilerplates
including the menus, and then the  javascript launch the webclient using the
server-side boilerplates. In some case, we want to render the boilerplates but not
the menus (auth_calendar). Added groups around the t-call to the menu in the web
template. Fixes issue #2044.
2014-09-08 15:42:10 +02:00
Niels Huylebroeck 9ce08b78ce [FIX] stock_account: Preserve action_done return value
stock_account module override the action_done method of stock.move but does not return the same value
This causes problems when calling this function from xmlrpc because the resulting value is now None and that is not allowed to be marshaled by default.
2014-09-08 14:34:02 +02:00
Xavier Morel 7558e2e786 [IMP] distribute branding on @groups instead of disabling edition
Avoids 2 rendering passes, and allows editing e.g. events detail page, which
couldn't be done (due to groups=public in a mail component)

fixes #1994
2014-09-08 11:16:06 +02:00
Christophe Simonis 31b58d553c [REVERT] 2 previous commits (f3333f9 and 6e5b09a) 2014-09-05 17:25:56 +02:00
David Monjoie 6e5b09acfa [FIX] removed bad comments from previous commit 2014-09-05 17:12:49 +02:00
David Monjoie f3333f9c57 [ADD] website_sale_digital 2014-09-05 17:11:12 +02:00
Fabien Meghazi c981d068ab [FIX] Restore /login redirection on SessionExpired
The feature was broken due to an incompatibility
when forward porting 624f256 and a78e27f
2014-09-05 16:24:59 +02:00
Denis Ledoux fc5c53ca47 [FIX] point_of_sale: field type on bank statement line no longer exists 2014-09-05 15:59:43 +02:00
Jeremy Kersten 70dc7c819b [IMP] base: Odoo-ification and bootstrapification from the "About Us" popup 2014-09-05 15:18:07 +02:00
Jeremy Kersten 0888a92075 [IMP] website: google analytic - use Automatic Cookie Domain Configuration.
Automatic Cookie Domain Configuration simplifies cross domain tracking implementations by automatically writing cookies to the highest level domain possible when the auto parameter is used. When used on the domain www.example.co.uk, it will try to write cookies in the following order:

co.uk
example.co.uk
www.example.co.uk
Analytics.js will fail to write a cookie on co.uk but will succeed on example.co.uk. Since a cookie was succesfully written on a higher level domain, www.example.co.uk will be skipped.
2014-09-05 14:51:08 +02:00
Fabien Meghazi ed1c173971 [FIX] Some fixes for base_import_module
- Properly check unmet dependencies
- Set imported module's state to 'installed'
- Fix bad translation usage
2014-09-05 12:32:11 +02:00
Christophe Simonis 41afeec7f1 [MERGE] forward port of branch saas-5 up to 9363bc9 2014-09-04 18:03:24 +02:00
Denis Ledoux 2d9ddce327 [FIX] website_quote: onchange return nothing if product is False 2014-09-04 17:55:48 +02:00
Christophe Simonis 9363bc9182 [MERGE] forward port of branch saas-3 up to 3d80dc2 2014-09-04 17:51:42 +02:00
Christophe Simonis 3d80dc2bbf [MERGE] forward port of branch 7.0 up to 59b76ee 2014-09-04 17:46:51 +02:00
Your Name 59b76ee927 [FIX] sale: keep page when confirming a sale order
To keep the pager and view changer after confirmation of a sale order, do not reload the view (quotation and sale order view are the same anyway)
Fixes #250
2014-09-04 17:34:46 +02:00
Denis Ledoux 82adba4714 [FIX] web: wait onchanges to be processed before save 2014-09-04 17:22:04 +02:00
Christophe Simonis 80a932479b FIX] packaging: odoo-ification 2014-09-04 16:27:58 +02:00
Xavier Morel 2232453760 [IMP] doc: move version switcher to header
as recommended by nwi

use same style as logo but very slightly smaller font, otherwise the
difference is a bit jarring as numbers are much bigger than the app logo's
text
2014-09-04 16:24:56 +02:00
Raphael Collet 68777c5860 [IMP] models: inherited fields are related fields read as the current user
Add an attribute 'related_sudo' (True by default) for related fields.
A related field is computed as superuser if related_sudo is True.

Add explicit related fields 'name' and 'email' on 'res.users', as these should
be readable by the public user with module website_forum.
2014-09-04 16:10:48 +02:00
Raphael Collet d6f375df61 [IMP] models: "X in self" is now equivalent to any(X == rec for rec in self)
Fix modules with code like "record.id in other.stuff_ids".
2014-09-04 15:31:04 +02:00
Raphael Collet 070f28dce6 [FIX] base: remove test_ir_model, which causes bugs
The test in test_ir_model creates a custom model.  This causes a full reload of
the registry, which recursively installs the required modules while 'base' is
being tested.  As a side effect, it commits stuff from the database, so that
the effects of test_ir_model are actually not rolled back.
2014-09-04 14:59:45 +02:00
Somesh Khare cce70fd4c9 [FIX] document: display Attachment(s) menu only on form view
The attachment menu (list and add) has no effect in tree view (not supporting multi-items upload and display), the menu should then only be displayed in these view (opw 612534)
2014-09-04 14:47:06 +02:00
Xavier Morel bb007dd040 [ADD] support for a version switcher in odoo theme thing
needs beauty input
2014-09-04 14:43:55 +02:00
Xavier Morel 39208e1f42 [ADD] doc's readme
* also only enable linkcode if Sphinx >= 1.2
* fix html inline roles?
2014-09-04 14:43:54 +02:00
Jérome Maes 2942492245 [FIX] im_chat : enable chat widget only for base.group_user 2014-09-04 14:26:07 +02:00
Christophe Matthieu c9a134b541 [FIX] website_sale: customer write on public user and the sale order is apply to public user if the public user is active=True; the checkout layout display state_id field twice 2014-09-04 13:31:44 +02:00
Denis Ledoux a587e1bc17 [MERGE] forward port of branch 7.0 up to 5872c24 2014-09-04 12:31:14 +02:00