Commit Graph
99320 Commits
Author SHA1 Message Date
Goffin Simon e45ade1979 [FIX] website_sale: add to cart with optional products
When clicking on button "add_to_cart" for a product with several options,
the user must be redirected to the product page. In this way, the user can
choose the options, he wants to buy with the product before adding the product
in the cart.

opw:653356
2015-11-03 16:27:20 +01:00
Aaron Bohy 388f7a7db9 [IMP] mail: composer: mention channels feature
Generalizes the mention mechanism to allow mentionning partners (@) and
channels (#).

When a user clicks on a mentionned channel, it subscribes to it and joins it.
If the mention is in a chatter, the user is redirected to the Discuss client
action.

Moves the RPCs to get the menu and action id of the Discuss client action from
systray.js to chat_managaer.js as they are now needed in the chatter as well.

Also fixes the on_channel_clicked redirection for notification message
(created/joined/left #channel). Those three messages are now of type
notification, and correctly redirect on click.
2015-11-03 16:19:35 +01:00
Aaron Bohy b61c0d2499 [FIX] web: action manager: options of client actions
The options dictionnary given when performing a do_action is now transmitted
to the client action initialization.

This was required for the mail client action, to correctly redirect to a given
channel.
2015-11-03 16:19:35 +01:00
Aaron Bohy 76c71e63e7 [IMP] mail: client action: control panel buttons
Extract all buttons from 'Action' dropdown
2015-11-03 16:19:35 +01:00
Géry Debongnie f99231a8f4 [IMP] mail: various ui improvements
- display hash before text in create channel input
- increase limit for message fetching from 20 to 100
- 'Show more messages' renamed ino 'Show older messages'
- remove border top and bottom on selected messages
2015-11-03 16:19:35 +01:00
Nicolas Lempereur 0a0df28fd9 [IMP] website: add special char to rte_translator tour
To test the the use case solved with f5acea7.
2015-11-03 16:00:46 +01:00
Raphael Collet ee46560004 [IMP] translate: test xml_translate with sample translations
The received value of a translation has to be escaped client side.

note: testing the use case solved with f5acea7
2015-11-03 15:44:03 +01:00
Nicolas Lempereur f5acea7f9c [FIX] web_editor: escape for xml in translation as done in ir.ui.view
Currently server side there is two differents source for html content
displayed on a qweb rendered page:

1) ir.ui.view arch value

are stored as xml and are unescaped before being displayed, so we have
to escape the text nodes before saving.

e.g:

*   should be stored as   since it is an HTML entity but
  not a defined XML entity,
* & should be stored as & since when unescaping it, it
  would become & which is invalid in HTML,
* < should be stored as < since when unescaping it, it would
  become `<` so HTML text node could become HTML element node.

The tag themselves can also be escaped but it often has the same result:
&lt;em&;gt;blah&lt;/em&gt; is the same as <em>blah</em> when unescaping
is applied to both.

But it is required is some instance, e.g <!DOCTYPE html> unescaped would
be invalid xml.

2) openerp.fields.Html value

are stored directly in HTML formatting and should, conversely, not be
escaped before being stored.

Thus when saving an ir.ui.view part modified thanks to the website
editor, an escaping of text node content is carried out to take this
into account, but the same was currently not done for the v9.0 new
translation system.

This commit apply the same logic when saving ir.ui.view as when saving
ir.translation values.
2015-11-03 13:35:19 +01:00
Christophe Simonis 87a889669d [MERGE] forward port of branch saas-6 up to b34a62a 2015-11-03 13:06:42 +01:00
Christophe Simonis b34a62a3e8 [MERGE] forward port of branch 8.0 up to 27b3851 2015-11-03 12:58:02 +01:00
Christophe Simonis 27b38513b0 [MERGE] forward port of branch saas-3 up to 2e9b33b 2015-11-03 12:45:50 +01:00
Nicolas Martinelli 7173b0efb1 [FIX] account: make currency visible
In a multi-currency environment, the currency should be selectable when
registering a payment.

opw-653332
2015-11-03 12:25:08 +01:00
Goffin Simon 4709818222 [FIX] account: Register payment with several bills
When a payment is created for a bill, this is always the 'commercial_partner_id'
which is used as 'partner_id'.
Then:
-When registering a payment with several bills, the 'commercial_partner_id'
field of these bills must be the same.

-When grouping bills by partner, the groups must contain all the bills from
the same 'commercial_partner_id'.

opw:653005
2015-11-03 11:47:24 +01:00
Christophe Simonis 2e9b33b793 [MERGE] forward port of branch 7.0 up to 80c7209 2015-11-03 11:40:01 +01:00
Goffin Simon 13bb018877 [FIX] tools: html_keep_url
The urls surrounded with "" or '' don't have to be
clickable.

opw:652397
2015-11-03 11:17:31 +01:00
Denis Ledoux d5d8140f3a [MERGE] forward port of branch saas-6 up to 7158eaf 2015-11-02 18:06:25 +01:00
Denis Ledoux f9efc14440 [MERGE] forward port of branch saas-6 up to cea0a80252 2015-11-02 17:24:30 +01:00
Nicolas Martinelli ecc9710cb3 [FIX] crm: next action date display condition
Complement of commit 71b0a4c. The next action date (date_action) should
be red if in the past, not if the deadline date is in the past.

opw-653391
2015-11-02 17:03:32 +01:00
qsm-odoo c52e814d24 [FIX] web_editor: snippet options menu layout
Layout of snippet options buttons was wrong (spaces / linebreak / ...)
2015-11-02 16:02:10 +01:00
Christophe Simonis d0c9caf147 [FIX] base: avoid unlinking demo partners in tests
Unlinking a partner will also delete the related attachments (including
binary fields ones). When we rollback the transation at the end of the
test, the deleted attachments are not recreated in the filestore. This
unfortunate side-effect cause traceback when accessing these records in
backend.
In order to avoid this, we create disposable partners to test the api
cache behavior.
2015-11-02 16:00:00 +01:00
Joren Van Onder 7f31dcca05 [IMP] point_of_sale: don't print receipts automatically by default
Only when using the POSBox with an ESC/POS printer should we print
receipts by default.
2015-11-02 15:28:13 +01:00
Olivier Dony 035a0ee412 [FIX] ir.attachment: no crash on missing file with bin_size=True
When bin_size=True is passed, `os.path.getsize()` raises an OSError
rather than IOError when the file cannot be found.
2015-11-02 12:55:30 +01:00
Denis Ledoux b7c1a9b288 [FIX] crm: Your pipeline must show opportunities only.
When using the menu Sales > Your pipeline,
The domain `[('type','=','opportunity')]`
wasn't enforced, and leads could
therefore be displayed with the form
of an opporunity.

This is already the case when using
the "Pipeline" button in the teams
of the CRM Dashboard.

opw-653417
2015-11-02 11:57:28 +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
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
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 &nbsp; or &amp; 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
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
Denis Ledoux 7158eaf80d [MERGE] forward port of branch 8.0 up to ee2b550 2015-10-29 16:28:54 +01:00