Commit Graph
106440 Commits
Author SHA1 Message Date
Laurent Smet 20e19fdf85 [FIX] product: remove empty variant on first attribute add
Adding the attributes leave all the old variants available.

While not completely intuitive, this behaviour is not inherently
wrong. However, on the first attribute addition, it leaves a variant
with 0 attributes that can cause problems in the ecommerce. This commit
make it so that this empty variant is archived.
2016-09-23 14:50:47 +02:00
Pierre Masereel b7af7004d7 [FIX] web: scroll view in community
Since the merge of the two modules 'web' from enterprise and community
it was impossible to scroll in the side menu and in the main content
of a community database from Internet Explorer 10 & 11 but it is working in
Edge.

This was due to missing css 'height' attribute on the '.o_main' class
that should be set to 100% for IE to let the flex elements know the
size of their parent.

This was introduced in rev https://github.com/odoo/odoo/commit/977db823c
2016-09-23 14:48:26 +02:00
Jeremy Kersten 5f90769f41 [FIX] website_sale: SignIn url if SignUp not allowed 2016-09-23 14:46:48 +02:00
David Monjoie 5f1c771b53 [ADD] base: add OPL-1 module license
This allows people to create modules under the 'Odoo Proprietary
License' version 1.0 rather than having to rely on the rather vague
'Other Priorietary' license.

The text of the license can be found at:
https://www.odoo.com/loempia/static/examples/LICENSE

This should already have been in Odoo 9 but was mistakenly left out.
2016-09-23 14:12:30 +02:00
Laurent Smet e7d409c98c [IMP] base_gengo: Move gengo parameters from company settings to general settings 2016-09-23 13:54:20 +02:00
Thibault Delavallée 1051b7b906 [MERGE] mail, various: unsudo mail/view controller and simplify recipient groups management
* mail/view controller does not call get_access_action and other methods as
   superuser. This allows to customize the returned action
 * reimplement methods to generate recipients groups when sending notification
   emails. It is now simpler to inherit and customize
 * update various addons using it
2016-09-23 13:46:19 +02:00
Jeremy Kersten 0ee98f4b42 [FIX] website_sale: fix display price in cart. 2016-09-23 13:21:08 +02:00
Jeremy Kersten 81447ca711 [FIX] website_sale: set payment_term_immediate by default in shop 2016-09-23 13:21:08 +02:00
Denis Vermylen (dve) e980915b49 [FIX] account: aged partner balance report title
the report pdf was titled "Aged Trial Balance" with Trial instead of Partner.
2016-09-23 12:32:15 +02:00
qsm-odoo c4ef26d100 [IMP] web_editor: mark dirty text to translate with the translated color
The content to translate is yellow and the translated content is green
in page translation mode. When the user starts translating a paragraph
it stayed yellow, making it difficult to see the remaining content to
translate when translating a big page.

This commit colors the dirty text in a paler green so that the user can
see the distinction.
2016-09-23 11:16:16 +02:00
qsm-odoo 6ee87f74f5 [FIX] mass_mailing: properly switch to right theme images
The default image inside undropped snippet had to be switched everytime
a theme is selected, even on first theme choice as the switch_theme
method only switch images of snippet already dropped in the page.
2016-09-23 11:16:16 +02:00
qsm-odoo 05205a277e [FIX] mass_mailing: force vertical align top on td/th element 2016-09-23 11:16:16 +02:00
qsm-odoo c15a99b49a [FIX] web_editor: properly convert fa icon to images with transcoder
Previous implementation was not robust as css style was able to change
the image height.
Also refactore the method to be more efficient.
2016-09-23 11:16:16 +02:00
qsm-odoo bee594e582 [IMP] mass_mailing: exclude one class for colorpicker option instead of snippet list 2016-09-23 11:16:16 +02:00
stefanorigano 4ffe3f57a3 [FIX] mass_mailing: fix layout issue of o_mail_header_social links
Fix an issue causing a wrong icon alignment on save.
2016-09-23 11:16:16 +02:00
stefanorigano 194f13beaf [FIX] mass_mailing: refactore o_mail_block_footer_tag_line snippet
* Remove the ability to change bg-color (colours are applied to
children elements)
* Fix a layout issue in theme_resto
2016-09-23 11:16:16 +02:00
stefanorigano 3b4f976f93 [FIX] mass_mailing: review colors in snippets
* Trig default ".btn.btn-link" rather than custom ".o_mail_link" (not
used anymore)
* Define variations when a button is inside bg-beta or bg-delta
2016-09-23 11:16:16 +02:00
stefanorigano 59d4ae5c0c [FIX] mass_mailing: rename "Comparison Table" snippet to "Comparison"
Remove the word "Table" so that the name fits in one line
2016-09-23 11:16:16 +02:00
stefanorigano 0e7527ed56 [FIX] mass_mailing: allow editing properly footer copyright
- ability to edit copyrights (change year, etc.) without removing ©
- 2016 in copyrights, not 2014
2016-09-23 11:16:16 +02:00
stefanorigano 5a93f9a7b7 [FIX] mass_mailing: refactore "Discount Coupon" snippet
* Rename it to "Promo Code"
* Several text changes
* Add a CTA
2016-09-23 11:16:16 +02:00
stefanorigano 66a0f18a21 [FIX] mass_mailing: add link in o_mail_block_header_logo snippet 2016-09-23 11:16:16 +02:00
stefanorigano 5ffe7dcafb [FIX] mass_mailing: editable social links
* Move social links out of tables so that they will not trigger at
td data-selectors
* Use o_mail_no_resize class to specify that the td container is not
resizable (otherwise oe_handles will overlap the icons)
* Adapt email templates
2016-09-23 11:16:16 +02:00
qsm-odoo 3f5a27e286 [FIX] mass_mailing: properly manage td/th elements
Refactore width-x snippet option and create another option to handle
cloning and removing td elements properly.

* on_focus: the handle to resize are now hidden when the td/th is alone
on its row

* on_clone: when cloning a td element which is alone on its row, it is
instead cloned in a new row. If not, empty td are added on the whole
column to maintain table integrity.

* on_remove: handle removing td in complex table
2016-09-23 11:16:16 +02:00
Denis Vermylen (dve) f500f6462b [FIX] purchase_requisition: add context to vendor_id
partners for the vendor_id field on purchase.requisition (purchase agreement)
form view was not restricted to vendor partners. Also added default values for
on-the-fly creation.
2016-09-23 10:38:13 +02:00
Damien Bouvy d12dc84209 [FIX] account: remove default_type from context
This key causes problems down the line (since account.asset.asset
have a type field as well) caused by context propagation.

The key is not required anyway, since out_invoice is the default
type.
2016-09-23 10:10:38 +02:00
Thibault Delavallée e8cb5c6e0f [IMP][MOV] website_(portal_)sale: move access button from ecommerce to website_portal_sale
website_portal_sale adds support for sale orders in the front-end. It is therefore
in that module that we have to set the buttons in notification emails. Not in
ecommerce app.
2016-09-23 10:01:42 +02:00
Thibault Delavallée 458aaca328 [IMP] mail: reimplement grouping of notification recipients
There is now a single method easier to inherit to add specific behavior
for the display of access button as well as actions buttons. All addons
using this mechanism are updated accordingly.
2016-09-23 10:01:41 +02:00
Thibault Delavallée fcb51faa9f [FIX] mail: fix display of actions button in notification email 2016-09-23 10:01:41 +02:00
Thibault Delavallée a9bd9ab160 [FIX][IMP] various: unsudo mail/view controller and get_access_action
mail/view controller is a generic controller that redirects the user to a
given view, depending on the record and the user. Users may be redirected
to the backend form view, or to a website view. This is done notably by
calling get_access_action method that gives the action to perform (act_window
or url).

Previously this method was called using SUPERUSER. However it was therefore
impossible to know who the user was. This method is now called using the
current user. Various overrides of get_access_action have been updated to
add some logic and access rights check directly in the method allowing
more fine-grain behavior of the access action.
2016-09-23 10:01:04 +02:00
Thibault Delavallée 033fc508f4 [FIX] mail: fix notification buttons url generation
* Assign controller now effectively redirects to mail/assign instead of
   mail/assign
 * Follow and Unfollow button now uses the helper that generated the link
2016-09-23 10:00:18 +02:00
Olivier Dony 07cbde54d6 [FIX] account_asset: typos in field names (swapped) 2016-09-22 19:50:53 +02:00
Alexis de Lattre 8b1cd80914 [ADD] l10n_fr: add price included sale taxes
Closes #12695
2016-09-22 19:50:53 +02:00
Jeremy Kersten 26c7ff9118 [FIX] gamification: don't use multimode from render_template
If render_template get list and not id, a dict is returned.
Force the param to be a int, allow to don't use the multimode from render_template.

Avoid to get message like:
 <p>{1: u'\n        </p><p>Congratulation, you have received the badge <strong>Autobiographer</strong> !\n        </p>\n\n'}
 <p>{2: u'\n        </p><p>Congratulation, you have received the badge <strong>Autobiographer</strong> !\n        </p>\n\n'}
 <p>{3: u'\n        </p><p>Congratulation, you have received the badge <strong>Student</strong> !\n        </p>\n\n'}
 <p>{4: u'\n        </p><p>Congratulation, you have received the badge <strong>Supporter</strong> !\n        </p>\n\n'}
2016-09-22 18:17:55 +02:00
Jeremy Kersten f5f066f78e [FIX] website_portal: fix key error on edit form
Fix 'Key error' dues to prematured access {key: post[key] for key in optional...
Replace street2 by company name
2016-09-22 18:17:28 +02:00
Christophe Simonis de77992320 [FIX] product: correct import order 2016-09-22 17:01:54 +02:00
Denis Vermylen (dve) 2e0df7594b [FIX] stock: fix domain if no locations
in _get_domain_locations_new

if no locations the domain gets extended by nothing so we have a domain ending
in '&', '!']. This method gets called by opening the Products app, so it was
possible you couldn't open it due to this error.
2016-09-22 16:15:56 +02:00
Christophe Simonis 09c2e4a5bc [FIX] core: fix registry initialisation
Registry.init_models now expect a list of model names instead of the
models themself.
2016-09-22 16:15:26 +02:00
Richard Mathot 419f4ac5db [FIX] tools: prevent html_translate crash with malformed HTML
If an user stores malformed HTML code in a *translatable HTML field*,
the ORM won't prevent it (this could be a fix for master as it breaks
existing behaviours) and it could be rendered anyway by browsers.

When reading/prefetching the record, the translation function was
crashing because malformed HTML is obviously malformed XML (the
translation function uses XML internals).

This fix will return the source value as a fallback if the HTML field is
malformed (and thus not translatable) + log the error.
2016-09-22 16:01:03 +02:00
Martin Trigaux 343170a695 [FIX] sale: bad translations for email templates
The source was outdated and the source in the po file did not match the content
of the email template which made duplicated translations when reloading the
terms.
2016-09-22 15:48:41 +02:00
Martin Trigaux 07e531efbf [I18N] export source terms
or at least the first part
many terms are missing which may cause problems when the source in the po file
is different from the source in the xml file (duplicated translation when
reloading)

Add the account_tax_exigible module
2016-09-22 15:42:02 +02:00
Christophe Simonis 856476d441 [MERGE] forward port branch saas-12 up to b1b700a 2016-09-22 15:23:45 +02:00
Jeremy Kersten 0e7c7a80d8 [IMP] base: set_param log warning if group not found. 2016-09-22 15:03:34 +02:00
fwi-odoo 4b812d9965 [FIX] product: Add form views for product product.attribute to avoid confusing generated ones
Fix missing fields and inherited fields
in the commit 9f604239a6
2016-09-22 14:44:39 +02:00
Yannick Tivisse a090cbea73 [FIX] hr_timesheet: merge hr_timesheet Officer and Manager access right
There's no real difference between the 2 access rights
2016-09-22 14:42:06 +02:00
Thibault Delavallée f021707d50 [MERGE] project_*: fix and improve usability of app after saas-13 testing 2016-09-22 14:38:31 +02:00
Christophe Simonis b1b700adb1 [MERGE] forward port branch saas-11 up to 6854887 2016-09-22 14:23:07 +02:00
Damien Bouvy 03e2f70c32 [FIX] website_quote: stop usnig recordset in write
and use its id instead
2016-09-22 13:48:20 +02:00
Thibault Delavallée 26ef6b8bc0 [IMP] project: tweak views
* Display alias options when editing the project email tab
 * Reorganize project details
 * Reoganize email details
 * Display options when creating project (timesheets, forecast, ...)
2016-09-22 13:47:30 +02:00
Thibault Delavallée 6b0064cc18 [DOC] project: improved and cleaned labels and helps 2016-09-22 13:47:19 +02:00
Thibault Delavallée 424df4ca58 [FIX] project: fix manifest category 2016-09-22 13:47:18 +02:00