Commit Graph
105629 Commits
Author SHA1 Message Date
qdp-odoo 76fa6abfcc [IMP] l10n_be: set accounts on 0% taxes + improved name of account 440000
Because 0% taxes will appear in the account.invoice.tax object of the invoice and the account, if null, will be the expense one which is confusing.
Because 44000 is use as everyone as payable account, so removed duplicated 'Fournisseur' account
2016-09-23 15:03:40 +02:00
Damien Bouvy 0cd34718bd Revert "[FIX] product: remove empty variant on first attribute add"
This reverts commit 20e19fdf85.

Already fixed by @fwi-odoo in 82b83ac
2016-09-23 15:02:08 +02:00
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
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
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
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
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
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
Christophe Simonis 856476d441 [MERGE] forward port branch saas-12 up to b1b700a 2016-09-22 15:23:45 +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
Thibault Delavallée cdfd61dca3 [IMP] project_issue_sheet: make module auto install
This module is a bridge when you have project_issue and manage timesheet. Not having it
automatically installed is a non sense.
2016-09-22 13:47:18 +02:00
Thibault Delavallée d49ede9ac4 [FIX] project_issue: fix migration issue leading to crash in duplicate 2016-09-22 13:47:18 +02:00
Thibault Delavallée 4b4b31e0b1 [IMP] project_*: order task / issue / timesheet / forecast buttons on project 2016-09-22 13:46:32 +02:00
qsm-odoo 5a0a29b528 [FIX] web_editor: prevent crash when deleting multiple snippets in one deletion
Since saas-12, when deleting contents, parents are deleted too if they
become empty (while it was not possible to delete contents in that case
before). The problem here was that the history was recorded multiple
times if one deletion made multiple snippets be deleted and this
sometimes could crash.

Now the history is recorded only on first deletion when the user ask
for it.
2016-09-22 13:44:06 +02:00
Christophe Simonis 6854887ade [MERGE] forward port branch saas-10 up to 477482e 2016-09-22 13:41:33 +02:00
fwi-odoo 82b83ac7cd [FIX] product: delete unecessary product variants
Bug introduced by 1aa5bc0fdf
During migration to new api
2016-09-22 13:37:04 +02:00
Christophe Simonis 477482ed9f [MERGE] forward port branch 9.0 up to 78f6117 2016-09-22 13:05:29 +02:00
Christophe Simonis 78f6117db0 [MERGE] forward port branch saas-6 up to 6a67e5c 2016-09-22 12:52:35 +02:00
Christophe Simonis 6a67e5cf42 [MERGE] forward port branch 8.0 up to e083d72 2016-09-22 12:46:30 +02:00
Raphael Collet 16a0b3b249 [FIX] models: do not delete ir.model.fields in _field_create (#13565)
Following 5c5d0865b9, apparently unused records
are simply deleted after updating existing ones.  This causes an issue when a
module is installed or upgraded.  The inspection of `ir.model.fields` records
is based on a *partial* registry (not all modules loaded); therefore records
will be deleted and recreated afterwards.  This triggers inconsistencies in
other models that refer to `ir.model.fields`, like server actions, base action
rules, mail templates, etc.: many2one fields will be set to null!
2016-09-22 12:29:24 +02:00
Martin Trigaux ca43594a0d [FIX] doc: rename current branch name in configuration
It is used in the version switcher
2016-09-22 11:32:23 +02:00