Commit Graph
103218 Commits
Author SHA1 Message Date
Thibault Delavallée 21756eb55c [FIX] crm: sales team form view
Email alias is now visible in the form view. Indeed it is displayed in the
kanban view. However in order to edit it the user had to go into technical
group in the form view. This is confusing. Advanced alias configuration
is kept in technical group.
2015-12-02 11:36:01 +01:00
Thibault Delavallée 85ea9b48e8 [FIX] project: demo data
In project, stages are shared between projects. However demo projects do not
have any stage by default but stages are assigned to some random stages. This
leads to columns disappearing from the kanban view when there are no more
tasks or issues in it.

Also fixed the addition of followers in a demo project. Instead of hardcoding
the followers use a message_subscribe instead. It was impossible to reload
the project module before that fix.
2015-12-02 11:35:02 +01:00
Thibault Delavallée 2210a684e3 [FIX] project: project and stage views
project.project: alias should be visible without being in technical group.
Indeed the alias is displayed in the kanban view. However in order to edit
it the user has to go into technical mode, which is confusing. The alias
is now displayed in the form view, but advanced alias configuration is still
in technical group.

project.stage: show projects using the stage. Without that field it is quite
impossible to configure the use of stages in the project application.
2015-12-02 11:34:03 +01:00
Fabien Pinckaers 5b60e05ce4 [IMP] im_livechat: rating on a week
Percentage of happy customers should be computed over the last week.
2015-12-02 11:33:59 +01:00
Géry Debongnie f58450dbe9 [FIX] web_kanban: properly removes nvd3 tooltips
with the recent update of nvd3 to the last version, we fixed a lot of
tooltip issues, but we introduced at least a new problem:  when a view
is detached from the dom with a visible tooltip, it no longer is cleaned
up.

In this commit, we simply remove all nvtooltips when we detach a kanban
view (necessary because dashboards inherits from kanban).  This is not
really an elegant way to solve the issue, but at least it works.  any
improvement is welcome.
2015-12-02 11:13:22 +01:00
Martin Trigaux 27d439901c [FIX] base: create translations of a duplicated record
When creating translations (click on blue flag) of a duplicated record, it used
to have the module information of the duplicated record.
It is also not useful to check the module when trying to find if a translation
exists on this record as the res_id is present in the query.

Fixes #9480
2015-12-02 10:57:46 +01:00
Christophe Matthieu ae175d1574 [FIX] website_blog: change_background doesn't work occasionally
Some time new background image, which I set via "Change cover" button don't saved. Because super is called before the jsonRpc and don't wait that the background is saved.
2015-12-02 10:40:16 +01:00
Raphael Collet 2d6fd5ea65 [IMP] ir_translation: make access rights depend on translated record
A translation of a field value for a given record can only be created/updated/
deleted if the current user has access rights for updating the record.

Access rights on translations are restricted to the group "Employee".  Those
still need create/write/delete access, in order to be able to edit records in
the user interface.  Other users (portal, etc.) simply have no explicit access
rights at all on translations.
2015-12-02 10:12:16 +01:00
Nicolas Martinelli 1e9ce28f7b [FIX] website, web_editor: open in new window
The field `isNewWindow` is used to open a link in a new tab. In this
case, the field newWindow was used, and therefore the property was not
applied.

opw-657510
2015-12-02 10:00:16 +01:00
Nicolas Martinelli 5c6c91bb81 [FIX] stock: display route number
When routes are defined for the variants of a product, the total number
of routes is not computed correctly. The total number of routes for a
product template should be the sum of the routes of its variants.

opw-657471
2015-12-02 09:57:52 +01:00
Nicolas Lempereur bcd7273ba8 [FIX] web: pivot axis switch groupby field
In ee0caa246 we solved some issue when a field was used in a "group by"
filter, but was not considered "groupable" (which does not resolve
related field in their related model to see if they fit the bill).

This was fine, but this has to be also taken into account when these
group by are applied to columns, which is possible by switching x and y
axis.

opw-647401
2015-12-02 09:55:05 +01:00
E.R. Spada II e0b55e9c5d [FIX] sale_margin: wrong onchange field
The cost does not take into account the quantity but the uom.
Closes #9802
2015-12-02 09:19:18 +01:00
Denis Ledoux eaed775ee2 [FIX] point_of_sale: session summary report
In 9.0, the currency field on the statement is
no longer `currency`, but `currency_id`.

This is an oversight during the forward port
6a306a03be

opw-658101
2015-12-01 18:06:44 +01:00
Denis Ledoux c99122cdb9 [FIX] anonymization: xmlid_to_res_id doesn't have a context argument
This is related to the revision 2e66c489e3

`xmlid_to_res_id` doesn't have a `context` argument,
trying to do a call with this `context` failed.

A simple attempt to anonymize the database raised the error.

opw-657858
2015-12-01 17:39:27 +01:00
Denis Ledoux 258c11a9a6 [FIX] mass_mailing: unsubscribe link when testing the mailing
When testing a mass mailing before sending the mailing
to the contacts (which well, is always the case),
the local links were not replaced by absolute links,
and the override done on the method `send_get_email_dict`
to convert the link `/unsubscribe_from_list` to the actual
unsubscription link was not working, as it relied
on the absolute link.

opw-657982
2015-12-01 17:23:32 +01:00
Martin Geubelle 53dab127e1 [FIX] web_kanban: position of kanban_no_content
In sales dashboard, when there is no sales team, the no content message is displayed next to the dashboard.
The class o_kanban_ungrouped adds style to avoid this problem.

Credits to @qsm-odoo.
2015-12-01 16:37:25 +01:00
Ray Carnes f9453a1e1a [FIX] crm: grammar/spelling in demo
Closes #9803
2015-12-01 16:02:00 +01:00
E.R. Spada II fc61bfe993 [CLA] Update eugeconsulting CLA
Add support email.
Closes #9803
2015-12-01 15:56:00 +01:00
Goffin Simon fc2295d8eb [FIX] website_sale: "Add to Cart" button with inactive variants
When clicking on "Add to Cart" button(a link in fact) with an
inactive variant in the Shop, the button must be disabled.
As "Add to Cart" is a link, the attribute "disabled" had no effect
on.

opw:657967
2015-12-01 15:46:28 +01:00
Yannick Tivisse dd92bd2a06 [IMP] project_issue: Display 'Issues' before 'Documents' on Dashboard
When the tasks are disabled on a project, we have this block order
Documents -> Issues

It's annoying because the documents view opens when we click on the
card if only the issues are enabled and documents have been posted
2015-12-01 15:37:59 +01:00
Martin Trigaux 44eeb387d3 [FIX] purchase: updating existing PO should keep origin
When a make to order product is sold, a purchase order is created or added to an
existing one. In the second case, the origin of the sale order was lost.
It is now added to the existing source.

opw 656688
2015-12-01 15:23:46 +01:00
Denis Ledoux 0016bbd6d1 [FIX] portal_sale: invoice form for portal users.
Some fields were available in the invoice form view for portal
users, that they are either not supposed to see, or they do
not have the access rights to see them.

opw-657900
2015-12-01 15:17:06 +01:00
Nicolas Martinelli 3ebc2f4722 [FIX] product_visible_discount: forward port of bb90e55fb5 2015-12-01 14:50:25 +01:00
Nicolas Martinelli ed19f13843 [FIX] sale_stock: add category routes
The product category routes should also be added in the list of routes
checked since they are also used in _search_suitable_rule.

opw-653991
2015-12-01 14:50:24 +01:00
qdp-odoo 5eecd2a21a [FIX] l10n_fr: generate the chart of accounts after all templates have been created. Fiscal positions were missing 2015-12-01 14:17:51 +01:00
Goffin Simon e4ba2d43c9 [FIX] sale_crm: invoiced button in dashboard
The invoiced amount in the Sales dashbord must be compute with
the customer invoices.

opw:657538
2015-12-01 14:01:18 +01:00
Jeremy Kersten f814dd9908 [FIX] web, openerp: debug mode now works without referer
In some cases the Referer HTTP header may be missing or
stripped by a proxy, browser extension or anti-virus.
This breaks debug mode because it was solely relying
on the Referer header.

Introducing an explicit X-Debug-Mode header for RPC
calls allows for an alternative method that works
even when the Referer is missing.

This won't work in all cases, e.g. for direct $.ajax
calls, for example.

Closes #9824
2015-12-01 13:47:30 +01:00
Christophe Matthieu 1cd03ed7fe [FIX] web: one2many set_value must use dataset last_default_get as default values 2015-12-01 13:41:28 +01:00
Christophe Matthieu 0ba248aeda [FIX] web: prevent default value changes
Load record use values as dataset and change object value (for eg: add virtual id in the default value object).
2015-12-01 13:41:28 +01:00
Denis Ledoux 06eccf5a54 [FIX] event: located dates in events name
The user timezone wasn't respected in the events name.

e.g. for a user with timezone UTC+1,
for an event
from 12/01/2015 00:00:00
to   12/02/2015 00:00:00
The dates in the event name were set to
(2015-11-30 - 2015-12-01)
while it must be
(2015-12-01 - 2015-12-02)

opw-657962
2015-12-01 12:32:14 +01:00
Joren Van Onder d37c8ef632 [FIX] point_of_sale: use mapped taxes when creating account moves
We have a tax_ids_after_fiscal_position field on pos.order.line that
contains the mapped taxes. We should use that to create the account
moves. Otherwise the Point of Sale will create unbalanced journal
entries.

Fixes #9815
2015-12-01 12:20:36 +01:00
Olivier Dony 68196b1b6a [FIX] setup: missing cacert.pem data file for requests in win32 packaging
This data file is required when making HTTPS requests
with Python's `requests` package. Without it, modules
such as account_yodlee/account_plaid won't be able
to call their secure API.

+ minor refactoring (3 strikes and the code is out)
2015-12-01 12:03:25 +01:00
Jeremy Kersten c258702faf [FIX] website_sale_stock: fix xpath
Xpath expr has been changed between saas-6 and 9.0... Forward-port doesn't update it.
2015-12-01 11:50:50 +01:00
Cedric Snauwaert ee97028fa0 [FIX] account: account that has been deprecated should not be choosen on a new invoice 2015-12-01 11:47:02 +01:00
Goffin Simon c02d0287d8 [IMP] account: Bank statement reconciliation
It was impossible to make a partial reconciliation with several lines.
Each time a new line is proposed for the reconciliation, the previous
partial reconcialtion is canceled. The partial reconciliation can just
be proposed on the last selected line when:
self.get("balance") * (last_line.debit - last_line.credit)<0
2015-12-01 11:07:08 +01:00
Denis Ledoux 390aa7a78d [FIX] hr_timesheet_sheet: menu to check past timesheets
For a simple employee (meaning, not a HR officer),
it wasn't possible to view past timesheets.

Indeed, the "Weekly" menu opens the current timesheet,
and the menu "Timesheets to approve" is available only
for HR officers.

opw-657860
2015-12-01 11:00:47 +01:00
Martin Trigaux 00ee6e7ba4 [FIX] base: wrong term in .pot
As the name of the module has changed
2015-12-01 10:25:13 +01:00
Martin Trigaux 253437f81f [FIX] base: set module when creating translation
Port revision 70287d4 to 9.0

When creating missing translations on an object (e.g. using blue flag icon on a
field), the value of the module was not set.
This was problematic as could create a duplicated translation when the module
was updated or the translation reloaded (as the module is used in find_expr).

opw 654036
2015-12-01 10:19:25 +01:00
Nicolas Lempereur 516c8de3e9 [FIX] web_settings_dashboard: set undefined installed_apps
opw-657865
2015-12-01 10:14:56 +01:00
Damien Bouvy 8469a4dea0 [FIX] sale: make the field visible when needed, instead of always invisible
The group group_analytic_accounting is actually part of analytic, not sale.
2015-12-01 10:07:11 +01:00
Yenthe 1bb62470e4 [IMP] l10n_be: accounting translations
Extra accounting translations
Closes #9821
2015-12-01 09:57:21 +01:00
Martin Trigaux a9ec2894de [MERGE] forward port of branch saas-6 up to 19fe77b 2015-12-01 08:41:52 +01:00
Martin Trigaux 0ee11f23f1 [FIX] project: undecember is not yet supported by python
But this should probably move to demo
2015-12-01 08:30:40 +01:00
Fabien Pinckaers fb2a549798 [IMP] improved module name 2015-12-01 03:50:43 +01:00
Odoo Translation Bot cc82f7518f [I18N] Update translation terms from Transifex 2015-12-01 00:28:25 +01:00
Denis Ledoux 53ae4a3169 [FIX] project: avoid to remove the default partner_id
The onchange of the project field
removed the default partner loaded of the task
if there was no project set on the task, or if the
project was not associated to a specific partner.

There is no obvious reasons to do so,
and the revision 3fe06da634
introducing the regression doesn't explain why
it has been done. At first sight, there is no reason.

opw-657876
2015-11-30 17:46:31 +01:00
Martin Trigaux 19fe77b7d7 [MERGE] forward port of branch 8.0 up to 1f07b942 2015-11-30 16:57:14 +01:00
Martin Trigaux 35f3dea5d2 [FIX] stock_dropshipping: do not raise a warning for dropshipping product
When selling a product with a dropshipping route, the available stock was
checked and a warning got raise if it was the case.
The _check_routing was not working properly as is called in a context of an
onchange and 'self' was the record in the database, not in the browser.

Just use check there is a dropshipping route on the product instead of checking
it on the routes of the sale order line (not reliable info anyway).

Add a todo for master to improve it to change the signature of the method.

opw 657760
2015-11-30 16:55:45 +01:00
Martin Trigaux 1f07b9429c [FIX] base: update translations should not duplicate the terms
When a translated term is modified (e.g. content of an email.template),
reloading the translations of the module (e.g. when updating the module) used to
recreate a new, duplicare translation for the modified term (instead of ignoring
the existing one).

This was due to the fact the matching expression (find_expr), when loading
translations, used the field 'src' (source term) as criteria for (almost) all
ir.translation records.

While this is true for type 'code' or 'selection', this is not true for 'model'
where the source content may have been changed.
In case of translation of type 'model', matching on the name and res_id should be
enough for the matching expression and then, avoid creating duplicated
translations.

Note: this patch must NOT be present in 9.0 due to the xml_translate
attribute that splits an xml content into small parts.

opw 654031
2015-11-30 16:41:56 +01:00
Martin Trigaux a70287d42c [FIX] base: set module when creating translation
When creating missing translations on an object (e.g. using blue flag icon on a
field), the value of the module was not set.
This was problematic as could create a duplicated translation when the module
was updated or the translation reloaded (as the module is used in find_expr).

opw 654036
2015-11-30 16:41:56 +01:00