Commit Graph
99262 Commits
Author SHA1 Message Date
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 e3287faee6 [I18N] Update translation terms from Transifex 2015-11-01 01:32:05 +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
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
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
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 09c4947a27 [FIX] fetchmail: missing space 2015-10-30 14:54:26 +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
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
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
Joren Van Onder 87a3fe92de [FIX] point_of_sale: forward port of 35e9fa5c41
Non-trivial port because 9.0 has rescue sessions that kind of try to
solve the same problems, however:

- they do not automatically put orders into a compatible, newly opened
  session because it explicitly searches for rescue sessions. So if
  you open a new session and create a new order in a POS associated to
  a closed session you will end up with two open sessions (one rescue,
  one regular).

- they throw exceptions with cash control enabled

- they're a bit more complicated because they introduce the idea of
  'rescue' sessions, which the 8.0 fix does not (it just uses regular
  sessions).

So this reverts bed409322d without
changing the database and while still ensuring that databases with
existing POS rescue sessions don't break.
2015-10-29 15:56:25 +01:00
Denis Ledoux 05381a8bed [FIX] res_company: parent company field mis-aligned
The `parent_id` field was mis-aligned in the `res.company`
form view, making the input away for its label.

We moved the field to the General information tab, to not
overcrowd the headers.

opw-653373
2015-10-29 15:42:47 +01:00
Christophe Matthieu 5b5f89e2be [FIX] web_editor: select default text of the snippet when click on the text 2015-10-29 15:31:42 +01:00
Christophe Matthieu 8ebe4b2d56 [FIX] web: can remove record in many2many kanban view
Wrong underscore method called.

Issue: go on customer form view, remove a contacts in the many2many kanban view and save. The record is not unlink.
2015-10-29 15:31:42 +01:00
Christophe Matthieu c8e7e1dc5b [FIX] web_editor: don't remove char after a selection when click on delete
Issue: click on an image or create a text selection and click on delete, the char after the selection is removed
2015-10-29 15:31:42 +01:00
Christophe Matthieu dbce114ba6 [FIX] web_editor: remove useless duplicated code 2015-10-29 15:31:42 +01:00
Nicolas Lempereur 1da79c54a1 [FIX] web{site,_editor}: gallery upload image
* when getting the src of an uploaded attachment we have to use src which
  is by default url,

* in a MediaDialog the pager is shared between the document and image
  dialog, but when changing page, it was done for both (even if not
  displayed),

* select the image after uploading it in the ImageDialog.

closes #9284
opw-653061
opw-653167
2015-10-29 13:25:27 +01:00
Christophe Matthieu a71caede2d [FIX] web_editor: keep the javascript reference to globalSelector object for odoo javascript module
related to #9284
opw-653061
opw-653167
2015-10-29 13:25:26 +01:00
Nicolas Martinelli 1f43fa9dfe [FIX] web: do not write twice when updating value
The issue occurs for example in the Sale dashboard, when the user
changes the target amount. If the user changes the value, then directly
clicks outside of the field, the method on_change_input will be called
twice: the first time because of the event 'change input', the second
time because of the event 'blur input'. This makes an unnecessary write,
which can cause an error due to concurrent access.

This prevents the execution of the write related to the event 'change
input' in this case. If the user changes the value but clicks on
'Enter', the focus is still on the field so the update is done
correctly.

Courtesy of Quentin Smetz (qsm@odoo.com)

opw-653086
2015-10-29 12:44:07 +01:00
Christophe Simonis d7b0a56f34 [FIX] website: add /website/image compatibility routes 2015-10-29 12:39:10 +01:00
Olivier Dony 6aa27e644f [FIX] im_livechat: match_rule() expects an ID, not a record 2015-10-29 08:58:11 +01:00
Nicolas Martinelli efbdac1efb [FIX] sale: do not crash if no value set
If the user does not set any value, the conversion of an empty string to
a float generates a traceback.
2015-10-28 17:07:01 +01:00
Nicolas Lempereur 665bc1c935 [FIX] web{,_kanban}: too much and too little shortcuts
When several accesskey with the same key,  are defined on elements, the
last one (even if not displayed) is the one which will be actioned and
the key sequence is pressed.

This caused an issue since the "Pager" template is shared between all
elements, even the x2many relational widgets.

Also there was shortcut for Create/Save/Discard on the form view, but
those shortcuts should also be enabled in the list and kanban view.

closes #9267
opw-652888
2015-10-28 15:32:31 +01:00
Martin Trigaux 9593c08673 [FIX] im_livechat: typo 2015-10-28 14:33:56 +01:00
Nicolas Martinelli de8f3f70fd [FIX] website_quote: support of 2 routes to accept quote
Complement of commit d9c2d03. We should still support the old route, in
case users do not update the template.
2015-10-28 14:33:07 +01:00
Denis Ledoux dcd8d65fd1 [MERGE] forward port of branch saas-6 up to 6a306a03be 2015-10-28 14:01:10 +01:00
Denis Ledoux c8d6b36632 [MERGE] forward port of branch saas-6 up to a0c64bebe6 2015-10-28 12:01:30 +01:00
Christophe Simonis c0066c600e [FIX] website_forum: tags should be unique per forum 2015-10-28 11:55:53 +01:00
Christophe Simonis b89bbf18c4 [FIX] crm: tags are globals
Do not show the related sales team as it is not used to filter tags.
2015-10-28 11:49:09 +01:00
Goffin Simon b3bf69f860 [FIX] account_asset: no_create in invoice_id field
It cannot be possible to create a new invoice from the asset.

opw:652774
2015-10-28 10:48:44 +01:00
Nicolas Martinelli d9c2d03532 [FIX] website_quote: fix Sign & Confirm
Commit 7636b51 modifies the route from JSON to HTTP by mistake. Indeed,
the route /quote/accept is called from an ajax.jsonRpc request, not from
the `method="POST" t-attf-action="/quote/accept` which can be found in
website_quotation.xml.

The t-attf-action is actually only used to recover the order_id and the
token in website_quotation.js.

opw-652874
Closes #9227
Fixes #9226
2015-10-28 08:02:24 +01:00
qsm-odoo 58be02b927 [IMP] website: theme customization assets recomputing
Assets are now split in multiple files and there is not a route which
always leads to the last version of an asset. This commit adapts theme
customization (without reloading) to these new features.
2015-10-27 16:32:35 +01:00
qsm-odoo 7329a7fc55 [FIX] website: theme customization modal overflow 2015-10-27 16:14:14 +01:00
qsm-odoo b3590c7104 [FIX] website, web_editor: missing returns in theme JS 2015-10-27 16:13:44 +01:00
qsm-odoo 652956d192 [FIX] web_editor: missing !important on mt,mb,ml,mr rules 2015-10-27 16:13:15 +01:00