Commit Graph
102197 Commits
Author SHA1 Message Date
bramsi 979d23ad8c [FIX] mrp: name_search where args is not defined
In case of name_search with no args (default None, see #8492 for example of
valid scenario, during import)
Construct the domain correcty.

Fixes #8492
2015-10-07 12:50:32 +02:00
bramsi 4f2bd0b9ea [CLA] signature for bramsi 2015-10-07 12:50:25 +02:00
qsm-odoo 9c85163190 [FIX] base,web_kanban: flex in app kanban was useless
+ was breaking old safari versions
+ modify oe_kanban_avatar_smallbox for compatibility
2015-10-07 12:40:43 +02:00
Damien Bouvy 244556ac5f [FIX] sale_service: do not remove an existing value for so_line in account.analytic.line
When looking for a so_line linked to the task, the sale_service module accidentaly removed the already referenced so_line.
The desired behaviour is:
1/ Check if task is linked to so_line, if yes reference it
2/ If not, then let the dict as it was before, do not put False if there already was a value (for example something that sale_timesheet might have found)
2015-10-07 12:27:21 +02:00
Wolfgang Taferner 29d28b05e4 [FIX] account_check_writing: modify voucher amount without company
The code used the key vals['company_id'] while it was not checked it was present
in the write call (and it should not necessary).
If a key is not present, browse the record instead.

Fixes #8906
2015-10-07 12:14:30 +02:00
Walter Padrón a2eaad2eb4 [CLA] Walter Padrón (wpadron)
Closes #8928
2015-10-07 11:37:59 +02:00
Pedro M. Baeza fbc66b29e3 [IMP] mrp: Provide hook methods in _bom_explode
Cherry-pick of ed57bb9 for v9
Closes #8885
2015-10-07 11:30:51 +02:00
Martin Trigaux 096fe8a05c [FIX] project: restrict access to dashboard only to project users
Users not belonging to the project user group can not access the model
project.task.history.cumulative
Hide the dashboard for them

Fixes #8606
Closes #8607
2015-10-07 11:19:58 +02:00
Martin Geubelle 1d94b75b01 [IMP] web: more fun on wow button
Change the icon once in a while randomly
2015-10-07 10:45:33 +02:00
Carlos Almeida 48eb1f6df7 [FIX] l10n_br: specify accounts that can be used to reconcile
Fixes #8902
In order for the payment wizard to work, the accounts in invoice header, account_id, should have reconcile=True.
In l10n_br the accounts are, amongst others, "Clientes" and "Fornecedores", a the chart of account should make them by default as reconciliable.
2015-10-07 09:15:21 +02:00
Carlos Almeida 78b1083aac [CLA] signature for cmsalmeida 2015-10-07 09:15:08 +02:00
Danimar Ribeiro e68b304c55 [FIX] web: set the formatted date in the datepicker
Fixes #8867
Closes #8905
2015-10-07 08:27:45 +02:00
Nicolas Martinelli 6f5ee9da68 [FIX] sale_stock: properly loop on picking 2015-10-07 08:27:45 +02:00
Richard Mathot fbdb5564f3 [FIX] survey: do not add "(copy)" everywhere
When duplicating a survey, the title of the survey gets "(copy)", but
the pages and the questions should not.
2015-10-06 17:57:24 +02:00
Cedric Snauwaert 726f7f368c [FIX] account: don't install a coa if we already have some account existing on the company 2015-10-06 17:20:59 +02:00
Aaron Bohy f23f57ccf4 [FIX] im_livechat: livechat restored after refactoring of mail
Refactoring of the livechat itself and integration in the new architecture of
mail since its large refactoring.

Joint work with ged
2015-10-06 16:24:47 +02:00
Aaron Bohy 8019c89ea8 [IMP] mail: prepare livechat integration
- Extract sub-templates for client action's sidebar to ease the livechat
  integration
- Handle livechat's channel_type and messages in chat manager
- Make scrollBottom work in the frontend
2015-10-06 16:24:28 +02:00
Aaron Bohy 01caecf1c7 [FIX] mail: avoid crash when channels contain special characters 2015-10-06 16:24:24 +02:00
Aaron Bohy aab4ef752e [IMP] mail: thread: parameterize the display of messages' star
To allow hiding it in livechat windows on the website.
2015-10-06 16:24:09 +02:00
Aaron Bohy 212bbf1f7e [FIX] mail: thread: messages' date displayed in browser's timezone 2015-10-06 16:23:56 +02:00
Aaron Bohy 581c38cdca [IMP] mail: new message notifications: display message preview 2015-10-06 16:23:25 +02:00
Danimar Ribeiro 18ae91ea92 [FIX] mass_mailing: Check if bounce_alias is not None
If the parameter mail.bounce.alias is not found
2015-10-06 16:11:45 +02:00
Danimar Ribeiro eb18925956 [CLA] Signature for danimaribeiro 2015-10-06 16:09:54 +02:00
Stefan Rijnhart 3b3616a3a0 [CLA] coporate signature for Opener B.V.
Closes #8857
2015-10-06 16:02:45 +02:00
Damien Bouvy 10f411d76a [FIX] website_sale_delivery: digital products do not need a carrier 2015-10-06 15:57:16 +02:00
Raphael Collet 0bf0dff7b0 [IMP] models: enable update on a xml-translated field
Enable the update of such a field, even if there is a language in context:
simply update the main value and synchronize source terms.
2015-10-06 15:27:45 +02:00
Raphael Collet 1a4892f020 [FIX] base_action_rule: trigger rules upon field recomputation 2015-10-06 15:23:39 +02:00
Raphael Collet 25251b2dbd [IMP] base_action_rule: make tests work (rename file and rewrite them to work)
Introduce test rules in demo data instead of during the test, because their
creation/update restarts the registry.  Moreover, the registry is only patched
after all installations.  So the test must be run at post-install phase.
2015-10-06 15:23:39 +02:00
Martin Trigaux bf0c7379e2 [FIX] web: groupby -> group by
Hopefully "group by" is already translated somewhere else so does not break trads
2015-10-06 15:07:54 +02:00
Damien Bouvy 623c757945 [FIX] purchase: simplify migration by putting an oldname when renaming a field 2015-10-06 14:39:25 +02:00
Daniel Dico ae69f2849b [FIX] stock_account: use fiscal position to map account
Closes #8813
2015-10-06 13:44:03 +02:00
Goffin Simon 595a33a2b1 [FIX] web_kanban: display all items of a selection field
If field.type === "selection" then group.attributes.value is an Array
and s[0] could never be equal to group.attributes.value
2015-10-06 13:39:08 +02:00
Denis Ledoux 88bda36b9b [FIX] inter_company_rules: purchase order with company fiscal position
The `fiscal_position` in the values dict for the `create`
expects an id, not a browse record.

This prevented to automatically create purchase order
from a sale order in an inter company environment
when the fiscal position of the companies were set.

opw-651443
2015-10-06 13:29:19 +02:00
David Monjoie 6b6d7310c0 [FIX] website_sale: sale_get_order force_create
Previously, if there was a sale_order_id but it was wrong,
like when the sale order was deleted for example, the function
didn't return a sale order, even with force_create=True.

It used to pass the first 'if' as sale_order_id had a value, so
no new sale order was created. However, as sometimes the id was
referring to a non-existant sale_order, a sale_order.exists() test
was used later, resulting in the function sometimes returning None,
even with force_create = True.

Proposed solution is to test the existence of the browse record with
the given id earlier, instead of testing the existence of the id itself.
2015-10-06 10:59:46 +02:00
Christophe Matthieu e047130314 [FIX] web_editor: oStyle.range can be undefined
On initialisation summernote call update method with oStyle.range is undefined.
The range can be undefined because the update is call before any selection and attach method from summernote call the update without range.
The method summernote_table_update try to use the range and raise an exception.

fix: Check if oStyle.range exits.
2015-10-06 10:44:37 +02:00
Christophe Matthieu afa361f86e [FIX] product: update the name of the pricelist items on change
Issue: when the user create a pricelist item, the function fields (name, price) are updated only on save (the form view) and not on change.
In the pricelist form view, the 'item_ids' one2many receive empty value from the modal (name, price).

Fix: update 'name' and 'price' field to the new v8 api.
2015-10-06 10:40:04 +02:00
Christophe Matthieu dde78a7af5 [FIX] website_sale_options: display the options name with the linked product in the description after quantity changed
Issue: when the user change a quantity, the description of the linked optional products change and the linked product name disappear.
2015-10-06 10:38:37 +02:00
Xavier Morel 9dffd17bd5 [IMP] website_forum: users page performances
The read_group collating user badge counts is extremely slow when
there's a large number of users (possibly even slower than 8.0's naive
approach), replace the whole thing by a single SQL query seems to yield
pretty significant (~2 orders of magnitude) performance improvements on
the computing function resulting in ~1 order of magnitude improvement
for the page as a whole.
2015-10-06 10:33:11 +02:00
Nicolas Martinelli 470e8f5f22 [FIX] sale, sale_timesheet: multiple fixes
1) Domain of account.analytic.line

When an expense is created with a cost of zero, the quantity delivered
on the SO line is not updated.

2) Delivered quantity updateable if manual tracking

The delivered quantity cannot be manually modified if it is calculated.
Therefore, we need to restrict the condition to a manual tracking.

3) Upselling conditions

Upselling is possible only for a product invoiced on ordered quantities
for which we delivered more than expected.
2015-10-06 10:21:48 +02:00
Denis Ledoux 41579a293d [FIX] im_livechat: security record rules for live support
* There is no `mail` field on model `mail.message`
  * There is no `mail.channel_ids` field on model `mail.channel`

opw-650656
2015-10-06 10:14:55 +02:00
Raphael Collet 25ea23eb31 [FIX] models: when accessing function fields in multi, read them all at once 2015-10-06 10:04:59 +02:00
qdp-odoo f24b198773 [REF] purchase, sale_stock, stock_account: some refactoring 2015-10-06 09:59:18 +02:00
qdp-odoo 365ecece73 [FIX] purchase: wrong valuation price on stock moves when a tax included in price was used (product were valuated with price included too) 2015-10-06 09:59:18 +02:00
qdp-odoo f4888a72d2 [FIX] purchase: fixed crash on anglo saxon 'price difference' line creation (key 'taxes' not present in line). Fixes #8850 2015-10-06 09:59:18 +02:00
Jérome Maes 811828c0b8 [FIX] mail : clickable url in mail.message from channel, chat and chatter
html_escape_keep_url is now included in plaintext2html method (since the opposite method html2plaintext transform link tags into simple url text). Force the posted message to be plaintext (adding directly html is not safe), and trim the posted message before submitting it.

The url are now clickable again in chat message, but also in chatter messages !
2015-10-06 09:46:55 +02:00
Jérome Maes 2a676ee11c [FIX] mail : broadcast needaction for concerned partners in particular bus channel
Use the (dbname, 'ir.needaction', partner_id) channel to broadcast needaction to partner. Some message can be needaction, without belonging to a mail channel of the partner. Keep the (dbname, 'res.partner', partner_id) channel for conversation header.
2015-10-06 09:44:51 +02:00
Jérome Maes 2df240ded0 [FIX] bus : notification should be committed before awake longtpolling thread
If calling more than once `sendmany` (or `sendone`) on the same http request, the `NOTIFY imbus` will tell pertinent polling thread to
fetch their notifications in the bus table, which will not contain the new notifications, since they are not yet committed. For some reason, this
doesn't happen when calling only once `sendmany`. Committing the notifications breaks the tests since no rollback is possible.
So, `self._cr.commit()` should not be called in a test environement.

In this case, we cannot use `isinstance(self._cr, TestCursor)` since TestCursor is only avaiblable for http request in test mode. Here the cursor is a normal cursor, and to determine if we are in test mode, there is no other option than checking the config of the odoo server.
2015-10-06 09:44:38 +02:00
Jérome Maes 22631a152a [FIX] mail, website_mail : special controller for message author avatar
Previous commit (3304b31938) was not performant enough for AL, so got special autorization to make a particular controller for mail.message author avatar. Avatar of message is avaiblable if current user has 'read' access right to the document. Otherwise the default avatar is one white pixel.
2015-10-06 09:43:46 +02:00
Jérome Maes a4b17c2621 [FIX] im_livechat : assets controller, mock_attachment includes id now.
I miss commit c3c2281a4d, so the search on attachment url is useless now.

Also check if the return content is not None, avoiding to decode base64 a None object.
2015-10-06 09:43:02 +02:00
Nicolas Mac Rouillon 4400da6ca4 [FIX] project_issue_sheet: restrict inherited view access
The field timesheet_ids (hr.analytic.timesheet) and analytic_account_id
(account.analytic.account) should not be accessible by the portal user.

Fixes #8338
Closes #8354
2015-10-06 09:24:53 +02:00