Commit Graph
102197 Commits
Author SHA1 Message Date
Jeremy Kersten 0f25a8ce1d [FIX] wesbite_sale: recompute taxes when fiscal position is updated
We force to recompute the taxes on all lines when we change the fiscal position.
That was already done in backend, with the onchange.
But @api.contrains allow to do it on each write on fiscal_position_id field.

@api.Depends will not work because it is not a computed field.
2015-12-11 10:09:52 +01:00
Christophe Matthieu 7e2628aeb2 [FIX] web: Can't save a x2m in list editable if contains a m2m_tags with a color field
m2m_tags in list editable view try to get color on validation, the field is invalid because the mutex is pending.
Fix: use internal_set_value (don't re-rendering)

Issue: steps to reproduce:
- Create a new instance, install "sale"
- Create a product "prepayment", service, invoice on ordered qties
- Create aproduct "project phase", service, invoice on delivered qties, manually track delivered qties
- Create a SO with once prepayment, and twice a line with "project phase". ( the name (description) of the lines should be "phase 1" and "phase 2" )
- Create invoice => The prepayment is invoiced
- Go back to the SO, try to change the delivered qties of the first phase to 1
- Save => error, odoo doesn't let you save.
2015-12-11 10:07:02 +01:00
Raphael Collet e4e807d4b3 [FIX] web_kanban: in menu of kanban column, always display "Archive Records"
Do not hide the menu entries when the column is empty, because the column is
not re-rendered after you quick-create records in it.
2015-12-11 10:03:02 +01:00
Jeremy Kersten b5fafb5aeb [FIX] base: fix SignedIntConverter weight
This allow to keep route with an SignedIntConverter with more
priority than a StringConverter.

The default wight is 100, so force the weight to 50 (default intConverter)
was also a fix. But we decide to rewrite the SignedIntConverter based on the
intConverter of WerkZeug.

So now, a controller '/module/<string:xmlid>', will be matched after
'/module/<int:id>". (Same behaviour that before the commit 800ae13712)
2015-12-11 09:58:09 +01:00
Martin Trigaux 6d4e5f7119 [FIX] warning: reference to removed field 2015-12-11 09:57:03 +01:00
Fabrice Henrion 5b00a79bc4 [IMP] pos_discount: reorganize fields order
Group discount related fields
Closes #9944
2015-12-11 09:53:13 +01:00
Yannick Vaucher 08e988f9fa [FIX] base: Remove wrong comment
comment stating date of currency rates
As all rates where moved in demo data

Closes #10017
2015-12-11 09:53:13 +01:00
Joren Van Onder 697739dd64 [FIX] point_of_sale: make tendered amount adhere to currency formatting
Part of the number formatting overhaul done in
5c9b4556e3,
4b003afd0a,
261ccf7c56 and
6e945de681. The only place left where we
didn't correctly format the numbers was in the tendered column on
the payment screen. This fixes that by not directly displaying the
inputbuffer anymore. Instead we pass the payment line amount through
format_currency_no_symbol() and display that instead. We also give a
default amount of 0 to parse_value so it doesn't return false for an
empty string.
2015-12-11 09:45:35 +01:00
Goffin Simon f720e365c5 [FIX] base: guess_mimetype
When receiving an email containing two attachments(.docx, .odt) with the chatter
the icons displayed for the two attachments were the icon of a zip file instead
of the icon of a document file.

ps: the dictionnary "mapping" with the mimetypes and the signatures has been
changed in a tuple of tuples to keep the order of the mimetypes because
all the document files (.docx, .dot) begin by 'PK\x03\x04' and all the
zip files by 'PK'.

opw:658706
2015-12-11 09:27:53 +01:00
Nicolas Martinelli c7b7094248 [IMP] im_livechat: allow to close chat without feedback
opw-658973
2015-12-11 08:39:49 +01:00
Fabien Pinckaers 2f19fdc3c0 [FIX] Misc livechat fixes: bugfix in search view, history accessible, better form view 2015-12-11 02:53:15 +01:00
Fabien Pinckaers 147a4efaea [IMP] Cleaning notes 2015-12-11 02:00:36 +01:00
Olivier Dony 3d32e99665 [FIX] mail.thread: optimize lookup of res.users by email
Searching on res.partners with domain [('user_ids' , '!=', False)]
will currently be translated into a huge "ID IN <...>"  query,
with the IDs of all existing users.
On a database with a lot of users, this can be measured
in seconds (e.g. 3-4 seconds with 500k+ users),
leading to significant delays in email delivery.

Using a direct lookup in res.users is more direct and faster.
2015-12-10 18:43:17 +01:00
Denis Ledoux da563bcf5c [FIX] delivery: Ensure carrier availability iteration after a fail
With a UPS delivery type carrier,
`ups_get_shipping_price_from_so` can return a `ValidationError`,
making the carrier unavailable for this order.
Nevertheless, the iteration checking the availability of the remaining
carriers must be ensured.

opw-657161
2015-12-10 18:28:17 +01:00
Antonio Espinosa d0ccd87e79 [FIX] mass_mailing: Confirmation when sending a mass mailing
When a user clicks on the `Send to all` button in a mass mailing form,
then all emails (sometime thousands) are sent inmediatly.

With this fix, a confirmation dialog appears
and the user is asked to confirm this operation.

This simple fix prevents common human errors.

opw-659117
Closes #9796
2015-12-10 17:41:53 +01:00
Nicolas Lempereur 4432639fb5 [IMP] web_kanban: refresh kanban view after fail
If a kanban tile is moved to another column, in case of failure it
would stay in that column giving the false idea that it somewhat worked.

This commit refresh the kanban view in such an instance.

closes #9837

first half of opw-657863
2015-12-10 17:03:13 +01:00
Nicolas Lempereur 73d5f62acd [IMP] web_calendar: refresh event after fail
If an event is moved at another time, its appearance would only be
refreshed if it was successful. But in this particular instance, the
refresh may even be more useful when the change failed.

part of #9837

second half of:
opw-657863
2015-12-10 17:01:49 +01:00
Denis Ledoux 4bebbfdcf5 [FIX] mail: jinja2 code compatible with wysiwyg for notifications
When editing an email template with the wysiwyg,
the `<` and `>` operators are automatically converted
to `&lt;` and `&gt;`, even for the Jinja2 conditions,
therefore breaking these conditions, and the render
of the email templates.

We avoid to use these operators in the email
template, so users can customize the notification
email template without having an advanced
knowledge on how to edit an email template containing
Jinja2 code.

Besides, the line return at the end of the email template,
just after the `% endif`,
is done on purpose as well: the wysiwyg adds automatically,
at the time of this revision,
`<p></p>` at the end of the email template source, but
this cannot be added on the same line than `% endif`,
otherwise this is considered as Jinja2 code, and it's not.

opw-659113
2015-12-10 16:58:15 +01:00
Nicolas Lempereur 893fbc0553 [FIX] web_editor: keep inline editor line spacing
opw-657955
2015-12-10 15:53:07 +01:00
Stefan Rijnhart b139c5819d [FIX] email_template: allow override of in new API
If context is passed as a non-keyword argument to a new-API override of this
method, it ends up as the positional fields argument.

Closes #9911
2015-12-10 15:28:21 +01:00
Xavier Morel 87090c1b8b [FIX] event header date on website
t-field expects a UTC datetime which it then localizes to the current
viewer's timezone (using context tz from the browser), but goal here was
to display the event's own local time, so t-field was provided an
already localized datetime and would parse it as UTC then re-offset it
based on the user's timezone, resulting in a completely nonsensical
displayed datetime.

Just display the localized datetime without reprocessing it (save to
slice off the seconds count)
2015-12-10 15:25:02 +01:00
Christophe Matthieu 3c64ee45a1 [FIX] web_editor: enter in a p tag empty (when user change with code view) can be raise an exception 2015-12-10 15:17:44 +01:00
Christophe Matthieu 6cc99df83e [FIX] web_editor: error when paste without any content in clipboard 2015-12-10 15:17:44 +01:00
Christophe Matthieu b72a3b67f8 [FIX] web_editor: remove exceed span on paste html content 2015-12-10 15:17:44 +01:00
Goffin Simon b00d070b51 [FIX] sale: delivred qty in SO line not updated
When making a account.analytic.line(aal) which matches with a SO line with
a product set with invoice_policy != 'cost' then these aal have to be linked
to this SO line.

opw:658821
2015-12-10 14:54:59 +01:00
Martin Trigaux 5b2e7943cc [I18N] mail: export source terms
To reflect all the recent changes in mail module
2015-12-10 14:48:25 +01:00
Jonathan Nemry (ACSONE) 43482d2d1e [FIX] mass_mailing: translatable unsubscribe link
Display the unsubscribe link in the language of the user

Closes #9995, opw 659075
2015-12-10 14:30:18 +01:00
Christophe Matthieu 267ab22d00 [FIX] website_sale: variable reference
'message' variable was not always defined.
Set a default value.
Closes #10006
2015-12-10 14:17:03 +01:00
Sébastien Maillard feef50adae [CLA] Corporate CLA for Elico Corporation
Closes #10010
2015-12-10 13:58:29 +01:00
Martin Trigaux 915e41b19a [FIX] website_mail_channel: number of members in channel
The members of a channel are stored in channel_partner_ids, they are no longer
a follower of the object (message_follower_ids)
2015-12-10 13:48:05 +01:00
Christophe Simonis 6ff9015ae6 [FIX] crm: Leads analysis graph view
there is no longer any graph view with as type "pivot".

Manual forward-port of 74b4f5d2ea which
has been forgotten in previous forward-port.
2015-12-10 12:27:42 +01:00
Alexandre Fayolle 9f65dad250 [FIX] stock: mutation of the context
If the method do_enter_transfer_details is called form the new API, the context
is a frozendict and can not be updated and the previous code would crash.

Copying it before updating.

Closes #9872
2015-12-10 12:25:34 +01:00
Cedric Snauwaert 088db58967 [FIX] account: when trying to reconcile an entry, if label is empty, by default it should be the name of the line
It was the case in Saas-6 and prevent many mistakes
2015-12-10 11:54:06 +01:00
Nicolas Martinelli 35a390daf1 [FIX] sale: change qty updates weight
The method `product_id_change` has become quite a mess with time as it
gathers a lot of onchanges. Therefore, previous commits were made in
order to prevent unwanted side effects, such as af07b2a0, 1cedcf6a and
136bd723.

This revision fixes the weight which was lost with commit af07b2a0.

opw-658712
2015-12-10 11:37:34 +01:00
Nicolas Martinelli 055f47ef41 [FIX] mrp: wizard
Removes unnecessary separator and newline which prevent the product
quantity to be displayed.

opw-658281
2015-12-10 10:22:36 +01:00
Cedric Snauwaert 12dad00508 [FIX] account: fix problem with round_globally method in tax calculation
When rounding globally, we should not round the tax with the currency rounding since it might introduce some errors.
Also add the field on the company view for user to change the computation method as they want.
2015-12-10 10:10:22 +01:00
Christophe Matthieu 8a0b4ca39f [FIX] website: display website_published image without access to the model
Issue: if the user don't have any access to the model, _image method raise an exception instead of display the website_published images.
2015-12-10 10:02:37 +01:00
Daniel Dico d8e5cdec7d [FIX] fix various Lucida misspellings
closes #9997
2015-12-10 09:55:22 +01:00
Christophe Matthieu 2e074cb305 [FIX] web_editor: don't display translation modal for attribute on tag who have content 2015-12-10 09:10:29 +01:00
Christophe Matthieu 5257721bef [FIX] web_editor: translation feature for all string fields on website
* add the branding in translation mode
* change javascript to add the lang in the context (automatically removed in the rte => allow to create record and edit when use an other default language of en_US)
* avoid double saved
2015-12-10 09:10:29 +01:00
Christophe Matthieu a93bd0fb68 [FIX] website_sale: active text translation for product description
If translate=True AND if sanitize=True (By default sanitize=True) the html field use automatically html_translate method.
2015-12-10 09:10:29 +01:00
Christophe Matthieu e86372c504 [FIX] website_blog: active text translation for blog content
If translate=True AND if sanitize=True (By default sanitize=True) the html field use automatically html_translate method.
2015-12-10 09:10:28 +01:00
Denis Ledoux 3e6f7c1e15 [FIX] calendar: user multiple times in event attendees
When creating a new event,
with just you as attendee,
then edit again the event and add someone else,
the user is twice in the attendee of the event.

This reverts the part done in `calendar.py` of revision 8483ca5

Even when you create an event for a job interview,
this is not mandatory to set yourself as attendee.
You can maybe be added by default, but you cannot
force the user to be set as an attendee of the event.

e.g. An HR officer can schedule a meeting for a job interview,
with the department manager and the job applicant alone, without
himself, thus.

opw-658528
2015-12-09 18:48:41 +01:00
Atchuthan 25b56671c1 [CLA] update Sodexis corporate cla
Closes #9614
2015-12-09 17:45:32 +01:00
Davide Corio eb7477989d [CLA] Abstract signs the corporate CLA
Closes #9435
2015-12-09 17:44:31 +01:00
Luis Felipe Mileo 3184925bf8 [CLA] KMEE signs the coprporate CLA
Closes #9933
2015-12-09 17:44:31 +01:00
Frédéric Garbely ff2910f8f2 [FIX] ir_translation: prevent overwrite propagation
Once set for the loading of terms for a lang,
the flag `overwrite` was propagated to all
other following languages, even if not actually needed.

Use case:
 - Installed languages: en_US, de, fr_CH, it
 - Update of the `sale` module
 - In `load_module_terms`, the system iterates through the languages:
   1. en_US: No problem
   2. de: No problem
   3. fr_CH: The flag `overwrite` is set to `True`,
      because the sub-language `fr_CH` should overwrite the `fr` terms
   4. it: The flag is still set to `True`, because of the previous iteration,
      while it must not.

opw-654042
2015-12-09 17:24:15 +01:00
Pascal Zenklusen 22d0592c9a [CLA] add corporate signature for brain-tec 2015-12-09 17:24:15 +01:00
Jeremy Kersten 800ae13712 [FIX] base: override default int converter from werkzeug
Default IntConverter (as well as Float, ...) doesn't support
negative value by default with werkzeug.

http://werkzeug.pocoo.org/docs/0.11/routing/
2015-12-09 17:01:22 +01:00
Denis Ledoux 02174099e2 [FIX] gamification: goal definition for models without inherits
When attempting to define a goal
using a model that does not have any `inherits`
- which happens most the time-,
it was not possible to choose the
`Field to Sum` and the `Date Field`,
due to the domain set in the view
which is no longer working in 9.0.

The domain is no longer working because:
 - The onchange result for a one2many for which
 the value is set to `[(6, 0, [])]` is now `[]`,
 while, in 8.0, the tuple with the command `6` and the empty
 list was preserved
 - the empty list `model_inherited_model_ids` is considered as `True` by py.js,
  and therefore it fallbacks to `model_inherited_model_ids[0]`, but
  as this is an empty list, it crashes.

The solution proposed in this revision solves the issue, while
making the domain applied on these fields less fragile.

opw-658892
2015-12-09 16:39:24 +01:00