Commit Graph
103218 Commits
Author SHA1 Message Date
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
Joren Van Onder 11e429cb7a [FIX] pos_mercury: use a journal with an associated Mercury config
Before this pos_mercury would use journals of type Bank, and would not
use the Mercury configuration on journals to figure out which one to
use. This meant that it would 'wait for swipe' on bank journals,
regardless of whether or not they were configured for Mercury.
2015-10-06 09:12:51 +02:00
Damien Bouvy 1fcf5bdadc [FIX] procurement: no procurement rule needed for digital products
The refactoring of product added a new type of product besides stockable/consumable/service: digital
It usually behaves like a service, for example it does not need a procurement rule (which is the point of this fix)
2015-10-05 17:31:13 +02:00
Damien Bouvy 0b5df29c8f [FIX] website_sale, website_portal_sale: new sale module compatibility
- SO states have changed, reflect this in the controller
- digital products are no longer services, but they still do not need a picking
2015-10-05 17:31:13 +02:00
Aaron Bohy c3a5f0fb7b [FIX] mail: client action: channel unsubscribe notification
Correctly display the name of the unsubscribed channel in the notification, not
the name of the channel we switched to afterwards.
2015-10-05 16:37:49 +02:00
Denis Ledoux 105b1c0014 [MERGE] forward port of branch 8.0 up to 25634df 2015-10-05 16:20:13 +02:00
qdp-odoo c5fd4c05b8 [FIX] account, purchase: keep the default account of invoice line instead of replacing it to False (happens when the product/product categ is not correctly configured) 2015-10-05 15:38:47 +02:00
Goffin Simon 25634df8f2 [FIX] crm: meeting from a logged phone call
The user creating the event should be by default in the attendees (to see the event
he just created in his calendar) and the contact on the logged call
should also be in the attendees by default.

opw:650556
2015-10-05 15:30:46 +02:00
Cedric Snauwaert 53b741351a [FIX] purchase_requisition: move button to create a quotation away from button_box
this also fix a problem where the button did not appear on enterprise version because it
lacked the oe_stat_button class
2015-10-05 15:19:55 +02:00
qdp-odoo d6928b3de1 [FIX] purchase: creation of vendor bills by clicking on 'invoice' button of PO was wrongly creating a customer invoice, the list of vendor bills for a PO with no invoice was wrongly showing all the vendor bills and the PO is now set as default value for manual creation of bill. Fixes #8872 2015-10-05 14:46:26 +02:00
Thibault Delavallée eb7139b01f [IMP] mail: context key for message author subscription
By default the author of a message is always removed from the notified recipients.
However in some cases it is interesting to be able to notify the author. A context
key has been added that handle that case.
2015-10-05 11:56:05 +02:00
Thibault Delavallée 17e562ecef [FIX][TESTS] mail: auto subscription, needaction
- fixed computation of needaction flag (typo)
- fixed order of auto subscription and message tracking: first subscribe then
  track. This way messages are send to newly added followers.
- added tests in CRM to ensure this behavior works by updating the already
  existing test and using the mail test class
2015-10-05 11:56:05 +02:00
Thibault Delavallée 803bf8f75d [IMP] mail: invite email, notification style
Use the notification template when sending invite emails (add a follower
with send a message checked).
2015-10-05 11:56:05 +02:00
Thibault Delavallée 2d5d2f0fe6 [FIX] mail: template used for notification 2015-10-05 11:56:05 +02:00
Nicolas Martinelli f12e1c26e9 [FIX] product: check parent company when selecting supplier
When searching for a matching supplier, we now accept the parent company
of the supplier.

Fixes #8874
2015-10-05 10:29:56 +02:00
Antonio Espinosa 91d54a0d7d [FIX] website: google_map_link zoom was forced to '10'
Use the parameter zoom as in `google_map_img`
Change the default value to 10 to avoid changing the behaviour for existing
links (zoom was not used anyway).

Closes #8318
2015-10-05 10:24:30 +02:00
Aaron Bohy 435f748410 [FIX] mail: client action: crash on channel unsubscribe
After unsubscribing from a channel, the client action switches to inbox.
Method set_channel() takes as argument the channel to switch to, not its id.
2015-10-05 10:17:53 +02:00
Denis Ledoux b0a42eac49 [FIX] website_quote: do not update mails & quote templates
opw-651153
2015-10-05 10:12:57 +02:00
Olivier Dony 0c35468806 [FIX] * settings: cosmetic changes for boolean options
Remove some duplicate config settings and improve
the layout of boolean options in various
config screens
2015-10-05 09:56:00 +02:00
Odoo Translation Bot 04c6ee54d8 [I18N] Update translation terms from Transifex 2015-10-04 03:03:19 +02:00
Odoo Translation Bot 57b993ffad [I18N] Update translation terms from Transifex 2015-10-04 01:59:01 +02:00
Fabien Pinckaers 52484b0132 [IMP] Terminology fix 2015-10-02 19:09:49 -07:00
Raphael Collet a9c43bba82 [FIX] fields: fix assignment of related field on several records 2015-10-02 17:05:35 +02:00
qsm-odoo e7418cef22 [FIX] web: DomainEditorDialog
(backport of enterprise version)

In readonly mode, the selected domain was not correct when
click on "see selection".
2015-10-02 16:53:58 +02:00
qsm-odoo 8181a80080 [IMP] web(_editor): translate icon compatibility
Add the $translate variable for enterprise compatibility and hide it in
web editor widgets (these had already no translate icon in community).
2015-10-02 16:53:58 +02:00
Martin Trigaux 35b9ff7146 [FIX] auth_signup: do not send email to duplicated user
When duplicating a user, an email was sent to a user at the email of the
previous user (as the create is called before changing the email).

Closes #8754
2015-10-02 16:32:55 +02:00
Yannick Tivisse 3631c962fe [IMP] account: Be able to search on journal entries by account 2015-10-02 16:02:44 +02:00
Aaron Bohy de8acb2569 [FIX] mail: emojis: replace all occurences of the emoji in messages
The problem was that, when substituting the emoji pattern by the emoji icon,
we only replaced the first occurence of the pattern.

This rev. replaces all occurences of the pattern by performing a global match
('g' option), and correctly handles matches overlap by using a lookahead
assertion ('x(?=y)') instead of basic non-capturing parentheses ('x(?:y)').
2015-10-02 15:49:37 +02:00
Aaron Bohy 28d3dc6cc9 [IMP] mail: only display needactions in channel inbox 2015-10-02 15:49:37 +02:00
Aaron Bohy 8908d5ccab [IMP] mail: reduce number of lookups in channels dict
Instead of using the channel's ids to communicate between the client action and
the chat manager, directly use the channel itself. This prevents many lookups
in the channels dict to retrieve the channel from its id.
2015-10-02 15:49:36 +02:00