Commit Graph
102174 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 ea2c80cad0 [FIX] web: Python-like rounding method
Javascript and Python handle the rounding of -x.5 differently.

In JS, `Math.round(-0.5)` is equal to `-0`.
In Python, `round(-0.5)` is equal to `-1`.

This will lead to inconsistencies between Python and Javascript, but it
can also lead to inconsistencies in the Javascript itself. Indeed, in
the POS, a refund to the client is entered as a negative number. For
example, `4.245` will be rounded to `4.25`, but a refund of `-4.245`
will be rounded to `-4.24`. The payment and the refund are not
consistent.

Sources:
- http://www.ecma-international.org/ecma-262/6.0/index.html#sec-math.round
- https://docs.python.org/2/library/functions.html#round
- https://en.wikipedia.org/wiki/Rounding#Round_half_up

Fixes #9249
opw-653034
2015-11-04 13:14:59 +01:00
Xavier ALT 2f35c40714 [FIX] web_calendar: date/datetime fields format in calendar views
As everywhere else, dates & datetimes must be formatted according
to the format defined in the `res.lang` of the user, and within
the timezone of the user.

Before this revision, when adding a datetime field to a calendar view,
the raw value of the date was displayed, for instance:
`2015-01-01 10:00:00`
instead of
`01/01/2015 11:00:00`
for a user in English(US), in UTC +1.

fixes #5324
opw-653625
2015-11-04 12:47:28 +01:00
Pedro M. Baeza 0ea130424d [FIX] sale_service: Allow a project user to close a task.
Closing a task associated to a sale order line requires
the write access to the according sale order line, that
a user who is only a Project > User does not have
by default.

Fixes #9286
Closes #9352
2015-11-04 12:09:30 +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
Joren Van Onder e901f53e38 Revert "[FIX] point_of_sale: exclude rescue session when getting the user current session"
This reverts commit cd7d73a9a5.

This was mistakenly forward-ported from 9.0 in
0a07be8190. Rescue sessions only exist in
9.0, they have been completely removed from both master (in
23d7caa8d5) and thus saas-7.
2015-11-04 10:24:09 +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 4324891529 [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-04 09:44:11 +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
Olivier Dony 051b2ce539 [FIX] tools: ignore unknown entities while parsing 2015-11-03 21:38:53 +01:00
Olivier Dony e99358415a [FIX] tools: ignore unknown entities while parsing 2015-11-03 21:38:53 +01:00
Olivier Dony 245bcc61f6 [FIX] tools: ignore unknown entities while parsing 2015-11-03 21:38:53 +01:00
Olivier Dony 789a86901a [FIX] account, l10n_fr: avoid exceptions when processing parameters 2015-11-03 21:38:53 +01:00
Olivier Dony 2ae6481233 [FIX] account, crm, l10n_fr: avoid exceptions when processing parameters 2015-11-03 21:38:53 +01:00
Jesús Alan Ramos Rodríguez 881a46a7ce [CLA] update signature to fix the github account
Closes #9202
2015-11-17 17:14:35 +01:00
Jesús Alan Ramos Rodríguez b6cade2c2d [CLA]: Fix typo and add another e-mail to CLA 2015-11-17 17:14:35 +01:00
michaelhwalther 751b6ba25a [CLA] michaelhwalther sign individual CLA
Closes #9013
2015-11-17 17:14:35 +01:00
Khwunchai Jaengsawang 2cdbd9b9bc [CLA] Khwunchai Jaengsawang sign individual CLA
Closes #8810
2015-11-17 17:14:35 +01:00
Alex Comba 0fd91cec1c [CLA] Alex Comba sign individual CLA
Closes #8523
2015-11-17 17:14:35 +01:00
Panagiotis Issaris 462af90df5 [CLA] Panagiotis Issaris sign individual CLA
Closes #8497
2015-11-17 17:14:35 +01:00
Nicolas Lempereur 9717afbbb7 [FIX] event: fix send mail to event registrant
Currently, the button "Send Email" next to the email address of an event
registration didn't work if a partner was not set.

This commit removes the button, thus removing the feature but partially
adds it back via the chatter suggested recipients in the same way it is
done for a lead.

It is still partially a feature regression since to work the viewing
user need more access rights (e.g read access right on res.partner)
than before.

closes #9486
opw-653127
2015-11-17 16:25:45 +01:00
Nicolas Martinelli f18399f721 [FIX] purchase: invoice state of PO
If the invoicing policy of a PO is set to "Based on incoming shipments"
and the PO contains a product of type "service", it is never considered
as invoiced, and therefore reach the state "Done".

The reason is that no stock move is linked to this PO line, and
therefore it is never considered as invoiced since we check the invoice
state of the associated sotck moves.

This fix assumes that in this specific case, a PO line for a service is
always invoiced, since there is anyway no incoming shipment linked to
it.

opw-654317
2015-11-17 13:40:37 +01:00
Olivier Dony a7e8ab363e [FIX] account, crm: avoid exceptions when processing parameters 2015-11-03 21:38:53 +01:00
Thibault Delavallée 3eb415b1fd [FIX] hr_holidays: my leaves on leaves summary
By default the Leaves Summary menu should display my leaves and allocations grouped
by type, for this year.
2015-11-17 17:21:27 +01:00
Cedric Le Brouster 72b76f8de5 [CLA] Corporate CLA for OpenFire
Closes #9104
2015-11-17 17:08:42 +01:00
Jared Kipe 25d5883af4 [CLA] Hibou Corp sign corporate CLA
Closes #9167
2015-11-17 17:08:42 +01:00
Nils Hamerlinck 700787309c [CLA] Nils Hamerlinck sign individual CLA
Closes #9547
2015-11-17 17:08:42 +01:00
Denis Ledoux 2b1b0e6d13 [FIX] web: editable list validation with several pages
This revision is related to a9d20d9fa0.

`dataset.cache` contains an item for each records, even
if the records hasn't been loaded in the cache. If a record
has not been loaded, only the record id is available, not
the other values. Thefore, this isn't possible to validate
the record values of records that have not been loaded
in the dataset cache.

opw-654013
2015-11-17 17:07:31 +01:00
Eneldo Serrata 9325cd054a [CLA] Eneldo Serrata sign individual CLA
Closes #9516
2015-11-17 17:01:13 +01:00
Raphael Collet 9687eb3d84 [FIX] translate: fix xml_translate to use an HTML parser as a fallback
When terms are translated in the website, their values are sent as HTML (with
text entities escaped).  The function `xml_translate` is used to sanitize those
values, and sometimes crashes because of non-closed entities like `<br>`.  Fix
it by using an HTML parser as a fallback.

This is a partial revert of 6c8e53a087.
2015-11-17 16:18:05 +01:00
Raphael Collet 69db2f537b [FIX] website: avoid looking up key in context=None 2015-11-17 16:18:05 +01:00
Simon Lejeune 7fcc79da21 [FIX] packaging: bundle doc and pdf files
so that demo data of hr_recruitment and website_slides are complete.
2015-11-17 15:56:43 +01:00
Damien Bouvy d18441d348 [FIX] web: longer delay for module load warning
Warning messages are automatically displayed if a module takes more than 1000ms to load, but this delay is a bit short if you make multiple rpc calls (sorry for all the dead kittens)
2015-11-17 15:54:50 +01:00