Commit Graph
99169 Commits
Author SHA1 Message Date
Nicolas Martinelli d9c2d03532 [FIX] website_quote: fix Sign & Confirm
Commit 7636b51 modifies the route from JSON to HTTP by mistake. Indeed,
the route /quote/accept is called from an ajax.jsonRpc request, not from
the `method="POST" t-attf-action="/quote/accept` which can be found in
website_quotation.xml.

The t-attf-action is actually only used to recover the order_id and the
token in website_quotation.js.

opw-652874
Closes #9227
Fixes #9226
2015-10-28 08:02:24 +01:00
qsm-odoo 58be02b927 [IMP] website: theme customization assets recomputing
Assets are now split in multiple files and there is not a route which
always leads to the last version of an asset. This commit adapts theme
customization (without reloading) to these new features.
2015-10-27 16:32:35 +01:00
qsm-odoo 7329a7fc55 [FIX] website: theme customization modal overflow 2015-10-27 16:14:14 +01:00
qsm-odoo b3590c7104 [FIX] website, web_editor: missing returns in theme JS 2015-10-27 16:13:44 +01:00
qsm-odoo 652956d192 [FIX] web_editor: missing !important on mt,mb,ml,mr rules 2015-10-27 16:13:15 +01:00
Denis Ledoux 2ec9a9c992 [FIX] account: @api.v8 account.tax.compute_all expects a currency browse record
The method `compute_all` of `account.tax` in api.v8
expects a currency browse record, not a currency id.

It's the `compute_all` of api.v7
that expects a currency id.

opw-653106
2015-10-27 13:29:03 +01:00
Denis Ledoux e75314511d [FIX] account: resolve taxes ids triplet commands
`vals[tax_ids]` can be a command triplet,
see:
https://www.odoo.com/documentation/master/reference/orm.html#openerp.models.Model.write

Doing
`tax_ids = map(lambda tax: tax[1], vals['tax_ids'])`
to resolve the command doesn't work for all triplet types,
for instance it doesn't work for triplet `(6, 0, [...])`

To resolve properly a 2many commands, `resolve_2many_commands`
should be used.

opw-653106
2015-10-27 13:29:02 +01:00
Denis Ledoux 76ef3ee98a [FIX] account_cancel: forward port of 6f355623f0 & 79822ed30a
The two above revisions had to be adapted between 8.0 and 9.0:
 - There is no longer any `draft` state on `account.bank.statement`,
   it's now `open` or `confirm`.
 - There is no longer two views, for bank statement & cash regiters.
   There is only one. No need to duplicate the inherited views to add
   the cancelling buttons.

opw-653106
2015-10-27 13:29:02 +01:00
Nicolas Martinelli 9c77e29d4c [FIX] account: make currency visible
It is impossible to post a manual journal entry when an amount currency
is filled in since the currency must be specified.

opw-652890
2015-10-27 13:09:01 +01:00
Goffin Simon fa85b0f075 [FIX] sale_mrp: get_parent_move
The function get_parent_move is waiting a stock.move record not an id.

opw:653105
2015-10-27 12:34:48 +01:00
Olivier Dony 76593cd081 [FIX] base: ir.model.data: safer tests for index creation
Complements b99ef3b125.
The index definitions have changed, so we need distinct names
and existence tests to make sure they get properly created/altered
on older databases.
2015-10-27 11:06:58 +01:00
qdp-odoo ea12117f65 [IMP] account: auto-install 'l10n_uk' for country code 'GB'. Auto install 'l10n_generic_coa' if there is no dedicated localization found for the country code 2015-10-27 10:44:50 +01:00
Denis Ledoux 6c8a844585 [FIX] account: partner read access in multi-companies
The below revision:
275234c067

Makes the multi-companies record rule disabled by default,
meaning the user can see contacts from other company than
his current company.

Nevertheless, to read the computed field `currency_id` on
the `res.partner` model, the user need the read access
on the contact `company_id` field, that the user does not have
if the partner company is not a child of the user current company.

opw-653103
2015-10-27 10:42:39 +01:00
Nicolas Martinelli f2f3149838 [FIX] website_sale: promo code removal
It was impossible to remove a promo code. Some cleaning done as well.
2015-10-27 09:59:23 +01:00
Nicolas Martinelli 3371e65b08 [FIX] website_sale: taxes when creating SO line
The taxes were not computed when the SO line was created.
2015-10-27 09:59:23 +01:00
Nicolas Martinelli 7b41e39fa7 [FIX] website_sale: Price units corresponding to pricelist
The method _webiste_product_id_change now properly browses the product
as it is done in the method product_id_change of the sale module. Prices
are now updated according to the pricelist.
2015-10-27 09:59:23 +01:00
qdp-odoo 098fc9f1e8 [FIX] purchase: fixed wrong portage to new API. Fixes #9252 2015-10-27 09:50:16 +01:00
Christophe Matthieu 07ce3cd4d1 [FIX] web: error on change value in o2m after an other field onchange if the o2m contains o2m
o2m editable list open a form view and can put command as default value (record[this.name] for o2m in a o2m) for the editable fields.
When the onchange is triggered, get_value create a wrong command of command.

step to reproduce issue:
* edit a quotation with at least on sale order line
* change the pricelist
* change the quantity of the sale order line

todo : remove _on_load_record in version > 9.0 and use new dataset implementation with to_delete attribute
2015-10-26 19:27:34 +01:00
Denis Ledoux 34e90a44f8 [MERGE] forward port of branch saas-6 up to 20dba161d0 2015-10-26 19:17:21 +01:00
qsm-odoo b4869a2a4e [IMP] base: description pages containers width
Containers inside description pages must be displayed as a
container-fluid since they are inside a box which has a
smaller width than a container.
2015-10-26 16:51:00 +01:00
Denis Ledoux 30894d15b1 [FIX] im_livechat: livechat managers security rules
These two rules were used to restrict livechat users
to the read access to their own messages,
and allow livechat managers to see all messages.

Since 9.0, livechat messages are no longer
`im.chat.message` records (8.0),
they are now `mail.message` records, and this model
already implements its own security rules.
See `check_access_rule` of `mail.message` to know
more about the access rules of this model.

Therefore, these security rules are no longer necessary in 9.0.

Besides, it had as side-effect to restrict the access of
livechat managers for `mail.message` records.
For instance,
livechat users were no longer able to create customers.

opw-651958
2015-10-26 16:36:34 +01:00
Goffin Simon 2eb8f009b4 [FIX] purchase: action_cancel
Action_cancel must be done on each stock.picking(with state!='cancel') linked to the purchase order
like in the revision 5aeccbd.

opw:652995
2015-10-26 15:42:27 +01:00
Goffin Simon ac53e2451d [FIX] account: reverse_moves
When reversing entries in Journal Entry, each entry(account.move.line)
must be copied with its own 'tax_line_id'. In this way, the action window
"act_account_tax_tax" can find all the entries linked to a specific tax
(active_id) to compute the Tax Report.

opw:652598
2015-10-26 15:35:21 +01:00
Nicolas Lempereur cb23864262 [FIX] web_editor: ie issue with range within undisplayed
In IE11, when adding a range to a selection that can fail if this range
is not displayed (display non on itself or an ancestor) or is not already
inserted in the dom.

e.g: IE fails in the following situation: http://jsfiddle.net/7cmf2tt9/7/

The feature causing this situation is minimal : it only set the cursor
at the end of a FieldTextHtmlSimple widget (the default widget for
fields.Html). This commit thus only ignore that error.

note: this is not an issue on IE Edge.

closes #9216
opw-652347
2015-10-26 15:25:30 +01:00
Nicolas Martinelli 058db89876 [FIX] web: proper update of the dataset
The method evict_record calls _update_cache with an empty dictionary,
which will not replace any cached value. Therefore, the cache is never
cleaned.

opw-652393
2015-10-26 13:03:47 +01:00
Aaron Bohy 1ca0e11393 [IMP] mail: context sensitive mention
The mention mechanism of the chat composer first proposes partners that are
registered to the current channel or followers of the current document, then
users, and finally partners.

Also reduces the mention detection delay to 200ms.
2015-10-26 12:12:22 +01:00
Christophe Matthieu 148703370a [FIX] web_editor: visible char have the same feature that delete keydown 2015-10-26 11:43:37 +01:00
Christophe Matthieu 971437e8b0 [FIX] web_editor: remove td content on keydown delete with multi td selected 2015-10-26 11:43:37 +01:00
Christophe Matthieu 5451cf518f [FIX] web_editor: don't merge tr when keydown delete on the last row table cell 2015-10-26 11:43:37 +01:00
Christophe Matthieu ed9a410c11 [FIX] web_editor: add image display in width:100% by default 2015-10-26 11:43:37 +01:00
Christophe Matthieu 3959afc5b5 [FIX] web_editor: backspace and enter in table cell don't break or remove td (remove tr but not td alone) 2015-10-26 11:43:36 +01:00
Christophe Matthieu 0be54422c0 [FIX] web_editor: use arrow up/down to switch table cell 2015-10-26 11:43:36 +01:00
Christophe Matthieu a291adb314 [FIX] web_editor: copy-paste content keep architecture
The paste don't keep the architecture, usability team want to past the architecture but remove extra style and wrong node like span.
2015-10-26 11:43:36 +01:00
Christophe Matthieu d7b5eeabeb [IMP] web_editor: move picture options from snippet to summernote bar
Difficulty for the user to understand how to change the images.
Some options summernote being in the bar and the other in the snippets editor.
Need to merge this options.
2015-10-26 11:43:36 +01:00
Christophe Matthieu 0505c45164 [FIX] web_editor: don't display the summernote black picture overlay
Issue: the overlay is confusing for user because summernote the size change is not active (to have a responsive design)
2015-10-26 11:43:36 +01:00
Christophe Matthieu 80a396b9fd [FIX] web_editor: remove useless line 2015-10-26 11:43:36 +01:00
Christophe Matthieu 6fc64aa468 [UPDATE] web: update font-awsome version 4.4.0 2015-10-26 11:43:36 +01:00
Christophe Matthieu 63392cc239 [FIX] web: can use web/image controller for attachment type url
Attachment type url return a status 301 for response
2015-10-26 11:43:36 +01:00
Thibault Delavallée 890f1302c7 [FIX] mail: server action: do not send directly email notifications 2015-10-26 10:54:57 +01:00
Thibault Delavallée 2be1dfc1ed [FIX] hr_holidays: subscription and emails
[FIX] auto subscription

- removed auto subscription of managers for leave / allocation requests as this
  can be managed through subscripion to the department
- updated some subtype labels
- removed auto subscription of leave / allocation creator as the employee is already
  automatically subscribed; managers creating leave and allocation in batch should
  not automatically follow the created records except through the department
  subscription

[FIX] notification email batch

- add a context key to use the email queue for notifications linked
  to allocations created in batch
- also fixed a missing context in a browse
2015-10-26 10:54:20 +01:00
Thibault Delavallée 9b385078b2 [DOC] mail: add some docstrings for mail context keys
Too much keys kills keys. Difficult to say.
2015-10-26 10:54:19 +01:00
Thibault Delavallée a36de1efad [FIX] mail: notification email cleaning
- remove / udpate some paddings. Indeed some part of the notification emails
  are badly aligned.
- postprocess the notification email to remove the content coming from odoo.
  This ensure that action buttons present in some emails are not forwarded to
  other people, notably customers. This is done by adding a div holding the
  whole notification emails, with a summary = o_mail_notification. A summary
  is used instead of a class or id because some html clients (like gmail)
  strip classes, ids, ... summary seems to be kept in several clients.
2015-10-26 10:28:46 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Fabien Pinckaers 0dcde79bcd [IMP] spacing on sales team kanban 2015-10-24 18:20:11 +02:00
Denis Ledoux 56ef99d050 [MERGE] forward port of branch saas-6 up to 105b1c0014 2015-10-23 18:31:55 +02:00
Raphael Collet dc729c8611 [FIX] point_of_sale: typo in pos.config.settings (wrong model inheritance)
This fixes an error message preventing a non-system-manager user to edit the
Point of sale settings.
2015-10-23 17:02:25 +02:00
Raphael Collet a468aee518 [FIX] res_config_settings: all users can see "module" fields (possibly readonly)
This fixes an error message preventing a non-system-manager user to edit
settings.
2015-10-23 17:01:56 +02:00
Denis Ledoux 0ea31c272c [FIX] point_of_sale: exclude rescue sessions when getting current session
Rescue sessions have been added with revision
bed409322d

With this feature, this is possible to have multiple
pos sessions opened for a same user, if there are
rescue sessions.

`get_current_session` rely on the fact only one pos session
can be opened per user.

Rescue sessions are now excluded to get the current session, so:
 - at most one session can be found
 - rescue sessions cannot be resumed.

opw-652857
2015-10-23 12:07:17 +02:00
Goffin Simon a9ce4ffb22 [FIX] account, purchase, sale: included taxes
Forward port of 503820acb6 from 8.0

opw:652310
2015-10-23 10:39:12 +02:00
Olivier Dony 807e776ac8 [FIX] web: /web/image: conforming HTTP status line
HTTP status lines are required to have both
a status code *and* a "reason phrase".

Some stricter HTTP clients / proxies choke
on status lines without "reason".

Technically, setting `response.status` is supposed
to set both at the same time, so we need to provide
both, or to set `status_code` only and let werkzeug
add the reason.  This patch does the latter.

Fixes #8924
2015-10-22 17:40:33 +02:00