Commit Graph
108344 Commits
Author SHA1 Message Date
Christophe Simonis aef7748845 [MERGE] forward port branch saas-11 up to 96fa86779b 2017-07-07 14:07:47 +02:00
Christophe Simonis 96fa86779b [MERGE] forward port branch 9.0 up to 9cc799f511 2017-07-07 14:00:39 +02:00
Christophe Simonis 9cc799f511 [MERGE] forward port branch saas-6 up to 9a79b7b818 2017-07-07 13:59:13 +02:00
Christophe Simonis 9a79b7b818 [MERGE] forward port branch 8.0 up to 63ad8b9597 2017-07-07 13:56:47 +02:00
Richard Mathot 63ad8b9597 [FIX] tools: prevent crashes with Pillow >= 4.2.0
From Pillow 4.2, it is forbidden to save RGBA images as JPEG
( https://github.com/python-pillow/Pillow/commit/e4d6223c944cf44c468cc65a560b94dfcf351a62 )

A crash was occurring when loading demo JPGs as
image_resize_and_sharpen() was silently changing image mode to RGBA.
Now we ensure that we return the original image mode.

We also avoid crashes when converting from PNG to JPG
2017-07-07 10:11:40 +02:00
Raphael Collet a1f1f85be2 [FIX] workflow: insertion of duplicates in many2many relation 2017-07-07 09:47:04 +02:00
Christophe Monniez c1e154bee1 [FIX] tools: ensure xlsx worksheet names are valid
When xlsx is used, the worksheet name may be longer than 31 chars and
raise an exception.

This fix will troncate the name up to 31 chars and will remove invalid
chars.

Similar patch was already done at 0122c05eff for xlwt

xlsxwriter 0.9.8 has added a parameter worksheet_class=None so adding **kw to be
compatible with installs with the latest version (requirements.txt asks for
version 0.9.3)

Closes #18077
opw-751157
2017-07-07 09:44:09 +02:00
qdp-odoo 1fda216887 [FIX] l10n_fr_certification: set auto_install to False
Due to recent decision by the French government this might not be mandatory for french companies
2017-07-06 17:01:33 +02:00
pashute 2454dce7c5 [CLA] signature for pashute
Done at #18082
2017-07-06 17:01:24 +02:00
Yannick Tivisse afefa1b771 [FIX] account: Display the correct records on 'Invoice' button
Currently it shows all the invoices, not the sales invoices that are paid or validated
2017-07-06 16:47:40 +02:00
Olivier Dony 464fe4a185 [FIX] doc: clarify: record[field] is valid/recommended 2017-07-06 15:58:47 +02:00
Miku Laitinen 53762814d8 [CLA] updated CCLA for avoinsystems
Done at #18068
2017-07-06 14:49:06 +02:00
Christophe Simonis 1206cc3f7d [MERGE] forward port branch saas-11 up to 5f7f3209e0 2017-07-06 12:30:51 +02:00
Christophe Simonis 5f7f3209e0 [MERGE] forward port branch 9.0 up to 2b06da6ed0 2017-07-06 12:10:12 +02:00
Christophe Simonis 2b06da6ed0 [MERGE] forward port branch saas-6 up to 63944d30ba 2017-07-06 12:09:30 +02:00
Christophe Simonis 63944d30ba [MERGE] forward port branch 8.0 up to fe73fc442c 2017-07-06 11:44:26 +02:00
Christophe Simonis fe73fc442c [FIX] google_drive: avoid AccessError when reading filters
If a config use a private filter, others users can't read it due to
record rules on filters.
2017-07-06 11:37:19 +02:00
Nicolas Lempereur 52f268d042 [FIX] website: load momentjs locale in frontend
It is for example useful in the form builder with date-kind form field,
the translation of momentjs is done in french.

opw-707986
opw-749544
closes #17103
2017-07-06 11:28:57 +02:00
Frédéric Gilson d7334930a6 [IMP] payment_authorize: change setup link as old one is deprecated. 2017-07-06 10:44:49 +02:00
Sylvain GARANCHER b587ae48e4 [FIX] mrp: set default quantity
The wizard to change the produced quantity of a manufacturing order was not
using the current produced quantity as the default value.
This was because the field mo_id was not present in the view (and not in
`fields` in default_get).

Adding the field as invisible to compute the default value for mo_id.

Correct typo in dictory lookup (using `[` instead of `(`)

Closes #17937
opw-749725
2017-07-06 10:41:26 +02:00
Manuel Vázquez Acosta d951591b62 [CLA] Merchise Autrement sign CCLA
Done at #18008
2017-07-06 08:59:29 +02:00
Goffin Simon 6d6c24cfb2 [FIX] stock: Not allowed to change product on stock.production.lot
Steps to reproduce the bug:
-Create a product tracked by LN
-Create an inventory adjustment to add 10 products with LN A
-Validate it
-Then go in inventory > inventory control > lots/serial numbers > open LN A
-Change the product

Bug:
The LN A tells you you have 10 products X
While in your inventory you see you have 10 products Y

opw:750735
2017-07-05 16:54:12 +02:00
Goffin Simon 4f88f4dd18 [FIX] website_sale: Sort by catalog price in the shop
When sorting by price (increasing or decreasing) in the shop,
the products were sorted according to the catalog price(list_price)
and not according to the price(which takes the pricelist into account).
So a better name is given in this patch.

Reason: The field "price" is a computed and not stored field.
Then it's not possible to order the products with it in the orm.

opw:750997
2017-07-05 15:53:00 +02:00
Nicolas Lempereur 4fe4c228f3 [FIX] web_editor: style if website not installed
web_editor can be installed without website, thus missing needed CSS
causing e.g the widget sidebar to overlay and hide the mass mailing
content if website is not installed.

This fix implement a simple middle ugly solutions, but doing something
more in stable would be an hassle (for example in 88c2b684 the #wrapwrap
CSS is included in report module).

opw-748975
closes #18005
2017-07-05 11:49:59 +02:00
Yannick Tivisse 317ed37aee [FIX] account: Avoid to rewrite all the account codes on res_config creation
opw-750892

Avoid to rewrite the `accounts_code_digits` on the company if the value is the same. As all the values are
passed on the res.config creation, the related fields are rewriten on each res_config creation. Rewriting
the `account_code_digits` on the company will trigger a write on all the account.account to complete the
code the missing characters to complete the desired number of digit, leading to a sql_constraint.
2017-07-05 11:37:30 +02:00
Martin Trigaux d8083b4270 [FIX] website_sale: use the same price for all routes
The route /shop and /shop/product did not used the same context.
The partner is set in the shop but not in the product page which may lead to a
different pricelist to be applied.

opw-746729
2017-07-04 14:39:25 +02:00
Jairo Llopis ecc093033d [FIX] service.server: bump up socket timeout to 2s
Rev. 8245c1d1d8 introduced a timeout to
avoid lockup situations with wkhtmltopdf's requests on servers with low
numbers of free HTTP workers.

The initial timeout of 500ms was chosen based on average network
latency, but turned out to cause spurious disconnections on congested
networks combined with slow links.

Bumping up the timeout to 2s seems to be a better sweet spot, causing
less spurious disconnections while still recovering reasonably fast from
the wkhtmltopdf lockup situation.

See also these discussions:
 - https://github.com/odoo/odoo/commit/8245c1d1d87b443701b161d8d4a42df2b4d13aec#commitcomment-22904347
 - PR #12356
 - Issue #2114

Closes #17998
2017-07-04 12:57:05 +02:00
Christophe Simonis 657e328903 [MERGE] forward port branch saas-11 up to 7b0a1e4031 2017-07-04 12:28:38 +02:00
Christophe Simonis 7b0a1e4031 [MERGE] forward port branch 9.0 up to b9131adb48 2017-07-04 11:51:23 +02:00
Cédric Snauwaert b1082348e7 [FIX] account: reconciliation, fix query that fetch perfect line match (#17969)
When opening the reconciliation widget, there are two queries that are done,
The first one is to find a move line that perfectly match the statement line
and is done in SQL for performance issue.
The second one is a search with a domain to find all the lines that could be used
in that reconciliation.

1) There was a mismatch between the two. The domain fetches lines that have a payment_id
while the SQL query does not. Which is inconsistent

2) In some case, we did not find a perfect match on the amount using the SQL query because
of a rounding error. Example is for amount 3,3. In python: 3,3 is represented like this
3,3000000000003 and doing a float_round of that value still returns 3,3000000000003
Since we want to match on an exact amount, using float_repr is needed to fix that error
2017-07-03 11:22:32 +02:00
Jeremy Kersten 15da3356a0 [FIX] web: /web/image fix resize if only one limit (height or width)
The old code don't resize correctly if you use params in request.
because if '200' > 500 => return True

Now we force the casting to int to be sure to compare apple to apple.

before: /web/image/<id>?height=100 => don't return an image with height=100px
after: /web/image/<id>?height=100 => return now an image with height=100px
2017-07-03 10:56:31 +02:00
Jeremy Kersten 4322d96a0c [FIX] website_portal_sale: be sure that form post a vat before to compare
Typo in previous condition. 'vat' in partner is always True.
2017-07-03 10:03:26 +02:00
Jeremy Kersten 404033daf3 [IMP] website_blog: use teaser in rss and not subtitle
This commit closes PR #17942
2017-07-03 10:03:26 +02:00
Odoo Translation Bot 0db908b399 [I18N] Update translation terms from Transifex 2017-07-02 04:27:01 +02:00
Odoo Translation Bot b9131adb48 [I18N] Update translation terms from Transifex 2017-07-02 00:27:47 +02:00
Odoo Translation Bot a38544f63f [I18N] Update translation terms from Transifex 2017-07-01 02:39:14 +02:00
Ronald Portier 20dc848000 [CLA] Add George Daramouskas to Therp contributors
done at #17910
2017-06-30 15:05:57 +02:00
Nicolas Lempereur b3e7753d1b [FIX] web{site,_editor}: allow edit en_US field
If the website default language is not en_US, qweb fields are not
translatable in en_US (and thus can't be translated) because:

- the code expected en_US to be the default language.
- there was a error in website _dispatch

opw-746776
closes #17939
2017-06-30 14:14:27 +02:00
Nicolas Lempereur 2955bf2651 [FIX] web_editor: translation and no default en_US
Before 036ccbef when writing on qweb field with default language mi_SC:

- writing in mi_SC: wrote on the current res.user language (wrong)
- writing in en_US: wrote on en_US translation (right)
- writing in de_DE: wrote on de_DE translation (right)

but after 036ccbef:

- writing in mi_SC: wrote on mi_SC (right)
- writing in en_US: wrote on mi_SC (wrong)
- writing in de_DE: wrote on mi_SC (wrong)

With this commit, this drawback is also solved by keeping the lang in
context if present.

opw-746776
closes #17917
2017-06-30 13:11:51 +02:00
Nicolas Martinelli c61ae3a3ed [FIX] models: copy field with unique constrain
When a model contains a field translatable which has a unique
constrain, it is impossible to copy a record. Indeed, the unicity
constrain is always triggered, even if the model takes in charge the
overriding of the copy method to avoid duplication.

Introduced with commit ce7f31b0b0, with the goal to target only
XML/HTML translations. We apply this behavior in case of a callable
translate property, to target only the desired problematic use case.

opw-749481
2017-06-30 10:52:15 +02:00
Nicolas Martinelli d1e92c312f [FIX] website_form: send email with subject
- Use the form builder to send an email
- Customize the snippet to include the subject and the body
- Send a mail

=> The subject is not included in the email

This is because the subject is filtered out and considered as a
blacklisted field.

It happens because `mail.mail` inherits from `mail.message`. The field
property `website_form_blacklisted` is set to:
- `True` for `mail.mail`
- `False` for `mail.message`

Since we go through all inherited models, the property on `mail.mail` is
overriden by the property on `mail.message`.

It is actually not necessary to go through all inherited models, since
in the case of `inherits`, we copy the fields of the inherited model to
the target model. The check is simplified by only checking the fields of
the current model.

Based on work of @nla-odoo

opw-748926
2017-06-30 10:20:56 +02:00
Nicolas Martinelli 3ffd8d1602 [FIX] account: reset taxes
In an invoice, the modification of an invoice line triggers the complete
recomputation of the tax lines. However, it also deletes any manual
taxes that could have been set (e.g. on vendor bills).

Courtesy of @jjscarafia

Closes #17885
opw-749323
2017-06-30 09:37:38 +02:00
Nicolas Martinelli af11e74c2e [FIX] product: default category
If `product_category_all` is of type view, the installation of some
modules, such as delivery, crashes.

opw-749550
2017-06-30 09:12:54 +02:00
Frédéric Siffert cc06f7c140 [CLA] signature for leNeo
Closes #17846
2017-06-30 09:00:39 +02:00
Nicolas Martinelli 83572e00cc [FIX] point_of_sale: fix included taxes
Really apply commit a9ce4ffb22 to POS orders.

Since the creation of a POS order in the backend is a feature which
nearly not used, we rewrite everything related to onchanges. To avoid
breaking the compatibility, the old onchange code is kept. As long as
the user doesn't upgrade the module it will be used instead of the new
onchange.

opw-746827
2017-06-30 08:45:24 +02:00
Nicolas Martinelli 20c91f474c [FIX] point_of_sale: fix included taxes
The unit_price should be already 'fixed' by the time we get in
`_compute_amount_line_all`.

This reverts commit d938ba87ae.
2017-06-30 08:45:24 +02:00
Richard Mathot 307317dc2d [FIX] l10n_fr_certification: right domain on an integer field 2017-06-30 08:00:54 +02:00
Christophe Simonis cb01cfe9ff [MERGE] forward port branch saas-11 up to aa578e1bee 2017-06-29 16:34:59 +02:00
Christophe Simonis aa578e1bee [MERGE] forward port branch 9.0 up to 4d4ff7c5e7 2017-06-29 13:12:53 +02:00
Jérome Maes ffba5c688f [FIX] hr_expense_check: remove duplicate key in manifest
The 'category' key is already present in the manifest.
This duplicated key makes odoo create a new module
category, with a bad xml id
(module_category_accounting_andamp;_finance), since
the ampersand was escaped.
2017-06-29 11:23:48 +02:00