Commit Graph
105552 Commits
Author SHA1 Message Date
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
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
qdp-odoo 2eecf81a0e [IMP] l10n_nl: New Dutch localization module. Courtesy of Onestein. PR# 12351 2016-09-22 10:57:11 +02:00
qdp-odoo 22c9747e2d [FIX] stock_landed_costs: fixed test case to work also in case of non anglo saxon accounting. Also changed TestLandedCosts to extend AccountingTestCase 2016-09-22 10:57:11 +02:00
qdp-odoo 4bddd00813 [REF] stock_landed_costs: internal_types view and closed don't exist anymore... 2016-09-22 10:57:11 +02:00
qdp-odoo cdbe7140e5 [FIX] account_budget: fix test in case a COA is installed but has no accounts of type revenue/Expense with tag operating activities 2016-09-22 10:57:11 +02:00
Yannick Tivisse 9f604239a6 [FIX] product: Add form views for product product.attribute to avoid confusing generated ones
Currently there are no form views for products attributes. When editing the variants and clicking 'Create and edit' on the attributes or the attributes values, the views are really confusing for the users.

These simple views will avoid the frustration
2016-09-22 10:36:14 +02:00
Jeremy Kersten 9b8521c0a0 [FIX] website_sale: multi image css - remove border and reduce height 2016-09-21 21:29:18 +02:00
Jeremy Kersten f0463a3e1d [IMP] web_editor, website, website_sale: add zoom option for t-field image
web_editor Qweb: Add 'zoom' option for widget image
    <span t-field="product.image_small" t-options="{'widget': 'image', 'zoom': 'image_medium'}" />

website: Add Zoom code to be standard for all website module

website_sale: add zoom on Main product image
2016-09-21 21:29:18 +02:00
Jeremy Kersten fd36e5ceda [IMP] website_sale: improve data to decrease the number of pricelist visible.
In old data, many pricelist had just no sense.
It was created to make tests, but don't have sense in the eCommerce after
 the tests.
2016-09-21 21:29:18 +02:00
Jeremy Kersten ebbe98867e [FIX] website: increase limit in searchpage for menu
In edit menu, search with de demo data /shop, was the 12th results, but limit 9.
We only move the problem to later, but when the user start with the website apps,
it avoid to be lost on first menu creation.
2016-09-21 21:29:18 +02:00
Jeremy Kersten 3e5496340d [FIX] website_sale: add property pricelist from partner only if the
pricelist is available for the website.

Now that the property is automatically, the partner will always have one
pricelist.
2016-09-21 21:29:18 +02:00
Jeremy Kersten eb90e11134 [FIX] product: fallback on global partner property after the country groups matching
Default porperty was overriding localization filter.
2016-09-21 21:29:18 +02:00
Jeremy Kersten df2a28c86f [FIX] website_forum: valid url at submit.
Older regexp was not working, event with the sample: https://www.odoo.com
Should be shared in util.js
2016-09-21 21:29:18 +02:00
Jeremy Kersten 115c38e35f [FIX] website_sale: don't sort on name, keep the default order (sequence) 2016-09-21 21:29:18 +02:00
Jeremy Kersten bfe439bfd4 [FIX] website_sale: fix loading state in checkout
Before this commit, the first time that you select a country, the states was not loaded
if at loading time, there had no states loaded.
2016-09-21 21:29:18 +02:00
Jeremy Kersten 451a79ab2a [FIX] website_sale*: use website_price instead of price 2016-09-21 21:29:18 +02:00
Jeremy Kersten 00bd357260 [FIX] website_sale: change class to t-attf-class to allow override
website_event_sale overrides the template with a t-attf-class, so the class are ignored
2016-09-21 21:29:18 +02:00
Jeremy Kersten fe46f2c7fd [FIX] website_sale_option: force price for qty 1
Display the price for 1 product only
2016-09-21 21:29:18 +02:00
Jeremy Kersten 7cd95c7b3f [FIX] website_sale: always force the unit price when the pricelist is with_discount
When pricelist is updated, with need to recompute the price and force the unit price
to the discounted price.
2016-09-21 21:29:18 +02:00
Jeremy Kersten 690d01b166 [FIX] website_event_sale: fix multi currency in view
Amount and symbol was mixed
2016-09-21 21:29:18 +02:00
Jeremy Kersten 3d54bc9378 [FIX] website_sale_options: remove useless js code + hide js_delete_product link in optional line 2016-09-21 21:29:18 +02:00
Jeremy Kersten e3d7902274 [FIX] website_sale: avoid to add indefinitely 'option for'
Before this commit, add, or remove one qty from a checkout line, add always the text 'Option for...'
2016-09-21 21:29:18 +02:00
Jeremy Kersten ec0f3187d7 [FIX] website_sale: show discount if difference is biggest than 1 cent.
Due to some rounding error, we arbitrarily decide to don't show a discount of 1 cent.
Before this commit, the limit was 10 cents in some case, 20 cents in others cases, ...

In the case of a guy who sell nails, these 2 cents may be important :)
2016-09-21 21:29:18 +02:00
Jeremy Kersten c0b7c9f0db [FIX] website_sale: dont remove discount class when no discount for optional product
That seems to have no impact negative to remove it.

That fixes the case when you have a main product with a discount, and a optionnal
product without the discount; before this commit, discount class was removed and
 so the striked price for the main product disappeared.
2016-09-21 21:29:18 +02:00
Jeremy Kersten e0f28d8e26 [IMP] website_sale: move menu pricelist from website admin into calalog section.
Before, only show in advanced pricelist mode, now, as soon as pricelist is activated.

* Usability request
2016-09-21 21:29:18 +02:00
Jeremy Kersten 547473afc9 [IMP] website_sale: set default website_id and show the field by default 2016-09-21 21:29:18 +02:00
Simon Lejeune 5c6087e38e [FIX] web: dropping a database leads to an unusable cursor
Explicitly remove the cursor of the request. Dropping a database
is not transactional and if overrides of ir_http's dispatch worked
with the database (for example, utm), we are not able to commit
the changes at the end of the request.

It worked nice before rev 40561b0fb6 that changed the use of self.pool
by request.env. Note: a cursor is always attached to an environment. Since
the call to super possibly broke the cursor (for example by dropping the
database), the end of the dispatch operation that try to commit and/or close
the cursor could possibly result in the traceback 'unable to close a closed
cursor' with request.env. With self.pool, it didn't happen because the
code actually called in the utm's dispatch override doesn't use a cr
and so there's nothing to close.
2016-09-21 15:56:59 +02:00
Simon Lejeune fbd4a2c73e [FIX] dispatch: creating a registry can raise an operational error
If you try to create a registry of a database, an exception can be
raised if the database does not exist. This may happen if you just
drop a database.
2016-09-21 14:40:05 +02:00
Simon Lejeune 6780597f2d [FIX] utm: correct ir_http's _dispatch override
When overriding dispatch, we have to make sure that we do the
database operations before calling super, because we are not sure
to have a valid database/env after (for example, in the case of a
drop of a database).
2016-09-21 14:40:05 +02:00
qsm-odoo b51e8a8a03 [FIX] mass_mailing, *: allow to auto select default text of templates
* + web_editor

The feature was only activated in the web_editor in snippet contents
(before they are dropped in the page). Now, on first theme selection,
the feature is activated in the template content.
2016-09-21 13:16:59 +02:00
stefanorigano 1fa0990a9a [FIX] mass_mailing: replace title of snippet menu in mass_mailing
The snippet menu title is only visible when choosing a theme for the
first time, so "Select a template" is better than "Add blocks".
2016-09-21 13:16:59 +02:00
Pierre Masereel 5ae29848ea [FIX] calendar: event display time timezone
If the method "_get_display_time" is called on an event and if the
user or partner has no timezone set. The string returned by the function
contains the value 'False' instead of a timezone.

To fix this, we replaced the "False" value by "UTC", because UTC is the
default timezone in Odoo.
2016-09-21 11:54:19 +02:00
Thibault Delavallée aaf5e6c3fb [IMP] res_partner: add email_formatted field on res.partner that is its email correctly formatted
It will be used in various email templates to avoid having either badly
formatted emails either not formatted emails. As this is a not stored
function field it does not impact model.
2016-09-21 11:20:21 +02:00
Yannick Tivisse 329cf0b485 [FIX] survey: Change 'Test' filter, as 'test' is not a state anymore
Currently there's a boolean 'test_entry'
2016-09-20 17:03:52 +02:00
Yannick Tivisse 17c61f54e9 [FIX] survey: Change the help label according to changes
The option name has changed.
2016-09-20 16:54:05 +02:00
Yannick Tivisse 3a381a1783 [FIX] hr_payroll: Remove stupid record rule that became buggy
In saas-12, a stupid record rule authorizes an employee to create a payslip only for him (dafuq)

In saas-13, sine the HR access right splitting, this record rule authorizes an payroll user ti create a payslip only for him (bug). A consequence of this is that the rule is also applied to the payroll manager (bugx2)
2016-09-20 15:43:04 +02:00
Yannick Tivisse e4c7c36c3a [FIX] hr_contract: Allow a employee user to read contracts 2016-09-20 15:42:29 +02:00
Yannick Tivisse b1add6a96e [FIX] hr_attendance: Allow a not attendance user to create an employee
Remove a groups_id in the view inherintence + remove the groups on the model
2016-09-20 14:35:29 +02:00
qsm-odoo 745d1e3328 [FIX] web_editor: adapt code which updates editor bar after image edition
This fixes a bug where the media dialog reopened after closing after
edition of a t-field="image_small" block.
2016-09-20 14:06:29 +02:00
qsm-odoo 9a1939bbcb [MERGE] mass_mailing, *: add new mass mailing theme system
* web_editor, website

-> Move some website options to web_editor to use them in mass_mailing
(margin and resize)
-> Rework on themes design and declaration conventions
-> Review theme switching to bring default layout on first edition and
to be able to define theme images
-> Move theme design in their own asset
-> Edition and saves fixes
2016-09-20 13:52:41 +02:00
qsm-odoo 4868b045a7 [FIX] web_editor: remove breaking cache of transcoder
The web_editor transcoder, who is in charge to change mail css style
into inline style and vice versa, has a cache to improve its
efficiency. The problem is that it was designed to work only if a
particular "<tag>.className" has always the same css style no matter
what its parent or neighbors are. This is obviously not compatible
with theme switching. Indeed, only by switching from one theme to
another, the parent of every snippet have a different className which
is used in css to design differently every snippet. Also inside a same
theme, we obviously want to be able to style a particuler .myClass
element differently from one snippet to another without having to
multiple css classes.

This commit removes the cache system to allow theme switching and
liberty in theme designing. This however make the edition start and
the saving really slower...
2016-09-20 13:52:29 +02:00
qsm-odoo a430c81b79 [IMP] mass_mailing: review theme style location and convention
* Use the theme class selector as root for the less file
-> Allow to style the editor as applied to the body
-> Split in editor/color/layout/snippets

* Create an assets to contain all mm themes so that the compilation is
made by the odoo system, and allow minification and variable sharing
between themes
-> Remove css files

* Reformat the LESS files content
2016-09-20 13:52:29 +02:00
qsm-odoo edb58e6beb [IMP] mass_mailing: automatically include the o_mail_wrapper element 2016-09-20 13:52:29 +02:00
qsm-odoo a0cfc0e88b [FIX] mass_mailing: remove website dependency 2016-09-20 13:52:29 +02:00
qsm-odoo 9749b93250 [IMP] website, web_editor, mass_mailing: move margin and size options
website -> web_editor so that they are available for mass_mailing.

To allow setting margins on td elements:

As the above mentionned option allows to control the mt and mb classes
on the mass mailing items, the problem is that we would ideally want it
to be functionnal on td element as they are the main part of a mail.
As they don't support margins, there were many options to fix the
problem:
- Add more JS to place the mt and mb classes on children of td element
- Place the option on children of td element and not td element itself
but in that case, the width control of td would imply a lot of parent
option hierarchy, or the width control had also to be adapted to control
children
- Control padding instead of margin. This forces to add lots of
css rules like pt4 pt8, ... (or td.mt4, td.mt8, ...).

The last solution has been chosen. Padding is more supported than
margins in mail client anyway and the css rules will be isolated in
the mail editor anyway. Using td.mt4 instead of pt4 had the advantage
to not require any JS modification.
2016-09-20 13:52:29 +02:00
stefanorigano 4f93d5c687 [IMP] mass_mailing, web_editor: improve themes/snippets/templates 2016-09-20 13:52:29 +02:00
qsm-odoo e3635494ea [IMP] mass_mailing: add default layout for mail themes
When there is no content in the mail, the user is now forced to choose
a theme. Once the choice is made, the theme introduces default content
(series of snippet to simplify user edition).

The default images are also changed when the theme is switched. To do
that, JS code was implemented so that on theme switch, all the images
are changed to check for images in the static theme folder or use a
theme related xml_id.

+ Refactore theme data management.
2016-09-20 13:52:29 +02:00