Commit Graph
111138 Commits
Author SHA1 Message Date
Csaba Fazekas a1224f5ca9 [FIX] web: Contact form modal not responsive
When creating a contact from "Contacts & Adresses" in res.partner view form.
The radio button (field "type") was not responsive.

opw:706338
2017-02-27 12:28:42 +01:00
Isaac Gallart Bochons 48cebafdaf [FIX] mrp: call message_post separately
message_post accepts only one id

CLA signature for igallart done at #15625

Closes #15625
2017-02-27 12:26:42 +01:00
Fabien Pinckaers 16b93b6dcc [IMP] lunch: better layout for recommendations 2017-02-27 11:48:01 +01:00
Goffin Simon d612daae71 [FIX] product_visible_discount: product_id_change
When computing the discount in product_id_change, before the fix

discount was equal to (new_list_price - line.price_unit) / new_list_price * 100

But line.price_unit was already rounded so the discount computed was not the
discount set in the pricelist due to rounding error.

opw:709704
2017-02-27 11:08:43 +01:00
Martin Trigaux 4e03cdae48 [ADD] point_of_sale: refund test 2017-02-27 10:43:10 +01:00
Martin Trigaux cdb1074adb [FIX] point_of_sale: set name when duplicating
Introduced at 645df676
2017-02-27 10:43:09 +01:00
Martin Trigaux 3a5521859b [IMP] point_of_sale: add domain on payment wizard
To avoid making a refund on a non-configured payment method.
The point of sale refuse to register a payment with a journal not set at session
creation.

Fixes #15567
2017-02-27 10:43:09 +01:00
Paulius Sladkevičius b4c6390065 [CLA] fix typo in email address
Done at #15651
2017-02-27 10:33:43 +01:00
Thibault Delavallée 58a4bfd973 [IMP] mail: update message_new to return the newly created record not just its id 2017-02-27 10:00:46 +01:00
Martin Trigaux 17e60311eb [FIX] rating_project: close all opened tags
Invalid XML
Courtesy of krnkris
2017-02-27 09:45:34 +01:00
Odoo Translation Bot c224df04a5 [I18N] Update translation terms from Transifex 2017-02-26 04:31:11 +01:00
Odoo Translation Bot 333e7d1f9e [I18N] Update translation terms from Transifex 2017-02-26 02:55:24 +01:00
Odoo Translation Bot 24fa6012e7 [I18N] Update translation terms from Transifex 2017-02-26 00:31:32 +01:00
Olivier Dony 3979a4f4c6 [REM] website_mail: remove sha_in based message_post
The _message_post_helper() method historically allowed
passing a `sha_in` signature to let an unauthenticated
user post a message on a record.

This option is unused and an alternative is preferred:
passing a `token` value that matches the value of a
given field of the record.

In light of the increasingly grim future of SHA-1
as a cryptographic hash function, we consider it
better to entirely remove this specific option.

It has been unused for a while, and a simple
alternative exists.

As a temporary measure, the feature was also
deactivated in 10.0 at 2cffcfd860
2017-02-25 04:05:26 +01:00
Olivier Dony 087ce98928 [MERGE] Forward-port 10.0 up to 2cffcfd860 2017-02-25 02:32:17 +01:00
Olivier Dony 2cffcfd860 [FIX] website_mail: disable sha_in based message_post
The _message_post_helper() method historically allowed
passing a `sha_in` signature to let an unauthenticated
user post a message on a record.

This option is unused and an alternative is preferred:
passing a `token` value that matches the value of a
given field of the record.

In light of the increasingly grim future of SHA-1
as a cryptographic hash function, we consider it
better to entirely remove this specific option.

It has been unused for a while, and a simple
alternative exists.

The `object_shasign` method itself will be dropped
in master.
2017-02-25 02:10:36 +01:00
Jeremy Kersten 3f26151cbd [FIX] website_sale_portal: show cancel invoice fixing typo in domain
This commit closes #15254

Courtesy of @hugho-ad for reporting
2017-02-24 20:52:22 +01:00
Jeremy Kersten 2bf6eab609 [FIX] website: fix sitemap for multi website if more than one page
Template "sitemap_index_xml":
    <loc><t t-esc="url_root"/>sitemap-<t t-esc="page"/>.xml</loc>
should be:
    <loc><t t-esc="url_root"/>sitemap-<t t-esc="website_id"/>-<t t-esc="page"/>.xml</loc>

The fix in python is not elegant but allow to fix without -u of website.
2017-02-24 20:52:22 +01:00
Jeremy Kersten 7b902fca02 [ADD] website_sale_comparison: add comparison feature on eCommerce 2017-02-24 20:29:17 +01:00
Jeremy Kersten 2be56f9d81 [ADD] website_sale_wishlist: add wishlist feature on eCommerce 2017-02-24 20:29:17 +01:00
Jeremy Kersten 39df01ab29 [ADD] website_sale: add website_sale.utils with eCommerce generic function 2017-02-24 20:28:46 +01:00
Jeremy Kersten fe33aefbc0 [IMP] website_sale: move pricelist_context and compute_currency in one helper 2017-02-24 20:28:46 +01:00
Jeremy Kersten bbd2d0e42f [IMP] website_sale: typo, label and add id/class to make js/xpath easy 2017-02-24 20:28:26 +01:00
Jeremy Kersten 6969c6c5ad [FIX] website: allow to edit master if 'automatic footer' is disabled
Before this commit, impossible to edit the master if no language switcher
was displayed on the web page.
2017-02-24 19:18:31 +01:00
Jeremy Kersten 14d1f6f6c1 [FIX] website_event[_sale]: don't allow register when event is done
Some previous links could still point to old register page and so display an
error 500 if product of ticket has been already archived.
2017-02-24 19:18:31 +01:00
Jeremy Kersten 1a86155d1c [IMP] website_sale: improve total to be (a little bit) more responsive 2017-02-24 19:16:34 +01:00
Jeremy Kersten 169682c542 [FIX] website_sale: add indentation for categories in left menu
Removed previously by error during the checkout refactoring
2017-02-24 19:16:34 +01:00
Jeremy Kersten 564c15c4d5 [IMP] website: add is_website_user and user_id in odoo session_info
Theses informations need to be available in javascript easily without ajax request
2017-02-24 19:16:34 +01:00
Laurent Mignon (ACSONE) b3b3715586 [IMP] report: add postprocess hook in attachment generation
To allow to override a postprocess of a generated report
By default the method create the attachement if required

Closes #15091 
Closes #15241 
Closes #15268
2017-02-24 17:59:39 +01:00
qdp-odoo 807751aece [FIX] base: fix mixing currency in company/pricelist
A company should have at least a pricelist having the same currency, that's common sense.
This was causing problems in tests on 10.0-nightly, where the main pricelist was created
in EUR, then the localization module was setting the right currency on the company without
any reflection on the pricelist.
To avoid this problem, when we write the currency on a company, we reflect that change on
the main pricelist if it's the only company in the system. Otherwise as we can't decide
which pricelist modify, we just create a new one, which should be ok.
2017-02-24 17:57:36 +01:00
Laurent Smet bf8b359b29 [FIX] delivery: fix bad Exception handling
When get_price() is called during tests, a ValidationError was returned but not catched
correctly due to the unavailability of delivery service.
Because this method is called during the creation of new sale order, it leads to some
operational error (broken cursor).
2017-02-24 17:57:36 +01:00
gilles 961b731da3 [IMP] hr: add name attribute on page to improve inheritance
Closes #15620
2017-02-24 17:51:49 +01:00
gilles f1a7e3142c [CLA] signature for GillesTephaneMeyomesse
Done at #15620
2017-02-24 17:50:27 +01:00
Whitley 914f509284 [IMP] doc: add dependency to CentOS installation
yum-config-manager is not installed by default with CentOS from some VPS companies.

Closes #15631
2017-02-24 17:23:13 +01:00
Leandro Di Pasquale 3401887e6e [CLA] Update List of Contributors of bacgroup
Add Osvaldo Jorge Gentile and remove Cesar Rodriguez from Bacgroup Organization

Done at #15630
2017-02-24 17:20:23 +01:00
Yannick Tivisse 70925a1452 [FIX] website_sale: Don't display a right column on the checkout process
Because sometimes we don't have to eat something bad to be indisposed
2017-02-24 15:30:46 +01:00
Stéphane Bidoul (ACSONE) 6f1c291982 [FIX] auth_ldap: allow non-ascii ldap base
For installations with accents in the name

Closes #15597
2017-02-24 15:18:51 +01:00
Adrien Dieudonne ed1abc43d1 [FIX] web: string values in priority widget
(1) The priority widget is based on a selection field.
So, this priority widget must support string values.
Before this commit, the widget worked correctly with numeric values.
For example: '0', '1', '2', '3' was converted to 0, 1, 2, 3.
But sometimes, we have non-numerical values.
For example: 'Normal', 'Low', 'High', 'Very High'.
In this case, we can not compare the elements to each other according to their values.
If you select 'High', we don't know if the star of the value 'Low' must be filled.

To fix this, we base the comparison on the indexes of the table of possible values.
For example:
[('A', 'A'), ('B', 'B'), ('C', 'C'), ('D', 'D')]
Now, if you select D, we know that A (with index 0)  is smaller than D (with index 3).

This could be a behavioral change if you had [('1', '1'), ('0', '0'), ('2', '2')]

(2) When the selection field had no value, the 'o_form_field_empty' class was added.
In this case, the stars must be displayed without being filled.
2017-02-24 14:38:20 +01:00
Raphael Collet 1f77c2d681 [FIX] models: add warning for inconsistent compute_sudo on fields (#15184)
Check that fields using the same compute method have the same value for
parameter `compute_sudo`.
2017-02-24 11:45:15 +01:00
Martin Trigaux 685f146d48 [FIX] account: correct pluralisation
Do you ever think about translators?
"Bankafschrift afsluitens" is not valid Dutch

opw-709657
2017-02-24 11:01:54 +01:00
Yannick Tivisse f5d6198699 [FIX] website_sale: Allow to enter a coupon code on 'Payment' page
A user may want to enter a coupon on the 'Payment' page, for example after he selected his delivery method. That way, he isn't forced to come back on the 'Preview Order' page to enter the coupon and reselect its shipping and delivery addresses.
2017-02-24 11:00:45 +01:00
Pierre Masereel 907034b1f6 [FIX] mrp_repair: map_tax missing attributes
When the function map_tax is called on the fiscal position in repair
lines to compute taxes, the partner and product are not passed to the
method which leads to mistakes when the module account_taxcloud tries to
get back the taxes for the specific partner and tic_category of the
product.

To fix the issue, we pass the product and partner that we already have
to the function map_tax.
2017-02-24 10:43:14 +01:00
Jeremy Kersten 28b920e73a [IMP] website_portal*, website_project*: typo in label + try to imp mobile view 2017-02-24 08:51:26 +01:00
Jeremy Kersten 5b3d0b3bc8 [IMP] ir_qweb: allow to display only the time from a field datetime.
Can be usefull if we want to split date part (using widget:'date') and time part (new option)
2017-02-24 08:51:26 +01:00
Jeremy Kersten 6571597b42 [IMP] website_project_issue: allow to see attachment from object in portal.
Before this commit, only attachment linked to a message_ids was visible.
So when you open the ticket, you don't have the 'main' attachments
2017-02-24 08:51:26 +01:00
Jeremy Kersten c5d2d78aa7 [IMP] website_project_issue: add search input in searchbar.
Allow to search issues with criteria: content, message, customer
2017-02-24 08:51:26 +01:00
Jeremy Kersten 561d68bafd [IMP] website_portal: allow to add search input into the searchbar 2017-02-24 08:51:26 +01:00
Jeremy Kersten 83bfdb0d21 [IMP] website_portal*, website_project*, website_quote, website_blog: add record pager in portal
+ fix re-use websitue_url in get_access_action
2017-02-24 08:51:26 +01:00
Jeremy Kersten d89210e1fd [FIX] website_portal: align center the th row from portal
TD text is right align, but TH text is left align.
No jealous: now centerd
2017-02-24 08:51:26 +01:00
Jeremy Kersten f4ae1a63c7 [FIX] base: fix dev mode when view is no more in addons-path 2017-02-24 08:51:26 +01:00