Commit Graph
103231 Commits
Author SHA1 Message Date
Thibault Delavallée 9e69e5229a [IMP] website_*: template update
Website modules templates are updated :

- website_slides: published and shared templates updated
- forum: confirm email updated
2015-11-02 11:51:09 +01:00
Thibault Delavallée 7fe9d58b0d [IMP] invoice, sale, purchase: template update
Templates used to send invoice / quotation / PO by email are cleaned. Custom
style is removed. Content is simplified.

For sale, only one template is kept through the various addons. Previously to
this commit there are 3 templates: standard, portal and online quote. Those
template are similar except the link to get the sale order. Now the base template
contains some logic that should be sufficient to cover all cases. This breaks
the modular approach but is easier to use for users. As templates are still mako
it is not possible to use inheritance. So having a base template knowing some bits
of overriding modules is necessary if we want to avoid having the same template
duplicated.
2015-11-02 11:51:09 +01:00
Thibault Delavallée b52069754d [IMP] mail: notification template
The template used for notifications is updated. The general layout
is now

header: logo -- action buttons, contextual actions
separator
body
signature
Sent by company using Odoo
2015-11-02 11:50:14 +01:00
Thibault Delavallée 15b362fde9 [IMP] website_slides: update action and access
Action and access button in notification emails are added. Override
mail_thread methods to add a specific link + an access buttons to
everybody if the slide is published.
2015-11-02 11:49:40 +01:00
Thibault Delavallée fa0bdec3ea [TMP] mail: temporarily deactivate keep_url
This makes every template holding images crash. As this feature will shortly be
fixed in 9, let us temporarily comment its use and wait for the forward port of
the fix.
2015-11-02 11:49:40 +01:00
Denis Ledoux 5ba54082e6 [FIX] crm: leads/opportunities search views
Leads and opportunities have each their own search view.

 - The menu Sales > Your pipeline must have
   as search view the one of the opportunities,
   like the "Pipeline" button in the crm dashboard
 - In the leads search view, filters/groupbys
   using fields that are not used in leads must be
   removed
 - `Channel` was renamed to `Medium` a while ago,
   the filter must use the terminology used in the
   lead/opportunity form view.

opw-652588
opw-653417
2015-11-02 11:47:17 +01:00
Ravi Gadhia 9bfb738b04 [IMP] base: res.lang form view layout, add "Active" filter in search view 2015-11-02 10:57:18 +01:00
Ravi Gadhia 7507b18b5d [FIX] web: hide "Create" button for editable tree views with create="false"
Make it such that the buttons "Save" and "Discard" are still visible.
2015-11-02 10:57:18 +01:00
Ravi Gadhia cb835f8a3b [IMP] web: display message to edit translations when translated fields have been modified 2015-11-02 10:57:18 +01:00
Ravi Gadhia 4b768b3ba0 [IMP] base: open dialog with editable list view for record translations 2015-11-02 10:57:18 +01:00
Raphael Collet f72594bcc6 [IMP] web: add a generic notification feature inside form views
The notification box remains on the form until either:
 - the user closes it explicitly, or
 - the user edits the record, or
 - the form view is refreshed (switch to another record, or refresh form).

Add a method `once` to `EventDispatcherMixin`, as it is convenient.
Make `FormView` trigger events `to_view_mode` and `to_edit_mode`.
2015-11-02 10:57:18 +01:00
Martin Trigaux 7d220a1eeb [FIX] typo and rephrase 2015-11-02 10:31:03 +01:00
Géry Debongnie cd71fe6687 [FIX] web,survey: update graphs tooltip to new nvd3
with the update of nvd3/d3, the tooltip api was changed.  This commit
updates the 3 last places where we were using the tooltips.
2015-11-02 10:06:13 +01:00
Goffin Simon f83cf7172e [FIX] sale: onchange_partner_shipping_id
To be compatible with old API.
closes #9146

opw:653257
2015-11-02 09:51:04 +01:00
Nicolas Martinelli 994cb2cb79 [FIX] website_sale: correctly display price reduced in cart
The price reduced is not correctly calculated in the cart. It is for
example the case if the products has included taxes.

opw-653464
2015-11-02 09:35:38 +01:00
Nicolas Martinelli a1d3be1546 [FIX] delivery, hr_timesheet, lunch, product_uos, purchase, sale: unsupported digits_compute
The new API does not support the keyword `digits_compute`, `digits`
should be used instead.

opw-653092
2015-11-02 09:35:38 +01:00
Goffin Simon 2e579438fb [FIX] payment: Payment menu in configuration
The "Payment" menu must be in Accounting/Configuration

opw:653299
2015-11-02 09:32:02 +01:00
Goffin Simon f3e7679710 [FIX] account: date on account.move.line
When an account.move.line(aml) is created for a reconciliation, the date
used in the aml must be the date of the bank.statement.line used to
create the aml.

opw:653335
2015-11-02 09:27:39 +01:00
Odoo Translation Bot 82cd86f181 [I18N] Update translation terms from Transifex 2015-11-01 03:03:27 +01:00
Odoo Translation Bot e3287faee6 [I18N] Update translation terms from Transifex 2015-11-01 01:32:05 +01:00
Odoo Translation Bot 80c7209d2e [I18N] Update translation terms from Transifex 2015-11-01 00:31:46 +01:00
Fabien Pinckaers 93d54b1025 [IMP] bank account creation 2015-10-31 18:44:28 +01:00
Denis Ledoux cd7d73a9a5 [FIX] point_of_sale: exclude rescue session when getting the user current session
This revision is related to 0ea31c272c.

It's no longer really needed since the rescue sessions have been removed,
with the revision 87a3fe92de,
except for databases already having opened rescue sessions.

opw-653180
2015-10-30 17:10:44 +01:00
Martin Trigaux db1538269b [IMP] project: better planner message 2015-10-30 16:36:32 +01:00
Martin Trigaux 07448cfe99 [FIX] English terms 2015-10-30 16:29:55 +01:00
Denis Ledoux fba855a717 [FIX] purchase: Order date default value.
Using `fields.Date.context_today` for a `Date` field is the
right thing to do, but not for a `Datetime` field,
as it won't return the current hour, and this will lead
to issues with the different possible timezones.

opw-652391
2015-10-30 16:24:50 +01:00
Nicolas Lempereur 70d0026125 [FIX] website: don't unescape translation text node content
When we had things like   or & in a text we want to translate,
the translation system would save it unescape (so \xa0 and &).

So in this instance, the traduction would not match the real source
which was not subjected to this unescaping.

opw-653173

note: fix is courtesy of dle (no need to forward port after saas-6)
2015-10-30 16:14:03 +01:00
Thibault Delavallée 6dfcc5f9c8 [FIX] various: get_access_action form one to multi
As this method is overided in several modules, the mix of new and
old API makes it difficult to handle. Indeed in some cases we
receive the expected dictionary, sometimes in a list, sometimes
in a list of list, due to api.one decorator.

This is a change in the method API, however it is currently completely
buggy. Moreover this method is used internally and should not be
used as an external API. Lastly, this method is new from v9.
2015-10-30 15:44:15 +01:00
Thibault Delavallée 9e53e2173a [FIX] mail: small issues layout of notifications 2015-10-30 15:44:15 +01:00
Thibault Delavallée 5987648656 [FIX] website_portal_sale, website_quote: access link
/my/orders is available only for quotations not in draft or cancel mode. No
need to redirect to website for those quotations.

online quotation was buggy, id was not defined, use quote.id instead. Woaw.
2015-10-30 15:44:15 +01:00
Martin Trigaux 7328267a85 [IMP] all: missing spaces or line return in help message 2015-10-30 15:43:29 +01:00
Géry Debongnie 38581f6723 [FIX] bus: share longpolling among tabs
The bus used to do a long poll as soon as it is started.  This is fine
when the user has a single tab, but not so fine when 5 or 6 tabs are
open.  This commit introduce the concept of tab manager, a way to decide
among all tabs who is the leader.  The leader will then initiate the
long poll, and share the notifications via the local storage.
2015-10-30 15:39:42 +01:00
Martin Trigaux b07d95a7ea [IMP] website_slides: improve help message 2015-10-30 15:31:21 +01:00
Martin Trigaux 09c4947a27 [FIX] fetchmail: missing space 2015-10-30 14:54:26 +01:00
Martin Trigaux 9c425f3111 [FIX] fetchmail: missing space 2015-10-30 14:52:38 +01:00
Raphael Collet fe4872f10c [IMP] api: add a decorator for old-API methods that take records as parameters
The decorator transforms old-API calls like

    model.method(cr, uid, records, args)

into

    records.method(args)
2015-10-30 14:37:04 +01:00
Martin Trigaux 98d5673277 [FIX] web_planner: help message on active field 2015-10-30 14:36:11 +01:00
Martin Trigaux 5f5afd006d [FIX] web_planner: wrong help field
Will be fixed in master
2015-10-30 14:29:42 +01:00
Christophe Matthieu a2520f1276 [FIX] purchase: set default 'purchase' as 'Tax Scope' when use create from m2m order_line 2015-10-30 12:01:16 +01:00
Christophe Matthieu a9d20d9fa0 [FIX] web: save fields in m2m (list_editable) with attributes and check all lines
Issue: steps to reproduce:

create a purchase order
choose a supplier
choose a product
change the quantity
don't click anywhere on the form, just click on "confirm order"
you get an error "invalid field: scheduled date"

Use dataset instead of record because record can have an other value (a short for a moment due to deferred).
Use silent option to avoid onchange.
2015-10-30 12:01:16 +01:00
pvy a588fbf8dc [ADD] account: new action to get to an action move list view 2015-10-30 11:03:01 +01:00
Olivier Dony ff2069eb69 [MERGE] Forward-port 9.0 up to 9a3e9291ffa1509f4afa0f35f9d8d71b6e0932d1 2015-10-30 10:47:13 +01:00
Thomas Groutars 9a3e9291ff [IMP] crm: Add name attributes in lead search view to ease inheritance
Closes #9312
2015-10-30 10:19:25 +01:00
Joren Van Onder b1735c7f64 [FIX] point_of_sale: get rid of paymentlines with an amount of 0
Since c04065abd8 (introduction of
accounting v9) bank statement lines can not have an amount of zero
anymore. So when we validate an order in the POS client we need to get
rid of paymentlines with an amount of zero.
2015-10-30 10:00:37 +01:00
Nicolas Lempereur fb872f84f1 [FIX] web: no accesskey for x2m pager
The fix in 665bc1c solved the issue for pager of some X2Many widget x2m
which would shadow the accesskey to go to previous/next page of the top
view's  current model.

But in the case a web.Pager (used in community for a X2Many kanban
widget) the fix had no effect.

opw-652888
2015-10-30 08:40:09 +01:00
Géry Debongnie 329552b78e [FIX] web,account,website_links: update nvd3 to last version
This commit was necessary to fix weird problems in 9.0-nightly.
Phantomjs and the old nvd3 implementations did not play well together.

* transitionDuration() replaced by duration()
* tooltips() & tooltipContent replaced by tooltip.enable and tooltip.contentGenerator
* remove useless less for tooltip

Thanks to mge for his help
2015-10-29 22:15:44 +01:00
Denis Ledoux 7158eaf80d [MERGE] forward port of branch 8.0 up to ee2b550 2015-10-29 16:28:54 +01:00
Nicolas Martinelli 55535a6f61 [FIX] website_sale: keep pricelist when creating new SO
The call to onchange_partner_id resets the pricelist. Now, SO is created
with correct values right away.
2015-10-29 16:08:11 +01:00
Nicolas Martinelli 1684ae41e7 [FIX] website_sale: currency in line with pricelist selected
Before this fix, inconsistencies arise in the prices displayed in a
multi-currency environment. For example, let's consider these 2
pricelists:
- Public Pricelist, in USD
- Benelux Pricelist, in EUR with 10 % discount

When the Benelux Pricelist is selected, the strikethrough price is in
USD, the price is in EUR, and the currency displayed is $. The reason
is that the pricelist used is stored in request.session, but the
templates are still using the pricelist linked to the partner.

We link website.pricelist_id to the currency stored in request.session,
which is more logical. We also use the currency related to this
pricelist in the templates, which avoids the inconsistencies mentioned.
2015-10-29 16:08:10 +01:00
Goffin Simon 0366ae16a9 [FIX] warning: onchange_partner_id
The function _onchange_partner_id must be triggered when the field 'company_id'
is modified like with function _onchange_partner_id in addons/account/models/account_invoice.py
In this way, the account_id is set in 'account.invoice when the 'company_id' is changed.

opw:652918
2015-10-29 15:58:44 +01:00