Commit Graph
105599 Commits
Author SHA1 Message Date
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
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
Nicolas Martinelli be8bbc2396 [FIX] base: traceback in read_group
An issue originally occurs in the Event module.
- Go to Events >> Reports >> Events
- Add a "Group By" in the search view: "Event Month"
- A mighty traceback pops up

This is because the rows and the columns are grouped by the same field
(`event_date:month`).

In method `_read_group_format_result`, a group_by of type "date" or
"datetime" is replaced by a "(range_start/range_end, label)" tuple. The
first element of the loop on `annotated_groupbys` is handled correctly,
but the next identical element will crash on `value + gb['interval']`,
since `value` is now a tuple and not a date/datetime anymore.

opw-686242
2016-09-22 10:21:10 +02:00
qsm-odoo 9ea6861d7e [FIX] web_editor: allow editing t-field links
There is a hackish feature in the web_editor which forces the
contenteditable to true on links which are clicked and removes it
anywhere else in the page so that only the link is editable after
click. This allows to add text at the end of a link without adding it
outside of the link by mistake.

The feature was badly implemented because, if the link was editable
without having any parent which is editable, the contenteditable was
forced to true, then immediatly forced to false when forcing to false
every page element. This was the case for lots of t-field. By example
the product categories in eCommerce are t-field links which are in non
editable <li/> elements...
2016-09-22 09:41:39 +02:00
Nicolas Lempereur e083d720a9 [FIX] website_blog: blog pager page issue
When we are on the page:

 /blog/myblog-1/page/2

the link to page 3 is:

 /blog/myblog-1/page/3

So we need to give /blog/our-blog-1 as source url of pager.

Previously in this instance, since 4faed0b7 the page 3 url
in this scenario would erroneously be:

 /blog/myblog-1/page/2/page/3

opw-688681
2016-09-22 08:05:20 +02:00
Jeremy Kersten e72b852015 [FIX] website_crm, website_hr_recruitment: remove useless token
This token will be added automatically at posting (by ajax.js from framework)
2016-09-21 21:34:11 +02:00
Wolfgang Taferner 71fd0829ef [FIX] anonymization: intercept exception in case of removed models and fields 2016-09-21 21:34:11 +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