Commit Graph
99341 Commits
Author SHA1 Message Date
Géry Debongnie 8ef69bd9fb [FIX] mail: avoid fetching messages when updating ui
Every time the user updates a message, the js code triggered a rpc to
refetch messages in the current channel.  This is useless, since the new
messages have been fetched anyway by the bus.
2015-11-04 16:31:44 +01:00
Géry Debongnie ff84737054 [IMP] mail: add mark all read feature to inbox 2015-11-04 16:31:44 +01:00
Aaron Bohy de665f4b6d [FIX] mail: mail_message: needaction_partner_ids wording
The 'string' attribute for both needaction_partner_ids and needaction fields
was 'Need Action'. This was problematic for example in the custom filters of the
searchview as it looked like the same field was appearing twice.

Update mail.pot as well.
2015-11-04 16:31:44 +01:00
Aaron Bohy 9c04a9e68b [FIX] mail: needactions: send mentionned partners on message post
When posting a message, the ids of mentionned partners are specified in the
partner_ids array. This has been broken in commit 388f7a7d, my bad.
2015-11-04 16:31:44 +01:00
Nicolas Lempereur dc69248e29 [FIX] web_planner: hide background pn planner destroy
A PlannerDialog does not extend Dialog for historical and graphical
reasons. Thus sometime a logic in Dialog is missed in a PlannerDialog
whilst it is useful.

In this instance, when doing an action from the planner which destroyed
it, the modal backdrop was not removed by bootstrap. Bootstrap does this
when the modal 'hide' function is called.

opw-653734
2015-11-04 16:19:10 +01:00
Christophe Matthieu 7a704aaba6 [FIX] web_editor: don't change the image style when change src 2015-11-04 16:10:44 +01:00
Christophe Matthieu f3ade95862 [FIX] web_editor: use _.bind for rte handler to use 'this' and avoid errors 2015-11-04 16:10:44 +01:00
Christophe Matthieu c7ff7cb491 [FIX] web_editor: remove editor bar flickering when edit a qweb field
Issue: When the user click on a field (like monetary, text...) the editor bar appear and disappear. The undo buton is hidden for this fields.
2015-11-04 16:10:44 +01:00
Christophe Matthieu 7228b29cb2 [FIX] web_editor: edition of monetary value
Issue: if the currency is before the value and we try to add a number at the begin of the value, the number is not saved (because the browser insert the number before the span).
Add a onEnableEditableArea in the rte to change the contenteditable value and the default behavior.
2015-11-04 16:10:44 +01:00
Christophe Matthieu 554bfa7d10 [FIX] web_editor: use history to enable or disable save button 2015-11-04 16:10:44 +01:00
Christophe Matthieu bdb787a18d [FIX] web_editor: value changes of many2one in the website enable the save button 2015-11-04 16:10:44 +01:00
Christophe Matthieu 4043909625 [FIX] web_editor: edit event badge on the website.
Issue: edit the badge on the event list in the website, the many2one widget doesn't work because the request domain is false.
2015-11-04 16:10:43 +01:00
Christophe Matthieu 4f72ba397a [FIX] web_editor: disable save button by default to avoid flickering 2015-11-04 16:10:43 +01:00
Nicolas Martinelli affce2c49c [FIX] account, website_sale: do not set fpos on res.partner automatically
When a partner is created, the fiscal position is set automatically if
possible. This is not correct, the fiscal position should only be set
automatically on a SO, based on the delivery address.

Here is a scenario explaining the reason:
- Create 2 fiscal positions, one in US and one in Canada. Both fiscal
  positions apply automatically depending on the country.
- As an non-logged user, go in the web shop
- Buy a product
- At the checkout phase, the Billing Information are in US, but the
  Shipping Information in Canada.
- The fiscal position which will apply will be US, while you expect it
  to be Canada

The reason is that the fical position which applies is the one on the
parent partner (US in this case), since all children partners must have
the same accounting data.

With this fix, we simply remove the automatic setting of the fiscal
position on the partner.

opw-653072
2015-11-04 15:08:35 +01:00
Goffin Simon e48a660791 [FIX] calendar: onchange_dates
When creating a calendar event with all_day=False, the fields 'start' and
'stop' did not have to be set by onchange_dates due to a bad datetime format.

Then the function used to set fields 'start', 'stop', 'start_date' and 'end_date'
must be onchange_duration(only used when with all_day=False).
This function has been introduced by b7e393a.

opw:653045
2015-11-04 14:47:03 +01:00
Denis Ledoux de757b754b [FIX] account_check_printing, base_iban: dependences
The installation of these modules must not require
the installation of the full accounting,
the module `account_accountant`.

 - base_iban: This is a dependence of multiple localisations
   be, ca, de, do, ec, es, fr, gr, it, lu, nl, no, pl, si, uk, vn
   installing the invoicing with these localisations must not
   require the full accounting.
 - account_check_printing: `l10n_us` depends on it, and this localisation
   must not required the installation of the full accounting.
   In this case, even if `account_check_printing` is installed,
   the configuration for it won't be available, there won't be any menu
   for it, but this isn't a matter, as checks are supposed to be used
   for purchases, and invoicing is supposed to be used for sales only.

opw-653271
2015-11-04 14:20:07 +01:00
Nicolas Martinelli e5b9f02f7a [FIX] website_sale: default pricelist is user pricelist
request.website.user_id corresponds to the public user, while we want to
select the default pricelist of the connected user.

Moreover, if the connected user doesn't have the appropriate access
rights, it will cause a Forbidden Access error.

opw-653792
2015-11-04 11:59:27 +01:00
Goffin Simon 9ca6db5ef9 [FIX] crm: Contact Name in opportunities
Inspired from "CRM - Leads Form" view to separate name and title.

closes #9407
opw-653285
2015-11-04 11:43:12 +01:00
Denis Ledoux ca8cccdbf8 [FIX] sale, website_sale: send email at sale order confirmation in ecommerce
When confirming a sale order through the ecommerce
(at payment, most of the time),
the confirmation email should be sent at confirmation.

This is the subject of the revision
809e1a6081
that was lost with revision
94716a3f14

At the moment, the email was sent only for
orders not being automatically confirmed
(transfers, for instance).

opw-653800
2015-11-04 11:01:30 +01:00
Nicolas Martinelli f0ed54fc46 [FIX] delivery: shipping cost on delivery order
If the delivery method chosen is NOT an external provider (such as
Fedex, UPS...), the shipping cost is not set on the delivery order.

This fix will search for any shipping cost on the associated sale order
and will update the shipping cost accordingly on the delivery order.

opw-653328
2015-11-04 10:00:51 +01:00
Goffin Simon ee43fcd176 [FIX] stock: false_quants_move
false_quants_move must be a list of stock.quant records.

opw:653731
2015-11-04 09:23:03 +01:00
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