Commit Graph
110261 Commits
Author SHA1 Message Date
bluesoft83 aed5563000 [FIX] web: error setting wraparound on undefined
In function _next, sometimes options parameter is not passed, so setting on undefined is causing error.  (PR #15716)
2017-05-30 16:56:51 +02:00
Laurent Mignon (ACSONE) a1db50e7c8 [FIX] barcodes: fixes ean8 checksum computation
According to the docstring, the given ean is a string but was summed.

Closes #16813
2017-05-30 16:51:59 +02:00
Jeremy Kersten f4aa509283 [FIX] base_geolocalize: use urllib2 to make request
For an unknown reason, in some case, urllib doesn't work while with urllib2 it works.
Since we don't have the opposite case until now (work in urllib and not urllib2), we
considere that it fixes the issue.

this commit closes #14636
2017-05-30 16:47:54 +02:00
Jeremy Kersten f0c34f0df8 [FIX] web: remove bad check from jquery.blockUI
This check is wrong since jquery 1.11 is < 1.2

This commit closes #17271
2017-05-30 16:42:54 +02:00
Florent de Labarre 89170b750e [FIX] mrp: remove quick create attribute in bom line
Quick creation of attributes in the bom line of the bom form does not
make sense as it won't be related to the product (and would need to
create extra variants, ...)

closes #16924
2017-05-30 16:33:31 +02:00
Alex Comba 40e9b7563f [FIX] product: prevent ValueError when computing quantity on a void recordset
Invoice lines do not necessarily have a product and therefore an UoM set
on them. You could then compute quantityes on a void recordset. In that
case we just return the quantity untouched.

This is actually the old behavior of compute_quantity that is set back.
See https://github.com/odoo/odoo/blob/01279359b9e5340d5ecb15f0fee186f039356374/addons/product/product.py#L164 .

Closes #16377
2017-05-30 16:25:56 +02:00
Josse Colpaert 40c5366861 [FIX] product_margin: graph view only use one non-stored field as measure fixes #16565
Because read_group can not handle non-stored fields well,
we fall back to the similar implementation as for the stock
valuation report.  This allows only one non-stored field as a measure in
the graph.  Then it is more logical to show the total margin as that is
what the module is meant for.
2017-05-30 15:53:34 +02:00
Yannick Tivisse e2f3e8c4b7 [FIX] stock: Make incoterm names translatable 2017-05-30 15:52:47 +02:00
Giuliano69 c5718fa897 [CLA] Individual signature Giuliano69.md 2017-05-30 15:49:51 +02:00
Juan Pablo Arias a6025daaf0 [IMP] ofxparse: update requirements.txt
update ofxparse to 0.16: fix language issues

closes #15713
2017-05-30 15:02:58 +02:00
Jordi Ballester 82fbe03ff8 [FIX] purchase: update tests to effectively create invoices of type purchase, not
Default value is out_invoice aka an invoice of type sale. However here
we would like to test invoices of type purchase. Otherwise extending
tests for specific purchase-related invoice code is not possible. This
is done using the magical context key type.

Closes #15886
2017-05-30 14:46:53 +02:00
Jordi Ballester 8a76d4581c [CLA] Add Corporate Eficent CLA
By the way Lois Rilo lois.rilo@eficent.com is now integrated in the
Eficent corporate CLA and does not require a personal one anymore on
the same email address.

Related to #15886
2017-05-30 14:46:47 +02:00
Stefan Rijnhart (Opener) f6986c8cff [FIX] account: fix copy() of accounts having children
Don't pass default code to child accounts to avoid raising wrongly the constraint: duplicate key value violates unique constraint "account_account_code_company_uniq"  

Courtesy of Stefan Rijnhart (Opener). Was PR #16804
2017-05-30 14:12:47 +02:00
Florent de Labarre 1c568f02df [IMP] product: Hide weight and volume on service products 2017-05-30 14:09:18 +02:00
Olivier Dony 7b5af174a5 [MERGE] Forward-port 8.0 up to 2fc7eed0d8 2017-05-30 13:52:05 +02:00
Alexis de Lattre 7c9b6b6345 [FIX] account_bank_statement_import: fix start balance on partially already imported statements
With this, when you import a bank statement that contains lines that had already been imported, the start balance of the statement is automatically recomputed.

Courtesy of Alexis de Lattre (Akretion). Was PR #16144
2017-05-30 13:51:32 +02:00
Olivier Dony 2fc7eed0d8 [REM] maintenance symlink added by previous commit
Symlink introduced by mistake at f38d96113b
2017-05-30 13:46:16 +02:00
Thibault Delavallée d85e4e0c68 [FIX] l10n_cn_small_business: standardize title name
Authorship should go to https://github.com/joray . However as he did
not sign the CLA and does not seem very active the patch is applied
to benefit from the improvement.

Closes #16294 .
2017-05-30 12:26:46 +02:00
Torvald B. Bringsvor 74c8973c52 [FIX] base_vat: Add support for MVA suffix in Norwegian VAT numbers.
Description of the issue/feature this PR addresses:
The Tax ID field is validating NOxxxxxxxxx as format, but the format is actually NOxxxxxxxxxMVA if you are in the VAT registrty.

Current behavior before PR:
Valid tax numbers for Norway are rejected.

Desired behavior after PR is merged:
The format NOxxxxxxxxxMVA is accepted, along with the old behaviour of NOxxxxxxxxx.
2017-05-30 12:14:31 +02:00
Nicolas Martinelli 7d176951b7 [FIX] payment_paypal: transfer state
The state is not transferred in the address details to Paypal.

opw-745374
2017-05-30 12:13:18 +02:00
jesusVMayor f38d96113b [CLA] JesusVMayor: add new email address in individual cla 2017-05-30 11:54:28 +02:00
jesusVMayor ebda8caa97 [FIX] mrp: Use the route on the production if set to create the previous moves
Description of the issue/feature this PR addresses:
The production routing is ignored when creating previous movements

Current behavior before PR:
When you create a production that does not have a routing established in the BOM, and you set a route manually, it is ignored when creating the previous movements
2017-05-30 11:53:03 +02:00
Oraldo Jacinto Simón 29a0b70424 [IMP] mail: keep the context when sending notification emails.
Should any third-party addon uses the context to somehow change the behavior
of mail.mail ``send()``, we should keep the context.

Closes #16835 .
2017-05-30 11:38:40 +02:00
Manuel Vázquez Acosta 51e4e61bf4 [CLA] Merchise Autrement
Coming from #16835
2017-05-30 11:38:40 +02:00
Yenthe V.G 140113346d [FIX] CRM: do not copy meetings attendees
When duplicating a res.partner, the new partner was added in the list of
attendees of previous meeting.

Fixes #17285
Closes #17286
2017-05-30 11:22:22 +02:00
Lucas Perais 306c2ab8de [FIX] account: liquidity transfer account should always be visible (#16683)
Especially if no COA has been installed AND some accounts have been created

OPW 740947
2017-05-30 11:11:02 +02:00
Yannick Tivisse 22755463bb [FIX] base: Use correct name for Araba/Álava spanish state
Partly revert #17251 to stick with #15166
2017-05-30 11:04:00 +02:00
eLBati d6cf41b67b [FIX] account_payment: The payment line name must be unique per company
Closes #16366

Steps to reproduce the problem:
 - create 2 company
 - create 2 different sequences 'payment line', one for company
 - create a payment order for company A and insert a line
 - create a payment order for company B and insert a line
Get SQL error saying The payment line name must be unique
2017-05-30 10:56:49 +02:00
Yenthe V.G 0f747451b0 [FIX] website_payment: untranslated errors
Closes #17283
2017-05-30 10:51:49 +02:00
Stéphane Bidoul (ACSONE) e6ae9a21a2 [FIX] account: Display the correct journal tree view by default.
Closes #17274

Without this, the Configuration > Accounting > Journals shows
the Bank Journals view. And the type column is missing.

This align with what is done for the form view.
2017-05-30 10:16:17 +02:00
Goffin Simon e61c442f18 [FIX] website_quote: Duplicating a quote with a template
When duplicating a quotation with a template, the order date is set
to today's date. But the validity date was duplicated which was wrong.
Now the validity date is computed according to the template and not duplicated.

opw:744671
2017-05-30 09:31:08 +02:00
Nicolas Martinelli abb71fea51 [FIX] sale: add team_id in refund
Introduced incorrectly in account by 4cbbbaddd5
2017-05-30 09:24:53 +02:00
Nicolas Martinelli 065e3b70fe [IMP] account: fields of refunds streamlined for better inheritance
Based on work by @wtaferner
2017-05-30 09:24:53 +02:00
Carlos Lopez d88dcde4f0 [FIX] web: pivot view should use col_group_by and measures key
For historical reasons, when the pivot view was rewritten, we lost the ability to understand the measure and col_group_by keys from the context.

It was actually a deliberate decision, because we decided that it was not possible to properly handle the colgroupbys in the search views, so we replaced that mechanism with pivot_col_group_by and pivot_measures keys exported by the view, when necessary.

Sadly, we did not properly remove the outdated keys from the xml files.  So, with this commit, we reintroduce those special keys, because 10.0 is a stable version.  Note that this will be removed in master.

 (PR 17119)
2017-05-30 09:12:38 +02:00
David Tran 0857c65515 [FIX] account: Set field in _onchange_partner_id even if a warning is raised
Closes #16801

When a warning is set on partner profile, _onchange_partner_id method in
the invoice returned the message before assigning account_id,
payment_term_id, fiscal_position_id. hence, those fields come with empty
value.
2017-05-29 17:52:43 +02:00
tarteo b853573ff1 [FIX] board: fix 'Add to my dashboard' margin issue
Board module allows to add favorites to my dashboard. This is an option
added by the board module under Favorites menu item of search view.
However its margin is incorrect and displays badly compared to other
options in search view.
2017-05-29 17:36:55 +02:00
OstapYakovenko 4bde8defbf [CLA] corporate signature MaAO
Closes #17265
2017-05-29 17:27:24 +02:00
Yenthe V.G 1a685089be [FIX] portal: untranslated error message
And specify which group is incorrect

Closes #17275
2017-05-29 17:01:46 +02:00
Yenthe V.G 42a3c66424 [FIX] stock: untranslated errors
Closes #17277
2017-05-29 16:56:11 +02:00
Ruchir Shukla 02f05e9fef [FIX] martketing_campaing: Check if record related to res_id exists to compute res_name
Closes 16971

If the record with id `res_id` on the model `res_model` doesn't exists anymore, do not call name_get method on it in the method `_compute_res_name`. That could lead to tracebacks or inconsistencies.
2017-05-29 16:47:13 +02:00
Yenthe V.G 5cf2bb6ec9 [FIX] pos_mercury: missing translation ability
Made the error message more understandable

Closes #17276
2017-05-29 16:45:25 +02:00
Thibault Delavallée 0849677548 [FIX] purchase_requisition: fix taxes_id field being created with records instead of ids
Fixes #16222
2017-05-29 16:32:45 +02:00
Yannick Tivisse 003328ec82 [FIX] product: Display the variants in the same order for one product
Currently the variants are ordered by the attribute value in the name_get. That way, all the attributes aren't displayed in the same order.

Ordering by the variant attribute name will solve this issue.

Closes https://github.com/odoo/odoo/pull/17034
2017-05-29 15:12:22 +02:00
Lucas Perais (lpe) d11df4f7b7 [FIX] account: search account.journal also by shortcode
OPW 744362
GH-17102

Closes #17178
2017-05-29 14:52:25 +02:00
reinka ed36285e34 [CLA] Signature for reinka - bloopark 2017-05-29 14:49:46 +02:00
reinka 859a77ca8b [FIX] website_sale: fix order_id from session when cart is reset
Redirection to confirmation page at the end of the checkout process
in case of a previous cart reset by the user.

This commit closes #16145
2017-05-29 14:49:37 +02:00
lreficent 8761cf57bb [9.0][FIX] purchase: fix Unread Messages filter
In v9 the right filter to use is based upon the message_needaction
field coming from mail.thread . Indeed this gives records containing
messages demanding an action which is the right way to use the
needaction mechanism in 9, like done in all other addons inheriting
from mail.thread.

Closes #16769 .
2017-05-29 14:10:53 +02:00
lreficent 9c3ef52a32 [CLA] Lois Rilo Antelo
Related to #16769 .
2017-05-29 14:10:24 +02:00
Martin Trigaux 014f9e96b1 [FIX] mrp: format date in user format
Instead of hardcoded YYYY-MM-DD
t-options was introduced in 10.0

Fixes #12341
2017-05-29 14:00:41 +02:00
Antonio Espinosa a0ff74b78d [FIX] website_mail: do not propagate csrf_token to message_post method
Indeed through portal users can post a message. Form used in order to
do so include a csrf token. However this one should not be propagated
to message_post because it is not a mail_message model field.
This creates unnecessary warnings.

Closes #13956 .
2017-05-29 13:57:10 +02:00