Commit Graph
99161 Commits
Author SHA1 Message Date
Christophe Simonis 0baf5f9916 [IMP] core: allow (but still warn) running odoo as root 2015-04-20 16:38:07 +02:00
Martin Trigaux 6262e3479b [FIX] web: onchange on field binary
When setting a value to a field binary, a char field can be set as 'filename'
that needs to be recomputed to specify the new file name.
Before new api, the _internal_set_value method would trigger a onchange but it's
no longer the case now (so onchange on filename field was no longer executed).
Instead, manually set the value using set_value method which do trigger the
onchange.
Fixes #2427, opw 617109
2015-04-20 16:33:55 +02:00
Goffin Simon 1aed46d2a8 [FIX] mail: Work order translation
The action_confirm function losses the context when called by a workflow.
To have the right translation, the lang of the user must be written in the context.

opw:632873
2015-04-20 15:56:48 +02:00
Goffin Simon 0422df2ad7 [FIX] account: general ledger report
The "Progress" column must be renamed in "Balance".

opw:633076
2015-04-20 15:53:38 +02:00
dhr-odoo 056ab55b6b [FIX] Passed bank statement's currency in payment_rate_currency_id of the account.voucher when importing payment lines 2015-04-20 14:28:07 +02:00
Denis Ledoux 3e29e72f37 [FIX] web: priority stars on/off design in modals
When opening a task through a modal, like
when opening the task field of an issue while
being in edit mode, the priority stars
had not the same design than in the
regular task form.

opw-633426
2015-04-20 13:24:55 +02:00
Christophe Simonis 9750c1eae3 [MERGE] forward port of branch 8.0 up to 44059bc 2015-04-20 12:33:31 +02:00
David Monjoie 9fdf06a0f6 [FIX] website_sale: fixed display of variant informations in cart
Prior to this, even if your suggested or optional products were variants,
only the name of the template was shown.
Fixed GitHub issue 2746 and opw 614776
2015-04-20 12:31:52 +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
ado-odoo 2ebbcba33a [FIX] purchase, product: clean messages on price per supplier 2015-04-20 11:53:32 +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
Christophe Matthieu 680a174747 [IMP] web_tests: add a tour to test AbstractManyField widget and one2many and many2many python api communication and on change trigger 2015-04-20 10:51:02 +02:00
Christophe Matthieu b4cb456800 [FIX] web: AbstractManyField: many to one set dataset.ids without use abstract field api. Need to clone the list to avoid the duplicate record on create. 2015-04-20 10:51:02 +02:00
hardik 3c8aafa753 [IMP] hr : employee contact details added to HR kanban view 2015-04-20 10:04:49 +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
Christophe Simonis f5a18a37ca [FIX] website_sale: use correct variable
Error introduced during forward-port at a9471c4
2015-04-18 15:40:08 +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
Christophe Simonis 2328174cfd [FIX] web: session.js: use compatibility layer to avoid Dependency
error.

Better solution welcome.
2015-04-18 14:27:05 +02:00
Christophe Simonis 816953f01c [FIX] web: break dependency cicle. 2015-04-17 19:33:38 +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
Christophe Simonis ca9b344bdc [MERGE] forward port of branch saas-6 up to 8846dcb 2015-04-17 17:41:48 +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
Christophe Simonis 107b589a11 [FIX] *: correct previous forward port
Due to files renaming, some patched should be applied manually to the
correct files.
Forgot to `git add` these files when committing the forward port...
2015-04-17 17:08:17 +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 a9471c43b9 [MERGE] forward port of branch saas-6 up to e941c0f 2015-04-17 15:33:00 +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
Richard Mathot ae1583e086 [REV] revert b25e933a71 2015-04-17 12:14:34 +02:00
Yannick Tivisse b25e933a71 [IMP] website_sale : remove description on cart view 2015-04-17 10:53:22 +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