Commit Graph
108064 Commits
Author SHA1 Message Date
Odoo Translation Bot 40f8a92d88 [I18N] Update translation terms from Transifex 2017-06-04 04:27:19 +02:00
Olivier Dony 76cd8d2558 [FIX] tools: verify path before opening 2017-06-02 22:13:36 +02:00
Дмитро Катюха 380f59bd16 [FIX] website_sale: filter products by attributes
The attribute filters based on all products matching current domain was limited
to the first page of result only.
If all the products of the current page had no variant, no filter was displayed.

Closes #17361
2017-06-02 16:59:36 +02:00
Nicolas Martinelli 46c85b4a82 [FIX] product_extended: time cycle
Use the field `time_cycle` for cost computation, which takes into
account the routing configuration (fixed time of computed based on
previous operations).
2017-06-02 12:20:08 +02:00
Nicolas Martinelli 7cc8420ea0 [FIX] product_extended: workcenter cost
- Create a work center with a capacity of 1, an efficiency factor of
  100% and a cost per hour of 40$
- Create a routing with two operations: one with a fixed duration of
  30:00 minutes (OP1) and another with a duration computed on real time
  but with a default of 30:00 minutes (OP2)
- Create a component with UOM "m" and a cost of 10$
- Create a finished product with an associated BoM
- The BoM has a first line with 0.8m of component in the OP1 and a
  second line with 0.4m of component in the OP2
- Activate the Compute from BoM option on the finished product
- The proposed cost is 32$

Expected cost: 52$
(30 minutes @40$/hour + 30 minutes @40$/hour + 1,2m @10$/m)

We divide the WC cost by the number of operations, which does not make
sense.

opw-741032
2017-06-02 12:20:08 +02:00
Nicolas Martinelli 844d609cc9 [FIX] web_tour: hide tooltips on printing
opw-745872
2017-06-02 12:17:13 +02:00
Nicolas Lempereur b5aeaa910d [FIX] website_forum: archived forum -> no ask
An archived forum could still be posted in, something better should be
done in the next version (eg. website published present on a lot of
record type) but as of 10.0 just this improvement is done.

opw-745510
closes #17365
2017-06-02 11:07:19 +02:00
Kishan Gajjar 79477b8d96 [FIX] web_editor: hide customize menu when there are no options 2017-06-01 17:08:49 +02:00
Dharmraj Jhala dbdbfa7432 [FIX] website: properly rebind background events
In carousel snippet, the target element for background snippet option is
being changed manually. So for the new target, we have to rebind the
associated events that were bound in `start` function of the snippet
option. For that, some code is extracted from the `start` function and
is used to rebind necessary events for new targets.

In particular, this was preventing the carousel slides' backgrounds to
be automatically removed when a background-color was selected.
2017-06-01 17:08:49 +02:00
Goffin Simon 6dc6b148ef [FIX] service: No context in function tr
The context is not in the kwargs when the integrity error is raised from
a rpc request. So the user lang was lost and the sql error message was not
translated.

The part treating the callable message in sql error is depracated.

opw:743259
2017-06-01 17:02:16 +02:00
Thibault Delavallée 8184bb3dff [FIX] website_portal_sale: fix access rights issues when viewing quotes
Portal users do not have access on invoices or invoice lines. However when
viewing an online quotation in website_portal_sale some computation is
performed based on invoices and invoice lines. We therefore iterate on
invoice and invoice lines as superuser as we do not want to grant any
additional access on those models for portal users.
2017-06-01 13:46:40 +02:00
Wolfgang Taferner c444b5a293 [FIX] google_account: fix google request exception management
Error thrown by google request is an urllib2.HTTPError that can be read
and loaded in JSON. However in some cases the result of the read may
be void or not JSON-ready. This was causing a crash in the error
management and hid the actual issue.

This commit tries to read and JSON-load the error but fall back on
simply displaying the raw error in case of issue when handling it.

Closes #17308 .
2017-06-01 11:28:43 +02:00
Raphael Collet 6e8516f9bf [FIX] product: typo in search view 2017-06-01 09:32:46 +02:00
Jerther 789cca58d6 [FIX] calendar: do not modify original channels list.
Patch similar to d7b7b07.

Closes #17318.
2017-06-01 09:24:07 +02:00
Olivier Dony 7e44444878 [MERGE] Forward-port saas-11 up to 156e9d0016 2017-05-31 20:09:51 +02:00
Olivier Dony 156e9d0016 [MERGE] Forward-port 9.0 up to 75e03c0f76 2017-05-31 19:28:20 +02:00
Richard Mathot dd8f238ff7 [FIXMP] sale: make test result easier to understand 2017-05-31 14:12:58 +02:00
Nicolas Lempereur 75e03c0f76 [FIX] website_form: enforce 'required' date
Only the validity of a date was enforced but the date could also be
wrong in other situation (required so must be filled, validation
attributes, ...).

opw-744273
closes #17329
2017-05-31 10:38:06 +02:00
Cocographique 3dcc54ccf4 [FIX] website: Front-end apps dropdown doesn’t appear on mobile
This commit closes #15551
2017-05-30 18:28:22 +02:00
Jeremy Kersten 013e9e906a [FIX] website_sale: pricelist code reading
Don't allow non employee to read code promo
2017-05-30 17:48:14 +02:00
Jeremy Kersten 7d96a302fa [FIX] website_sale: fix pricelist seletion
Don't allow to select random pricelist by id

Before this commit, code promo was broken due to odoo/odoo@97790089c4
2017-05-30 17:48:14 +02:00
Pedro M. Baeza 481872ee03 [FIX] stock: Put correct field in delivery slip report
As the header says, the expected field is "Order (origin)", which is
o.origin. The same field is also put correctly in "Picking Operations"
report.
2017-05-30 17:32:28 +02:00
Nicolas Martinelli 68391bd5c9 [FIX] hr_holidays: approval link
The approval link received by a manager doesn't take into account the
double approval configuration of the holiday type.

opw-741558
2017-05-30 17:13:18 +02:00
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
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
Florent de Labarre 1c568f02df [IMP] product: Hide weight and volume on service products 2017-05-30 14:09:18 +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
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
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
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
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