Commit Graph
99477 Commits
Author SHA1 Message Date
Nicolas Martinelli b53ff53cdb [FIX] purchase: do not create stock move for services
If a PO containing services contains at least one stockable/consumable
product, stock moves are generated for these services, which is not
correct.
2015-11-19 12:08:43 +01:00
David Monjoie 6e6d6362df [FIX] website_sale_digital: fixed attachment count
The read_group function bypasses some restrictions, and in this case
was counting the "image", "image_small" and "image_medium" attachments
of the products, thus resulting in wrong attachment counts.

I changed it to a search_count which is cleaner, simplifies the code
a lot and, more importantly, returns the right values.
2015-11-19 11:22:34 +01:00
pvy 17b131b404 [REF] account: get_followup_lines_domain now may be given ids to exclude 2015-11-19 10:52:50 +01:00
Géry Debongnie 1dc32c7277 [FIX] website_links: we dont want no crash in nvd3
nvd3 was updated recently, and its api has slightly changed.  The call
to nvd3 was no longer correct.
2015-11-19 10:17:22 +01:00
Joren Van Onder 317c6b82a2 [FIX] point_of_sale: compute the tax based on the rounded price
Before this, we would compute taxes based on quantity * price. In
account.tax (used by the POS backend) however taxes are computed on a
rounded (based on currency precision) quantity * price. This would cause
issues as orders in the backend would have a different total price as
calculated in the frontend.

An example that used to trigger the problem:

Order with orderline with product with price of 5, excluded tax of 21%
and a quantity of 0.985. This would cost 5.96 in the frontend and 5.97
in the backend.
2015-11-19 09:12:50 +01:00
Joren Van Onder 07a89b8aee [FIX] pos_restaurant: fix customer deselection in the POS
The issue was that the deselection button did not appear when setting a
customer and then going back into the client list. Now new_client gets
reset whenever we hide the clientlist widget, which makes the hide/show
deselect button logic work.
2015-11-19 08:35:23 +01:00
Aaron Bohy cdc71ba9a7 [FIX] im_livechat: rating shortcodes' type is image
...and not text, which is the default value. Otherwise, they are evaluated
server-side and the produced html is escaped in the body. Smileys are thus
not displayed.
2015-11-19 08:16:56 +01:00
Aaron Bohy d519ce5596 [FIX] mail: channels: don't send email by default
Disable this option by default as it might be very costly on channels with a
lot of members. Should be manually set to true on massmailing channels.
2015-11-19 08:16:56 +01:00
Thibault Delavallée 870c822ac5 [FIX] mail: incoming email parsing
Correctly flag and remove nodes to remove containing odoo buttons.

Backport of revision aece706603 of saas7.
2015-11-18 17:23:26 +01:00
Denis Ledoux 49a0eae805 [FIX] mail: mails fetch
`node.get('class', '')` returns a `Nonetype`
in some cases, and, therefore,
`'o_mail_notification' in node.get('class', '')`
throws a
`TypeError: argument of type 'NoneType' is not iterable`.

Replacing by `(node.get('class') or '')` keep the behavior
that was expected, but will prevent to have a `Nonetype`

opw-656508
opw-656753
opw-653965
2015-11-18 17:02:13 +01:00
Denis Ledoux 2fc6e94d8a [FIX] ir.config.parameter: set_param with None/False as value
Use `ir.config.parameter`.`set_param` with `None` or `False`
was not allowed as `value` of a `ir.config.parameter` is required.

An attempt to set a system parameter to `None` or `False` means,
most of the time, that the system parameter should be dropped.

For instance, in configuration wizards (`res.config`),
`set_param` is used when boxes are checked, or fields are filled,
to create/update system parameters with the value given in the
configuration wizards.

When unchecking these boxes, the configurations wizards tried
to set `None` in the system parameters, leading to a warning
saying the value is mandatory. The behavior expected when
unchecking these boxes was to remove the system parameters,
not to leave them empty. Besides, there is not methods
available in `ir.config.parameter` to quickly remove a system
parameter, like there is one to set a parameter.

opw-653547
2015-11-18 17:02:13 +01:00
qsm-odoo f137921d12 [FIX] web: formview autofocus when attached
Autofocus in formview did not work when landing on the form view in
edit/create mode. This was because autofocus was called before the
formview was in the DOM.

Solution here in community is to defer the call to autofocus.
2015-11-18 17:00:34 +01:00
Goffin Simon 3783289ece [FIX] account: _default_line_ids for a account.payment.term record
The sequence of the first account.payment.term.line must be 9 because
the default sequence for a new line is 10.

Before the fix:
When changing the value of the default line by "percent" and adding a
new line with value equal to "balance". An exception was raised because
the sequence of the default line was 500 and then this default line was
always considered as the last one.

opw:656704
2015-11-18 16:15:58 +01:00
Nicolas Martinelli c354a101fd [FIX] sale: calculate price subtotal in pop-up
When a SO line is added through the pop-up form, the price subtotal is
not calculated when the user saves the pop-up, and therefore it is not
displayed in the SO line list.

When the field is added in the pop-up, it will be calculated and
displayed right away.

opw-654283
2015-11-18 16:12:07 +01:00
Thibault Delavallée e1b610b705 [FIX] mass_mailing: mailings on mailing lists
Due to the change in 2many input / output the domain to apply the mailing was
not computed correctly. Indeed the onchange was waiting for a list of ids or
a 6, _, ids command, aka things that were send by 2many before some cleaning.
It has been adapted to the 4 command, now sent by the new onchange mechanism.
2015-11-18 15:34:28 +01:00
Christophe Simonis 4d9e36a459 [FIX] core: update model information when updating modules 2015-11-18 15:26:24 +01:00
Nicolas Martinelli 70ac92ed1a [I18N] export l10n_ch source terms
To reflect changes in previous commit and due to few previous changes
2015-11-18 15:00:36 +01:00
Nicolas Martinelli 44476635f2 [FIX] l10n_ch: typo
OK to do so in stable since the fields are not translated yet and were
added from a recent commit.

opw-654141
2015-11-18 15:00:36 +01:00
Nicolas Lempereur 21a8c76b6a [FIX] web_editor: set csrf_token in editor iframe
Some feature of the iframe embedded editor may require csrf token
present, thus it has been added in the same way that cea29e0c0 did.

The web editor iframe template is also used to display the value without
editing it and in this instance having the csrf has no meaning.

opw-656685
2015-11-18 14:31:55 +01:00
Thibault Delavallée 2e583eb7c9 [FIX] mail: chatter: re-re-add the read more / less
The read more / read less in chatter has been removed in the new timeline and
then cleaned timeline introduced at cc6d2aa995.
This feature has been brought back at revision 486aab5098.
However a new cleaning removed the feature at revision 2a5f07e0b9.

This commit brings back this feature for the second time. Next one brings free
cookies.
2015-11-18 13:48:27 +01:00
Thibault Delavallée e01e24aa9c [FIX] mail: chatter: subtype when tracking
When having a tracking, the subtype description should be displayed. This is
used for tracking linked to a subtype like Task Opened, Task Blocked, ...

This feature was forgotten when refactoring the chatter for v9 and is now
back.
2015-11-18 13:48:27 +01:00
Thibault Delavallée fef3fdb1d9 [FIX] hr_holidays: calendar in month mode by default
Week display is not very easy to use for holidays.
2015-11-18 13:48:27 +01:00
Goffin Simon 11f8e8db4c [FIX] account: get_reconciliation_proposition
The bank statement reconciliation widget should look for the name
of the account.move if the ref is not found.

opw:652656
2015-11-18 13:36:33 +01:00
Nicolas Martinelli e994617872 [FIX] base_import: correct address type
opw-656072
2015-11-18 13:10:02 +01:00
Richard Mathot 9e35833672 [FIX] delivery: A return picking should not copy the carrier of its originating picking.
Furthermore, we do not support returns in our shipping providers integrations. Maybe one day...
2015-11-18 12:25:25 +01:00
Nicolas Lempereur 6f02ba9cbf [IMP] website_form: don't remove newline
In some instance, the mail content of a sent form would only be text
formatted. This could lead to a message with no newline, thus making it
illegible.

This fix has to be ugly since body_html field of a mail.mail is of type
text.
2015-11-18 11:41:25 +01:00
Nicolas Lempereur a4cfe7f6ec [FIX] website_form: be consistent when concatenating string
In the form builder, custom field name could contain special char but
the get key values are of the type str whilst the value are in unicode
type.

Thus when concatenating them, one should be converted so they are
uniform and don't lead to an encoding error.

opw-656745
2015-11-18 10:49:24 +01:00
Goffin Simon d1d896621f [FIX] report_intrastat: month used for intrastat.report record
The month used for an intrastat.report record must be the same as
the invoice_date set on the invoice.

opw:656575
2015-11-18 09:26:50 +01:00
Martin Trigaux 6fcf6b5c09 [I18N] export accounting source terms
To reflect changes in previous commit and due to few previous changes
2015-11-18 09:24:38 +01:00
Martin Trigaux a6515d7c56 [FIX] account: typo
Ok to do it in stable as the string 'Technical field used for usability purposes'
is already present in the module
2015-11-18 09:24:38 +01:00
Nicolas Lempereur a23009bcc8 [FIX] mass_mailing: fix tooltip for "Select a theme"
The popover in the mass mailing are not enabled, also the whole CSS of
the website is not used (particularly, the popover CSS is not included).

This commit replace the popover by a tooltip and enable tooltip on
[data-toggle="tooltip"] elements.

second half of:
opw-656693
2015-11-18 09:02:00 +01:00
Nicolas Lempereur daca0d350a [FIX] mass_mailing: on_change in new and old api
Keep only the on_change in the new api, the other one caused error and
was pointless.

fixes #9537
first half of:
opw-656693
2015-11-18 08:27:47 +01:00
Nicolas Martinelli d40a548ac8 [FIX] purchase: prevent traceback
message_post should only be called with a singleton.
2015-11-18 08:08:42 +01:00
Nicolas Martinelli b098ab1f93 [FIX] purchase: unit price
The seller price is expressed in the seller UoM. If the UoM of the PO
line is different from the seller UoM, it must be recalculated.

opw-654417
2015-11-18 08:08:42 +01:00
Olivier Dony 245bcc61f6 [FIX] tools: ignore unknown entities while parsing 2015-11-03 21:38:53 +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
Aaron Bohy 0cd10f9af8 [FIX] mail: chatter: undefined variable 'event' on firefox
Variable 'event' is magically defined on some browsers like chrome, but not on
firefox. Anyway, those preventDefault() were useless as they are performed
beforehand.
2015-11-17 15:49:43 +01:00
Goffin Simon b27333919a [FIX] crm; probability of a crm.lead record
When creating a crm.lead record, the default probability of this record
must be the the probability of its default stage.

opw:654284
2015-11-17 15:20:35 +01:00
Maxime Chambreuil 58f06d6a9c [ADD] l10n_ca: fr_CA translation
Make the chart of account compatible with l10n_multilang to be translated in
French (Canada)

Closes #9398
2015-11-17 15:19:14 +01:00
Thibault Delavallée 6543554b95 [FIX] hr_holidays: Year filter
This filter filters requests for this year. However allocation requests do not
have date_from and date_to. For requests not having those dates the filter
takes requests whose type (holiday_status_id) is active. This was the old
Year filter, that is applied only to allocation requests now. Leave request
are still based on date_from and date_to.
2015-11-17 14:45:50 +01:00