Commit Graph
94728 Commits
Author SHA1 Message Date
Christophe Simonis 9750c1eae3 [MERGE] forward port of branch 8.0 up to 44059bc 2015-04-20 12:33:31 +02:00
Christophe Simonis 44059bce4b [MERGE] forward port of branch saas-3 up to 9323f2b 2015-04-20 12:11:15 +02:00
Christophe Simonis 9323f2b4c7 [MERGE] forward port of branch 7.0 up to a091de8 2015-04-20 12:10:48 +02:00
Jérome Maes 06fd9e3aa3 [FIX] im_livechat : the default welcome message should come from the operator
Now the livechat supports identified users. So multiple user can be in the user_ids of a session. The author of the 'welcome message' is more difficult to identify. If portal user connected, the 'welcome message' author was this portal user instead of the operator. Required to pass operator id in the context to avoid the same mistake with an operator as 'client' and operator as real operator.
2015-04-20 12:05:28 +02:00
Jérome Maes 54ced5ebd4 [FIX] im_odoo_support : different name for livechat and odoo livechat conversation cookie
Prevent the auto opening conversation when switching frontend/backend with im_livechat conversation started.
2015-04-20 12:05:20 +02:00
Christophe Simonis a091de8d8d [FIX] core: no traceback when closing socket.
Closes 5057
2015-04-20 11:54:58 +02:00
Frédéric van der Essen 3deec5553b [FIX] point_of_sale: customer edition would reset the country to none. 2015-04-20 11:35:15 +02:00
Christophe Simonis 13fec4a21c [FIX] core: avoid infinite recursive loop.
`function` fields are fully copied via `copy.copy()`.
`copy.copy()` *do not* call `__init__` after object creation; then
restore the state via `__setstate__()` or by updating `__dict__` or via
`setattr()` when the object uses `__slots__`.

As `__init__` is not called, the newly created object does not have any
`_args` attribute. This lead to a recursive call of `__getattr__ when
`copy.copy` check the existance of `__setstate__` attribute.

When break this loop by forbidding explicitly by checking the attribute
name accessed (We cannot check the presence of `_args` in `__dict__`
because we uses `__slots__`).

See http://bugs.python.org/issue5370
Fixes #6037
opw:633109
2015-04-20 11:00:09 +02:00
david.beal@akretion.com ea4f9c4625 [FIX] call fields_view_get with named context
otherwise new API bridging breaks down

closes #6371
2015-04-20 09:39:40 +02:00
Goffin Simon fc132665d7 [FIX] point of sale: Rounding method
By default, the point of sale awlways uses the rounding method per line.
But the accounting configuration allows to use the globally rounding method,
this is why the point of sale must consider this configuration.
Inspired from the compute_all of account.tax model within
addons/account/account.py.

opw:632537
2015-04-20 08:41:41 +02:00
Christophe Matthieu 63e1d36283 [FIX] website: need to keep transparency when upload a png image on the website 2015-04-19 14:00:00 +02:00
Antony Lesuisse f8c19f9373 [FIX] account invoice price_subtotal_signed
how many engineer does it take to compute a field ?
4 and 3 commits, and nobody got it right including me :)
2015-04-18 15:35:34 +02:00
Ravi Gohil 3557fe124a [FIX] fields: timezone aware context_timezone
context_timestamp should always return a timezone aware timestamp, even when
no timezone is set on the user.
7f88681 fixed the bug in old api fields (openerp/osv/fields.py) but it was not
applied to new api fields (openerp/fields.py). opw 616612
2015-04-17 17:59:47 +02:00
Denis Ledoux b28bfcdb3a [FIX] stock_account: real-time inventory valuation with free goods
For a free purchase, the valuation amount fall-backed
to the product cost price instead of the actual
cost of the purchase.

opw-63059
2015-04-17 17:33:31 +02:00
Christophe Simonis 8846dcb179 [FIX] account: correct price_subtotal_signed computation
When computing default values, `self.company_id` may not be set. Use
explictly `self.invoice_id.company_id` to compute the signed subtotal.
Also, only do it when there is an invoice.
2015-04-17 17:33:13 +02:00
kevin wang bbcc6a8478 [CLA] signature for Loyal 2015-04-17 17:09:39 +02:00
Nicolas Lempereur eb463689c0 [FIX] mail: get template outgoing server
The outgoing server of a mail template is not used when sending a mail.

This fix propagates the mail server the same way it's done for auto_delete.

opw-633005
2015-04-17 16:59:37 +02:00
Sylvain GARANCHER 571ccec154 [CLA] Syleam 2015-04-17 16:56:28 +02:00
Paul Catinean b1b70ee316 [CLA] PCatinean signed CLA 2015-04-17 16:55:38 +02:00
Goffin Simon cfb47fc012 [FIX] account: No tree view needed
The view Aged Partner Balance does not need a tree view.

opw:633116
2015-04-17 16:44:56 +02:00
Alejandro Santana 0c039ce5f5 [CLA] Alejandro Santana 2015-04-17 16:18:24 +02:00
Christophe Simonis e941c0f77c [MERGE] forward port of branch 8.0 up to 18a0ba3 2015-04-17 15:23:43 +02:00
Martin Trigaux 18a0ba302b [MERGE] forward port of branch saas-3 up to a939efd 2015-04-17 14:40:19 +02:00
Martin Trigaux a939efdb3f [MERGE] forward port of branch 7.0 up to 21d3be8 2015-04-17 14:23:21 +02:00
Alejandro Santana 21d3be87b3 [FIX] tools: image size as power of 2
Backport of 6a8f395
Fixes #5677
2015-04-17 14:17:19 +02:00
Alejandro Santana 5cfa96abc1 [CLA] Corporate CLA: anubia 2015-04-17 14:04:02 +02:00
mge-odoo 13d53e7fa9 [FIX] account : invoice_date should be called date_invoice 2015-04-17 13:26:24 +02:00
mge-odoo f7cfd60351 [ADD] account : add price_subtotal_signed to account_invoice_line
For performance we store the price_subtotal in the company currency signed according to the invoice type ('in_invoice' or 'out_refund' is -1).
2015-04-17 13:13:07 +02:00
Christophe Simonis 63f2c13a87 [MERGE] forward port of branch 8.0 up to 2492503 2015-04-16 19:40:48 +02:00
Christophe Simonis 2492503dcc [MERGE] forward port of branch saas-3 up to 50665b4 2015-04-16 19:25:53 +02:00
Christophe Simonis 50665b499a [MERGE] forward port of branch 7.0 up to d0ef1b9 2015-04-16 19:13:56 +02:00
Jérome Maes c2bc1f1450 [FIX] im_chat : smiley size should not be apply to avatar 2015-04-16 17:47:11 +02:00
Goffin Simon bd82569d51 [FIX] website_quote: online quotation
To show the translation linked to an order, the controller "/quote/<int:order_id>" must consider the context to browse
the order_id.

opw:632349
2015-04-16 15:30:38 +02:00
dhr-odoo d0ef1b938d [FIX] Fixed wrong digits format issue for float fields when thousand separator is '.'
The function was returning the number value directly before proceeding to any formatting.
2015-04-16 15:30:20 +02:00
Martin Trigaux 55f9cbf9c7 [FIX] hr_timesheet_invoice: description of invoice
Partial backport of 4d912af without the group by partner part. Do not forward
port above saas-6.

The generation of invoices from analytic lines was messy and mixed the
description of lines (e.g. redundant message when same product is invoiced twice
with different user, see opw 633047). Grouping was not consistent.
In 4d912af, grouping by partner was added with a refactoring of the grouping
method. Backport the second part only to get cleaner grouping and avoid mixing
messages.
2015-04-16 14:55:21 +02:00
David Monjoie cd94f10e1d [FIX] base: fixed display of address in IE11
Spiritual backport of 5de677208c
which should have been fixed in 7.0 back then.
2015-04-16 14:27:12 +02:00
Martin Trigaux 58a481329e [FIX] point_of_sale: child taxes computation
The box "Tax on children" was ignored in the pos, leading to 100% taxes for these
taxes (as amount is 1.0 on these taxes).

Add child tax fields when loading the pos to be able to correctly compute
recusively the tax amount on children.

Courtesy of Jean-Nicolas Brunet
Fixes #1515, lp:1231574, opw 622143
2015-04-16 09:33:53 +02:00
Jean-Nicolas Brunet a6ef1a7c72 [ADD] CLA for jnbrunet 2015-04-16 09:22:51 +02:00
Goffin Simon 57c1b07ebf [FIX] sale: Wrong invoice settings
On a sale order for a customer A where the invoice address is the address of the customer B,
the payment term, the receivable account and the fiscal position must be set from customer B
which is the partner invoice.

opw:630962
2015-04-16 08:50:07 +02:00
Goffin Simon 397892a6c8 [FIX] account: invoice_form for button invoiced
Button "invoiced" only shows customer invoices. The form view used must be
"invoice_form".

opw:632853
2015-04-15 17:48:17 +02:00
Goffin Simon a5a797d0a6 [FIX] web_kanban_sparkline: Floating format
The format of a float value must consider the language of
the user.

opw:632348
2015-04-15 17:40:04 +02:00
Goffin Simon 3b6eae8b1e [FIX] sale: Sales Team GaugeEq
In Sales Team, the value shown when the cursor is over the gauge for Sales Orders
must not include the taxes.

opw:632348
2015-04-15 17:40:03 +02:00
Akash Balar 58fab75208 [FIX] CRM : won and lost stages are not required to be folded anymore
The domain was inconsistent with the error message.
2015-04-15 17:38:04 +02:00
Rucha Dave 3b58ee833e [IMP] stock: description of serial numbers empty list
The description was still making reference to available filter which is no
longer present in version 8. opw 617807
2015-04-15 17:35:48 +02:00
Jérome Maes bbba261ec6 [FIX] im_livechat : remove async attribute for internal livechat lib
The internal livechat loader should not be loading in a asynchronous way, since it depends on the other assets bundle included in a odoo website page. Sometime (depending on the browser cache), this triggered a 'TypeError' when executing 'new openerp.im_livechat.LiveSupport', since 'openerp' was 'undefined'. This was introduced with b03b7280b3.
2015-04-15 17:12:44 +02:00
Martin Trigaux 884864c40f [FIX] account: do not show empty partners in manual reconciliation
When doing a manual reconciliation, the current filter could restrict the
visibility of move lines and show empty results for some partners (e.g. filter
the lists on only one partner will show empty list of moves for other partners).
This is also the case for multicompany restrictions.
Integrate the current filter to the search to only get results for displayed
lines.
Fixes #3817, opw 618134
Fixes #5221, opw 632095
2015-04-15 17:10:01 +02:00
Jérome Maes f8be7105e3 [FIX] im_livechat : starting a conversation can be done by an identified user (ie: a portal user).
The bus channel will still be public (using the uuid), but access to the message history and session information should be with the authenticated user and not the anonymous one. There is no anonymous name, and the request.session is used to identify the user.
2015-04-15 17:04:53 +02:00
Jérome Maes e10820f354 [FIX] im_chat : add security access rules for portal user. This allow portal to chat in the frontend with the livechat. Otherwise, they never see any messages sent or received. 2015-04-15 17:03:49 +02:00
Denis Ledoux 5fb717a971 [FIX] account: display name field in supplier refunds
The name field contains the refund reason.
The reason is filled when you create the refund
from the refund wizard available when
pressing "Ask Refund" on a supplier invoice.

As this field wasn't visibile on the supplier
invoice form, this wasn't possible to change
the reason on draft supplier refunds after
having created them through the wizard, while
you could change your mind or having done a
silly mistake in the wizard, that you could
edit since the invoice is stil draft.

This was also not possible to set a reason
when creating the refunds without going through
by the wizard.

This was also not possible to change the reason
when you duplicated your supplier refunds.

opw-632756
closes #6301
2015-04-15 17:00:25 +02:00
Jeremy Kersten fe4df440a0 [FIX] base: disable cache in dev mode for read_template
Without it, the xml template are not refreshed when file is changed.

A better way will be to invalide cache when XML file is modified.
Same way that we restart the server when a python file is updated.
2015-04-15 16:32:16 +02:00