Commit Graph
117156 Commits
Author SHA1 Message Date
Yannick Tivisse 99c79ef71b [FIX] l10n_be_hr_payroll: Fix typo in string attribute 2017-12-04 10:13:41 +01:00
keylor2906 61847490f2 [CLA] add keylor2906 to Vauxoo's CLA
Closes #21383
2017-12-04 09:50:36 +01:00
Alexander Olivares 524e631490 [CLA] update Vauxoo's CLA
Add Alexander Olivares

Done at #21385
2017-12-04 09:47:57 +01:00
Maximilien Tantin a9add3b9a8 [FIX] website_sale: translate buttons
Log In and Sign Up was not translatable

Closes #21333
2017-12-04 09:36:27 +01:00
Nicolas Martinelli d6984069c3 [FIX] base: activate currencies
Complement of 4b92f914de

opw-785831
2017-12-04 09:35:29 +01:00
Adrien Dieudonne e15e6fe32e [FIX] web_editor: support of SVG elements in snippets
Before this commit, it was not possible to save a page
containing a snippet with a SVG tag.

To support SVG elements, we need to use 'Element.getAttribute'
and 'Element.setAttribute' as mentionned in the documentation:
https://developer.mozilla.org/en-US/docs/Web/API/Element/className

For more information, see GH-14485
2017-12-04 09:24:35 +01:00
Géry Debongnie d2815c474d [FIX] payment: return widget reference
This file, like many others, does not return a reference to its main
widget, which implies that it cannot be modified/extended.  This may be
fine for Odoo itself, but some other may (and do) need to extend/include
this widget.
2017-12-04 09:18:04 +01:00
William Henrotin b62bab6992 [FIX] hr_expense: missing exception import
In hr_expense.py, a ValidationError exception can be raised in some
cases but it's not imported from odoo.exceptions
2017-12-04 09:10:18 +01:00
Nicolas Martinelli 73f7567627 [FIX] point_of_sale: default fiscal position
- Create 2 FPos (1 & 2)
- Create 3 customers:
  Customer A has no FPos
  Customer B has FPos 1
  Customer C has FPos 2
- Set-up the POS so that FPos 1 is the default FPos (FPos 2 is not
  accepted in the POS)

Issue 1
- Select Customer A

The FPos is set to blank, while one would expect to keep the default
FPos.

Issue 2
- Select Customer B
- Deselect Customer B

The FPos is set to blank, while one would expect to keep the default
FPos (as it was before selecting B).

Issue 3
- Select Customer C

The FPos is set to blank, while one would expect to keep the default
FPos since his FPos is not accepted.

opw-782855
2017-12-04 09:07:34 +01:00
Odoo Translation Bot f34d4d33a0 [I18N] Update translation terms from Transifex 2017-12-03 04:27:19 +01:00
Odoo Translation Bot 60801e5375 [I18N] Update translation terms from Transifex 2017-12-03 00:41:36 +01:00
Adrien Dieudonne dbb9338a95 [FIX] web: search_filters: avoid to apply UTC offset for date fields
Due to a previous commit (@d2e1a1de), if a date was selected in
search filter, the time was converted to UTC to the server.
For negative offset, the search was then executed for the day before.

Now, we avoid to convert the searched date to UTC.
We only need to convert datetime fields.
2017-12-01 15:36:33 +01:00
Atchuthan f03437ae00 [FIX] payment: display error message
The error message was not displayed as out of the paragraph block

Closes #21342
2017-12-01 15:33:08 +01:00
Adrian Torres 3d1e23aaba [FIX] *: Reset module states on registry init error
Commit 763d714 introduced cron job locking for databases which had
modules with states set to 'to x', however if an
installation/uninstallation/upgrade fails, the state will stay at 'to
x', and it may stay in that state for an indefinite amount of time,
meaning that cron jobs could stay locked forever.

This commit fixes this in part by adding a cleanup function to loading.py that
will be executed whenever load_modules fails, the function will change
every 'to x' module to their original state, effectively unlocking the
execution of cron jobs.

This however only works to prevent "zombie" transient states for
brand new databases, however for existing databases which already
contain some modules in a zombie state it won't do anything unless
a module is installed/uninstalled/upgraded, which may never happen.

This is where the second part comes in (ir_cron.py), when failing to
execute crons, we check if the failure was due to bad module state
and if an arbitrary amount of time (5 hours as of this commit) has passed
since the last time it was supposed to be executed, if it is the case, it means
that the cron execution failed around 5 * 60 times (1 failure per minute for 5h)
in which case we assume that the crons are stuck because the db
has zombie states and we force a call to reset_module_states.
2017-12-01 14:15:42 +00:00
qsm-odoo a13843758c [FIX] web: rainbow man followed by error dialog
The rainbow man should not be marked to be on top of every modal,
just the modals that were opened before its apparition.

opw-781102
2017-12-01 13:56:58 +01:00
qsm-odoo 4974f8edb7 [FIX] web: make submodals backdrop appear on top of parent modals
Commit https://github.com/odoo/odoo/commit/7dcb8fea642858e0bb1d68cea9707cb3c8d4328d
(and https://github.com/odoo/odoo/commit/e64cf3d606bd94f7e0d82ec907ce7d1d66222287)
were supposed to make submodals backdrop appear on top of parent modals.

The feature was however broken by another commit before it was released:
https://github.com/odoo/odoo/commit/f997c128c7295b5e76d7f77d79c4a82898debbcf
2017-12-01 13:56:58 +01:00
Nicolas Martinelli 673b9e6a4a [FIX] pos_discount: missing part in forward-port
From 5548b2ff7a

opw-783101
2017-12-01 13:51:56 +01:00
David Vidal 441b2bf894 [FIX] website_event: add missing translation term
Was added at 78014ff

Closes #21372
2017-12-01 10:59:58 +01:00
stefanorigano c201cf2b77 [IMP] doc: revamp documentation design
A comprehensive theme’s revamp, details:

=== New features ===
- Show titles permalink markers on hover
- “Scrollspy” effect for the sidebar

=== Fixes ===
- Solve an issue causing the sidebar to flicker on scroll
- Hide the sidebar if less then two links

=== Design ===
- Improve typography vertical rhythm and line height
- Visually increase separation between sections
- Review alerts and <dl> design
- Reduce cover’s size
- Reduce overall paddings/margins.

Closes #21304
2017-12-01 10:51:53 +01:00
Christophe Simonis 676c982eda [FIX] stock{,_picking_batch}: correct public method return value 2017-12-01 10:49:32 +01:00
Odoo Translation Bot 19fda52a53 [I18N] Update translation terms from Transifex 2017-12-01 02:53:01 +01:00
Christophe Simonis 42264d8dcb [MERGE] forward port branch saas-16 up to 5d7ad2b16c 2017-11-30 18:43:08 +01:00
Christophe Simonis 5d7ad2b16c [MERGE] forward port branch saas-15 up to 863fad1b53 2017-11-30 17:17:16 +01:00
Christophe Simonis 863fad1b53 [MERGE] forward port branch saas-14 up to be64ba6069 2017-11-30 17:15:51 +01:00
Cedric Snauwaert be64ba6069 [FIX] account: reconciliation of payment with statement should not ta…
…ke lock date into account

If we have a payment in october and a statement in november and the lock date is 1st november, we can't reconcile both because we try to write statement_id on payment but there is the lockdate constraint. This is not correct and we should be able to reconcile both even after lock date as it is the case for other moves.
2017-11-30 16:50:54 +01:00
Martin Trigaux e4a281b5a5 [I18N] export source terms 2017-11-30 16:03:58 +01:00
Christophe Simonis ab084d580f [MERGE] forward port branch saas-15 up to 98539336a5 2017-11-30 15:27:59 +01:00
Christophe Simonis 98539336a5 [MERGE] forward port branch saas-14 up to b780e4a0e4 2017-11-30 14:44:49 +01:00
Christophe Simonis b780e4a0e4 [MERGE] forward port branch 10.0 up to ba73fd534d 2017-11-30 14:13:39 +01:00
Christophe Simonis ba73fd534d [MERGE] forward port branch 9.0 up to fe4bb49b21 2017-11-30 13:55:01 +01:00
Thibault Delavallée 7ed8829cd8 [FIX] mail: avoid access issue for portal users
As portal users do not have access to activities it makes sense to
limit access to the various activity_* fields to employees only.
2017-11-30 13:25:28 +01:00
Vandan Shah 76fc68a9fc [FIX] google_drive: Use 'get' instead of 'post' in 'copy_doc'
Purpose
=======

This chunk of code was badly converted in P3 on https://github.com/odoo/odoo/commit/01e35141479b8dfc4a390518f89fc52e7cec5396#diff-6ad3d62d2147f2fef519473f2576b459R94
2017-11-30 13:01:33 +01:00
Thibault Delavallée fe4bb49b21 [FIX] mail: fix wrongly duplicated access right 2017-11-30 12:55:48 +01:00
Nicolas Martinelli a9ede7fdfa [FIX] account: default taxes
Use `ir.default` for default taxes. Stop using `ir.config_parameter`.

Fixes #18943
opw-778010
2017-11-30 12:15:48 +01:00
qsm-odoo 82364a2d73 [FIX] website_sale: fix product filters option's layout
Incomprehensibly broken with
https://github.com/odoo/odoo/commit/19b126210934bb3c8134f6f33417bd45104f4ecc?w=1#diff-caf4f49644744b1b91211fd12223dbd2R327
2017-11-30 11:07:47 +01:00
Christophe Simonis 99f343c7b6 [MERGE] forward port branch 9.0 up to 82bde85030 2017-11-30 10:55:32 +01:00
Martin Trigaux e7f1acf97b [IMP] doc: clarify lazy-loading 2017-11-30 10:18:10 +01:00
qsm-odoo 1f39b6021e [FIX] website: properly start all dropped snippets' animations
When a snippet is dropped into a page, all its animations are started.
The problem was that all its children's animations have to be started
and that was not the case anymore since recent big website refactoring.

Fortunately, this allows to improve and optimize animations start
function: now all animations are (re)started for a portion of a
given DOM (default to #wrapwrap) while it was only possible to
restart animation of a given DOM *element* before.
2017-11-29 17:27:27 +01:00
Danimar Ribeiro 2896193d45 [FIX] website_blog: Add empty oe_structure to allow insert content before blog posts
This commit closes #14058
2017-11-29 17:08:44 +01:00
Jairo Llopis 05938ceb3e [FIX] website: Use current website's menu to determine home page
This commit closes #20722
2017-11-29 16:59:31 +01:00
Martin Trigaux d87e1a59c0 [IMP] doc: translation documentation
Update screenshot for v11

Give examples of Do/Don't
2017-11-29 16:41:19 +01:00
Jeremy Kersten 52bf41e7f2 [FIX] website_sale: improve polling at confirmation page
At this step, Order is not always confirmed
2017-11-29 16:39:30 +01:00
Jeremy Kersten ee1d83dc3c [FIX] website_event: display normal 404 for non website editor.
Without this patch, the user will see a button 'create a new page' on the 404
for the controller /event/<event_id>/page/<page>
2017-11-29 16:38:04 +01:00
Olivier Laurent 046e4ee29e [FIX] anonymization: P3 encoding issues 2017-11-29 16:19:11 +01:00
Xavier Morel 29b9b74cea [FIX] payment_paypal: P3 response encoding
Get the decoded body from requests (rather than the encoded one) and
process it as text throughput.

Fixes #21156
2017-11-29 16:17:40 +01:00
Jeremy Kersten a9fa7e284c [FIX] survey: show answers on 'print answers'
This commit closes #20836

Courtesy of @sswapnesh for help
2017-11-29 15:21:26 +01:00
Martin Trigaux 159bcf3cc2 [I18N] update Danish terms
Courtesy of Visti Kristensen, IT-konsulent
2017-11-29 14:33:19 +01:00
Wolfgang Taferner 193b55eae9 [FIX] sale_stock: update procurement group if necessary
Closes #21034
2017-11-29 13:40:55 +01:00
Romain Derie 82bde85030 [FIX] website_sale(_options): text in field qty throws error and/or create infinite quotations
Before this commit:
1. If user wrote text in the quantity field to add to his cart, it would crash
and show a server error.

Now, if the user insert a non-valid quantity in the field, we set it to 1

Step to reproduce:
With website_sale only
  - Go to a product page on the shop
  - Insert 'abc' in the quantity field and click 'Add to Cart'
  - Server will throw an error 'Can't parse float..'
With website_sale_options
  - Go to a product page on the shop
  - Insert 'abc' in the quantity field and click 'Add to Cart'
  - Popup confirmation with optional product will show with 'NaN' in the qty
  - Click 'Proceed to checkout'
  - Server will throw an error 'Can't parse int..'

2. On the checkout, if user typed text in qty field it would create infinite
quotations.
Some modules (eg: website_event_sale) would hide this behavior because they
override the RPC call to '/shop/cart/update_json' and throw an error on the
RPC.

Now, if user type incorrect integer quantity, we set the quantity to 1.

Step to reproduce:
1. On base (website_sale only)
  - Add an item to your cart
  - On checkout page, set qty to 'abcd' or whatever text
  - Check your browser console, every 500ms their will be a RPC call
  - Check your quotations in backend, their will be a new one every 500ms
2. On db-all
  - Add an item to your cart
  - Set qty to 'abcd' or whatever text
  - Check your browser console, it will throw an error on the second call

This closes #20482, closes #20904
2017-11-29 13:31:59 +01:00
Roberto Lizana 2a490b487d [IMP] l10n_es: add account group to account templates (#20927)
courtesy from rlizana
2017-11-29 13:29:45 +01:00