Commit Graph
109042 Commits
Author SHA1 Message Date
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
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
Martin Trigaux 159bcf3cc2 [I18N] update Danish terms
Courtesy of Visti Kristensen, IT-konsulent
2017-11-29 14:33:19 +01:00
Nicolas Martinelli e56d91be29 [FIX] stock_account: lock date
`_check_lock_date` is defined on a `account.move`, while in this case
`move` refers to a `stock.move`.

We re-implement a logic similar to the original commit 287b293283.

Fixes #20913
opw-782395
2017-11-28 16:17:54 +01:00
flyingL123 c7cc59e20d [FIX] stock: Add return value
Fixes #21264
Closes #21266
2017-11-28 15:02:31 +01:00
flyingL123 c650e63d82 [CLA] signature for flyingL123
Done at #21266
2017-11-28 15:02:31 +01:00
Rémi Rahir 7a379039ec [FIX] website_portal: edition of company name
Before this commit, one could edit its company_name (char) at will but this has no effect on the actual company name (commercial_partner_id that is a company). Thus once the partner is linked to a company, the information entered in the 'details' form will not be in synch with the details info on the '/my/home' page.

After this commit, we only allow edition of the 'Company name' field while the partner doesn't have a company set and display the company name once it is set.
2017-11-28 14:15:38 +01:00
Florent de Labarre f7e80442d1 [FIX] account: Access error when opening a partner
If a user can read account.analytic.account but not the account.move.line,
when he tried to open a partner, there were an raise AccessDenied errors.

opw:782961
2017-11-28 13:12:43 +01:00
Nicolas Martinelli 8b854ab660 [FIX] mail: auto subscription to channel
1. Install mail and hr
2. Create a new mail channel:
   name: test
   Who can follow: selected group of user
   Authorized group: Employee / Manager
   Auto subscription: Employee / Manager
3. Edit the Demo user, and add him to group Employee Managers

The Demo user is not subscribed to the channel (only Admin is)

In this case, the web client sends a `sel_groups_` key, which is not
handled by the `write` method.

Fixes #20897
opw-782301
2017-11-28 13:07:07 +01:00
Christophe Simonis 7754538750 [MERGE] forward port branch 9.0 up to cae188514f 2017-11-28 12:08:34 +01:00
Christopher Tribbeck f20df81c20 [FIX] stock: remaining quantity
Uses `float_compare` instead of comparing floats directly, which is
anyway something that leads to precision errors.

See related PR for detailed use case.

Closes #20770
opw-781384
2017-11-28 11:55:53 +01:00
Lucas Perais (lpe) cae188514f [FIX] web_editor: Fieldtexthtml wait until iframe loaded to save
In the case where:
- you are too fast editing a mass mailing, trigger an onchange (e.g. mailing_model) and then save
You can use the edit/save shortcuts to make yourself believe you are Flash Gordon
- your internet is too slow (Down: 4Mb/s, Up: 500kb/s, Latency: 20ms)

Before ths commit, the onchange will return *before* the field (the iframe actually) is loaded.
This onchange contains a signal *in* the body_html of the field to allow communication with the iframe.
If you save before the iframe is loaded, this body_html keyword will be saved.

After this commit we deactivate the save button until the iframe is loaded.
We could have gone for a python user error on the value of the body_html too.
But it would have added a supplementary click and potential reloading

OPW 783616
2017-11-28 11:22:30 +01:00
Christophe Simonis ad6f307976 [MERGE] forward port branch 9.0 up to 6d2bf44fee 2017-11-28 11:10:59 +01:00
qsm-odoo 6d2bf44fee [FIX] website: do not duplicate iframes at each edition
Before this commit, when an user added a video in his page (an <iframe>)
it was then duplicated each time the snippet in which the video is was
edited and saved again, slowing the page loading.

As the code responsible for that is quite outdated, it should be
reviewed and refactored in master. This commit only fixes the problem
with more code. This commit will also fix existing databases, if the
user edit the video snippet once again.

(Note: even if this commit's code will be even more strange in master,
it *should* be forward-ported anyway).
2017-11-28 10:03:27 +01:00
Joren Van Onder 11ae103e12 [FIX] point_of_sale: search customers with full search query
When the keypress handler is called the pressed key has not yet been
added to this.value. This leads to the search being performed with
e.g. 'Agr' when the user has typed 'Agro'.

Fix this by getting this value when the timeout expires. At this point
the value will be updated.

Fixes #21129
2017-11-27 16:03:47 -08:00
qsm-odoo 948c429e8b [FIX] website: declare correct mimetype for data images
Some website default images were declared with the wrong filename
extension, inducing the wrong mimetype. As a result, some browsers
(IE...) were unable to render these images.
2017-11-27 16:48:10 +01:00
Martin Geubelle ccaced9292 [FIX] web: display selection label in graph
When grouping a graph view by a selection field, the labels on x axis
were the selection values themselves (not their corresponding label).

This issue was only present if there was only one group by field. In
this case, the attribute `grouped_on` is not an array but a string
containing the field name. This case wasn't correctly handled.

Note that this issue is not present in the new views (from saas-16).

Closes #19790
2017-11-27 15:47:35 +01:00
Stefan Rijnhart 10de33a57e [FIX] mail: handle emails with a single non-text part
SAP sends out emails that only contain a PDF part, without a text or
html body, e.g.:

    X-Mailer: SAP NetWeaver 751
    Content-Type: application/pdf; name="Afleveringsbewijs.pdf"
    Content-Transfer-Encoding: base64
    Content-Description: Afleveringsbewijs

Before this patch, this single non-text part was parsed into the body of
the final message, as if it was a text part.

Making the check for the main part more restrictive solves the issue, as
there is no reason to assume that a non-multipart content is
necessarily of text/* type. This PR also includes a regression test.

Closes #21102
2017-11-27 10:58:16 +01:00
Nicolas Martinelli 3246f3b388 [FIX] account_dashboard : rounding and zero negative
During the generation of data in kanban view, there are no rounding when
computing the amount differences. It might lead to amount differences
lower than the currency rounding, which should not be displayed.

It also fixes the case where the amount is -0.0.

opw-782962
Closes #17840
2017-11-27 10:13:21 +01:00
Nicolas Martinelli 3643cc0a42 [FIX] hr_expense: report in various currencies
Displays the total amount of an expense report as displayed in the PDF
report.

opw-783620
2017-11-27 10:04:04 +01:00
Florent de Labarre 61b3455b96 [FIX] base: action to edit translations of related field (#21014) 2017-11-27 09:56:35 +01:00
Nicolas Martinelli a1e3026512 [FIX] point_of_sale: Pin and Barcode
- Create a user B with 'Barcode' and 'Security PIN' set.
- Log in the POS with user A
- Scan the barcode

The PIN is not asked and the user is switched.

Closes #20760
opw-781360
2017-11-27 09:39:28 +01:00
Damien Bouvy fc69b37cf7 [FIX] payment_authorize: stop raising on 'Error' authorize status
It seems that Authorize.net returns an 'Error' status when transactions
fail (note that it can also return an Ok status for different types of
failures).

This is incoherent with the way the authorize requests are processed,
since an Error resultCode will raise a ValidationError, rollbacking the
complete cursor transaction. This makes little sense, since there should
be a trace of the payment.transaction in the backend (preferably with an
explanation for the failure).

This fix adds an error processing step to the response handling of
authorize.net - while before, it was assumed that an 'error' result
meant an issue in communication/setup, now it is treated as an error
in payment and the payment.transaction status is set accordingly.

I've added a test for this and it was green (pinky promise), but this
particular test suite is deactivated (or perhaps only on nightly, I need
to check the nightly process with @nim-odoo).
2017-11-27 08:27:53 +01:00
Odoo Translation Bot a609541f18 [I18N] Update translation terms from Transifex 2017-11-26 00:40:25 +01:00
Nicolas Martinelli ac31252d54 [FIX] event_sale: canceled registrations
- Open an event registration page
- Fill form for 2 persons => redirection to /shop/checkout
- Click Review Order => open /shop/cart
- Change quantity from 2 to 1
- Finish checkout process
- Login to backend, confirm SO

Two tickets are confirmed instead of one.

opw-783945
2017-11-24 13:32:49 +01:00
Nicolas Martinelli 5548b2ff7a [FIX] pos_discount: missing translation
opw-783101
2017-11-23 15:40:42 +01:00
Raphael Collet 0d5ac92ff0 [FIX] models: nonsensical special case in CSV export
Remove weird special case: when the first field of the first line of a one2many
is empty, replace this first field by the comma-separated names of the lines,
and discard the other lines.
2017-11-23 11:35:39 +01:00
Laurent Smet 8214395a49 [FIX] account: fix account.tax order
Suppose some taxes with the same sequence:

The tax are not computed in the same order in POS and SO/INV.
This is wrong in case of multiple taxes affecting the base.

-opw: 779498
2017-11-22 11:55:28 +01:00
Martin Trigaux cc8f360039 [FIX] hr_expense: duplicated source term
Making Transifex syncrhonisation crash
msgid must be unique
2017-11-22 09:11:23 +01:00
Olivier Laurent 6182f5ea19 [FIX] mrp_repair, sale: display the right partner.vat
Some reports displays the wrong partner.vat.
On the invoice report, when the shipping address is different than the
invoicing address, we also also display the shipping address in addition
to the invoicing address. But we displayed the VAT of the invoicing
address instead of the one from the shipping address.

Same issue on the MRP repair report and the sale report.
2017-11-21 15:43:02 +01:00
Nicolas Martinelli f075b52a25 [FIX] hr_expense: multiple payment modes
- Create an expense paid by employee
- Create an expense paid by company
- Select the two expenses and submit a report

You are authorized to create this report but you cannot validate it and
you cannot refuse it because of the mix of an expense paid by employee
and paid by company. You're blocked.

We should block the creation of an expense report mixing expenses paid
by company and paid by employee

opw-783395
2017-11-21 14:19:13 +01:00
Jeremy Kersten 8be77ca382 [FIX] website_event: add old class removed in previous commit
That could break xpath for others modules and that have no real impact to keep
it since it is removed in JS via:
    .find('.modal-body > div').removeClass('container'); // retrocompatibility

Related to https://github.com/odoo/odoo/commit/809aaf9e7b9de28383444d5059b19a67bb513f51#commitcomment-25751949
2017-11-21 11:32:13 +01:00
David Vidal 5e038eedeb [FIX] website: gmaps size parameter flipped
- width and height were passed in the wrong order according to
https://developers.google.com/maps/documentation/static-maps/intro?hl=en#location
2017-11-21 10:08:41 +01:00
Laura Piraux 266e6530dd [FIX] base: update Denmark address layout
Update the layout for the address in Denmark

opw-783437
Closes #21092
2017-11-21 09:53:30 +01:00
Lucas Perais (lpe) 586d3d4460 [FIX] point_of_sale: fix perms in posbox script
Before this commit, the posbox was built and in the process the permissions of the repo were whanged
As a result, there was a diff in the repo, making it un-upgradable

After this commit, the permissions on the posbox' Odoo repository are unchanged, and no diff is to be seen
2017-11-21 08:30:13 +01:00
Lucas Perais (lpe) fee8b2b2d3 [FIX] point_of_sale: hardcode jessie in posbox scripts
Before this commit, the latest version of Raspbian was chosen.
It is not very helpful though as if something goes wrong, we don't on which part it is.

Also, fix python dependencies for the image
2017-11-21 08:29:52 +01:00
Damien Bouvy 93b5ce67ac Revert "[FIX] payment_authorize: add some debug logging"
This reverts commit fb093726d7.

In my hurry, I forgot part of this debug feature, which made it crash
because I tried to stringify a element instead of a tree
2017-11-20 19:22:56 +01:00
Christophe Simonis f4a54d7f66 [MERGE] forward port branch 9.0 up to bab597bb47 2017-11-20 18:23:37 +01:00
Xavier Morel 8b80141a63 [IMP] website_portal_sale: better logging on mismatch
On transaction mismatch (amount coming back from acquirer does not
match SO amount), currently:

* the amounts in question are not logged, only that they do not match
* the user is not notified and may not be aware that there was a
  payment and an issue

Improve the logging message and add a chatter message to improve that.

OPW-782986
2017-11-20 17:43:13 +01:00
Damien Bouvy fb093726d7 [FIX] payment_authorize: add some debug logging
If not [FIX], then [HELP TO FIX] at least
2017-11-20 16:50:49 +01:00
Edward Gow e746f64ee4 [CLA] signature for elgow
Closes #19212
2017-11-20 10:43:16 +01:00
qsm-odoo dc679308d6 [FIX] web_editor: highlight selected fa icon on media dialog start
When editing a fa icon in the editor, the current fa icon was not
properly selected anymore.

Note: the code is still to be improved to handle all cases but this
will be done in master.
2017-11-20 10:38:45 +01:00
Lucas Perais (lpe) bab597bb47 [FIX] calendar: r_date must be defined before use
commit b4ec51021b forgot about the case where no domain was supplied
or when the conditions on it were not fulfilled.

before this commit, a traceback was thrown and no event was shown

After this commit, no errors and all the relevant events are shown

opw 782985
2017-11-20 09:16:16 +01:00
Odoo Translation Bot 2c7851b8ee [I18N] Update translation terms from Transifex 2017-11-19 00:43:08 +01:00
qsm-odoo 8d5c4cb30d [FIX] web: adapt JS boot logs to new Firefox version
When logging multiple elements in one log call in the new Firefox
version, all the elements are kept on one line. So if the second
element starts with a line feed, it will not go under the first
element but still be at the right of the first element, on a new
line.
2017-11-17 17:04:00 +01:00
Simone Orsi 00ce67ee43 [FIX] l10n_fr_certification: allow multi write on account.journal
Closes #20594
2017-11-17 16:31:19 +01:00
Martin Trigaux 144a528616 [FIX] packaging: subsubversions do matter
Follow up of e419f395a
pyscopg 2.7.3 does not work with glibc 2.66
2.7.3.1 is the minimum one

Courtesy of Laurent Mignon, Acsone, #19512
2017-11-17 15:26:16 +01:00
Cedric Snauwaert 5b10f5dbc1 [FIX] account: reconciliation of payment with statement should not take 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-16 12:23:48 +01:00