Commit Graph
103231 Commits
Author SHA1 Message Date
Martin Trigaux 07a19b7949 [FIX] doc: deprecated tree parameter colors 2016-02-09 15:18:31 +01:00
Goffin Simon b0ce65dacc [FIX] sale: quantity in invoice line from invoicing
Introduced by 98ccb8539e
2016-02-09 14:49:05 +01:00
Olivier Dony 13833d5257 [MERGE] Forward-port saas-6 up to rev. 3ea3348 2016-02-09 14:37:52 +01:00
Goffin Simon 98ccb8539e [FIX] sale: invoice_status of a SO line from an advance payment
When making an advance payment, the SO line created from this payment
must have a qty_invoiced equal to 0 and the invoice line created for
this SO line must have a quantity equal to 0. In this way, the SO line
created is "Fully invoiced".

opw:668844
2016-02-09 14:03:57 +01:00
Goffin Simon d8503b68a2 [FIX] sale: invoicable line
When invoicing the invoiceable lines on a SO, if there is no
invoicable lines then a UserError is raised to avoid to create
an empty invoice.

opw:668844
2016-02-09 13:58:38 +01:00
Denis Ledoux 3266d43399 [FIX] marketing_campaign: pass context as kwargs in overriden search
When converting a new API call to an old API call,
the context is expected to be found within the kwargs
argument. If not, it is seen as a regular argument.

See `get_context_split` in `openerp/api.py`

As it was not the case in the overidden method
`search` in `marketing_campaign.py`, if a module
overriden the method `search` of
`ir.actions.report.xml` using the new API, the
context wasn't treated as such correctly, and it leaded
to wrong number of arguments passed.

I take the opportunity to pass all arguments
that are passed as kwargs in the base `search`
as kwargs as well, to be clean.

opw-668471
2016-02-09 11:30:44 +01:00
Nicolas Lempereur 37dc9303a6 [FIX] website_crm: fix medium_id for website sent form
In ddac26c `crm.crm_medium_website` was replaced by
`utm.utm_medium_website`.

There was one place where it was not reverberated so the medium_id was
always unset in that instance (a crm.lead created from a website form).

opw-668853

note: equivalent of saas-6's 3ea3348
2016-02-09 11:29:39 +01:00
Nicolas Lempereur 3ea3348d20 [FIX] website_crm: fix medium_id for website sent form
In ddac26c `crm.crm_medium_website` was replaced by
`utm.utm_medium_website`.

There was one place where it was not reverberated so the medium_id was
always unset in that instance (a crm.lead created from a website form).

opw-668853

note: no need to forward port after saas-6 (code change)
2016-02-09 11:05:46 +01:00
Yenthe 95c37d1b0e [FIX] project_issue: typo sStage to stage
Closes #10835
2016-02-09 10:52:34 +01:00
rap-odoo 52193c4953 [IMP] crm: count won opportunities on partner form
Customer form opportunity state Button now counts all opportunities
of related customer, except archived one.
2016-02-09 10:45:37 +01:00
Raphael Collet 8a2b172c3e [FIX] addons: fix usage of decorators api.v7/api.v8 2016-02-09 10:33:34 +01:00
Martin Trigaux f0dcb4493b [FIX] doc: iterating on a recordset 2016-02-09 10:17:36 +01:00
Olivier Dony 39b8330331 [FIX] base: enable o2m test foreseen in 4de3f4c4
See 4de3f4c4ba
2016-02-09 10:10:28 +01:00
Raphael Collet 5763c32a6d [FIX] addons: fix usage of decorators api.v7/api.v8
Specifically, when one API implementation calls the other one, it has to call
the method *from the same class*.  Otherwise, overriding the method may result
in an infinite recursion.  Consider:

    class A(Model):
        _name = 'stuff'

        @api.v8
        def foo(self):
            return 42

        @api.v7
        def foo(self, cr, uid, context=None):
            return self.browse(cr, uid, [], context).foo()

    class B(Model):
        _inherit = 'stuff'

        def foo(self, cr, uid, context=None):
            return super(B, self).foo(cr, uid, context=context) + 1

and now call: `env['stuff'].foo()`.  This invokes `B.foo` (new-API), which
calls `B.foo` (old-API), which calls `A.foo` (old-API), which calls `B.foo`
(new-API) instead of `A.foo`!

This issue would not be present if old-API `A.foo` was defined as:

        @api.v7
        def foo(self, cr, uid, context=None):
            return A.foo(self.browse(cr, uid, [], context))
2016-02-09 10:01:43 +01:00
Damien Bouvy 0948656a67 [FIX] payment_ogone: batch files expect ASCII encoding
When registering a payment method using batch, ogone
expects an ascii file. To avoid stipping characters
like they do on Friday the 13th, let's use a normalize
function to strip diacritics more or less properly.

See https://payment-services.ingenico.com/int/en/ogone/support/guides/integration%20guides/batch
2016-02-09 09:26:41 +01:00
Laurent Mignon d82e489add [FIX] models: use column._symbol_c as placeholder for the column value
When generating SQL queries, `column._symbol_c` must be used as placeholder as
for the method 'set' of the column itself.  Otherwise it is not possible to
define specialized columns.
2016-02-09 09:20:17 +01:00
Martin Trigaux ac73871ee2 [FIX] doc: missing import 2016-02-09 08:48:06 +01:00
Nicolas Lempereur dd52faaec0 [FIX] website: reset request attribute
When rerouting from a lang path token to the given route (eg:
/en_US/route_path to /route_path) it is better to keep request variable
clean.

opw-668563
2016-02-08 17:26:32 +01:00
Denis Ledoux 58bc4842e0 [FIX] portal_sale: Portal users can read taxes groups
If a portal can read an `account.tax`,
there is no reason he cannot read an `account.tax.group`.

Without this read access on the tax groups, a portal
user cannot print the invoice report from the
portal, due to the `o._get_tax_amount_by_group()` call
in the invoice report.

opw-668973
2016-02-08 17:25:10 +01:00
rap-odoo 7f9e51283b [IMP] stock: expiration dates settings displayed only when tracking lots
Also changed string 'Do not use Expiration Date' into 'Do not use Expiration Date on serial numbers'.
2016-02-08 17:14:00 +01:00
Denis Ledoux ff915dd96e [FIX] import: import new records without xml_ids
This is related to revision 80b373f.

The above revision leads to the inability
to import new records without any `xml_id` set

Technically speaking, this is because
you cannot concatenate `False` with `'_'`, in
`xml_id + '_'`

opw-668962
2016-02-08 16:54:24 +01:00
Denis Ledoux eb2346ba46 [MERGE] forward port of branch 9.0 up to 0b7990c 2016-02-08 16:08:32 +01:00
Yannick Tivisse 0b7990cbce [FIX] mail: put only employees into the group_data 'user'
Before, every user was set into this group. It means that a portal
user received elements in his mail context, like the buttons to
open a document or to follow it. Now, only the employees will
receive this kind of information
2016-02-08 15:40:24 +01:00
Yannick Tivisse 243d207ad6 [FIX] mail: Use standard signature to be recognized by services like Google 2016-02-08 15:40:24 +01:00
Yannick Tivisse 071aa38b4e [FIX] web: avoid infinite pending state in case of RPC call fail
If the RPC fails, the deferred is never resolved nor rejected,
so the deferred given by willStart will stay in a 'pending' state

As the deferred is expected to be resolved or rejected to launch the
systray to continue, we have to catch this case too.
2016-02-08 15:04:01 +01:00
Aaron Bohy 52f55ed493 [FIX] Packaging: deb: include missing font files in builds 2016-02-08 14:44:08 +01:00
Nicolas Lempereur dde97416b9 [FIX] web: pivot click keep view references
When clicking on a pivot view cell, the gotten view were default views.

For example when on the opportunity pivot view, after clicking on a cell
we we would get to the crm.lead default view instead of the opportunity
one.

This commit keep references to current action views when clicking on the
cell.

closes #10768
opw-668472
2016-02-08 14:33:44 +01:00
Jeremy Kersten 5fe84da278 [FIX] website_forum: use placeholder for controller /avatar 2016-02-08 13:57:37 +01:00
Jeremy Kersten 1e54a8f6ab [FIX] website_forum: don't index forum_post if deleted
update can view, to remove deleted post from sitemap and make controller unavailable for lambda user.
Only Admin, and users with enough karams can continue to see them and undelete them.
2016-02-08 13:57:37 +01:00
Jeremy Kersten 503824184c [FIX] website_mail_channel: Impossible to subscribe to forum_post
This code should be only executed when mail_channel snippet is used...

Fix #10005 #9980
2016-02-08 13:57:37 +01:00
Denis Ledoux 04b2d910ac [MERGE] forward port of branch saas-6 up to fead627 2016-02-08 13:39:28 +01:00
Denis Ledoux fead627dd5 [MERGE] forward port of branch 8.0 up to 3ff4dae 2016-02-08 13:31:27 +01:00
Christophe Matthieu 55c7d2d5b0 [FIX] web_editor: don't convert style into class by default. Only if use style-inline (because very poor performance for sale.order form view because contains very crappy dom in website_description field) 2016-02-08 12:20:10 +01:00
Thibault Delavallée 82e60a9648 [FIX] mail: automatic subscription of responsible
Do not erase existing subscription with void subtypes.
2016-02-08 12:16:58 +01:00
Christophe Simonis 05f44e597c [FIX] purchase: avoid comparing Records with ids 2016-02-08 11:15:51 +01:00
Goffin Simon a594356fe4 [FIX] stock_account: "Set standard price" button
When Costing methods="Standard Price" and Inventory Valuation="Perpetual (automated)",
the button to set the price in "product.template" view form must be called
"Set standard price".

opw:668709
2016-02-08 11:10:19 +01:00
Yannick Tivisse 46e925aa9f [FIX] web: Load SystrayMenu even if a systray's deferred is rejected 2016-02-08 11:08:34 +01:00
Yannick Tivisse 09659cca30 [ADD] web: Company swicher button on systray
If the user has multicompany rights and more than one allowed
companies, the full company name is displayed in the  topbar. When you
click on it, there is a dropdown with the name of the other companies.

Clicking on another company name makes you switch on it and reload the page
2016-02-08 09:08:11 +01:00
Aaron Bohy 4010c09e68 [FIX] mail: automatically open DM and livechat on new message
When a new message arrives in a DM or a livechat, the channel is automatically
open in a chat window if we aren't currently in Discuss.

Don't apply this behavior in mobile and we probably don't want to see a full
screen chat window everytime someone sends us a message.
2016-02-08 08:47:10 +01:00
Aaron Bohy ad02d23bf3 [FIX] mail: hide chat windows in discuss
Thus also remove the 'Detach' button in Discuss's control panel as we can now
directly detach channels with the messaging menu.

Also removed unused handler on 'messages_read' since rev. 30c26d7.
2016-02-08 08:29:53 +01:00
Aaron Bohy 5ba53f3b11 [FIX] mail: display user status in chat windows 2016-02-08 08:29:53 +01:00
Aaron Bohy 79a8eeb17d [FIX] mail: unread counter on new message in non pinned DM
When a new message arrived in a non pinned DM, the unread counter was
incremented twice ; once because the channel info (along with its unread
counter) was fetched from the server as the channel wasn't in the JS cache yet,
and once when adding the message in the JS.

With this rev., we only increment the unread counter when a new message arrives
if its channel is already in the JS cache.
2016-02-08 08:29:53 +01:00
Aaron Bohy bc2d86e00f [FIX] mail: correctly compute unread messages
Two problems occured:
 - when the user hadn't seen any messages of a channel, the seen_message_id
   was null and doing seen_message_id < msg.id to retrieve all messages
   received after the last one seen didn't return any message (null < x is
   always false)

 - messages sent by visitor on the livechat doesn't have any author_id, so,
   again, doing msg.author_id != partner_id is always false, and as a
   consequence, server-side, the messages sent by visitors were always
   considered as read
2016-02-08 08:29:52 +01:00
Aaron Bohy 2b43624666 [FIX] mail: don't display subject of messages written in a chatter
This was working fine until rev. 4bab99bd which accidentaly changes the
condition.
2016-02-08 08:29:52 +01:00
Aaron Bohy 377bcd202f [FIX] mail: overlapping calls to get_channel_preview
Problem occured when the first call to get_channel_preview was directly
followed by others, before the channels_preview_def was resolved. In that case,
the other calls all returned an empty array, as only the channels_preview
array was only filled with the RPC result for the first call to
get_channel_preview (the one which initiated the RPC).
2016-02-08 08:29:52 +01:00
Aaron Bohy 021f9aeec7 [FIX] mail: systray items must wait for chat_manager
Those items might have been rendered and inserted into the DOM before the chat
manager initialization was completed. As those items rely on chat manager's
data, they should wait for it before executing their action (inbox redirection
and channels preview display).
2016-02-08 08:29:52 +01:00
Odoo Translation Bot 3ff4dae5b0 [I18N] Update translation terms from Transifex 2016-02-07 02:58:52 +01:00
Odoo Translation Bot f2146d360d [I18N] Update translation terms from Transifex 2016-02-07 00:33:44 +01:00
Goffin Simon dda8e2211a [FIX] calendar: order of calendar contacts
When displaying calendar contacts in calendar view, the contacts
have to be ordered by name.

opw:666397
2016-02-05 16:17:53 +01:00
Olivier Dony bc26a49194 [MERGE] Forward-port 7.0 up to 4de3f4c4ba 2016-02-05 15:42:12 +01:00