Commit Graph
103218 Commits
Author SHA1 Message Date
Goffin Simon 2c0529858f [FIX] point_of_sale: float format
The POS must adapt the float format according to
the language of the user. Inspired from 1da5d89ba3

opw:639567
2015-05-21 10:24:50 +02:00
xmo-odoo 6de6662ecb Merge pull request #6789 from savoirfairelinux/7.0-fix_account_move_line_exception_translation
[FIX] incorrect translation marking
2015-05-21 10:14:40 +02:00
Goffin Simon 5a10903e9b [FIX] point_of_sale: float format
The POS must adapt the float format according to
the language of the user. Inspired from 1da5d89ba3

opw:639567
2015-05-21 09:02:13 +02:00
Denis Ledoux 49cb46fb78 Revert "[FIX] fields: digits() computation"
This reverts commit eeedd2d9f5.

This revision introduces an issue more serious than the ones
it fixes. This is no longer possible to receive an email
aimed a sale.order thread with catchall.

To reproduce the issue:
 - Create a new sale order
 - Send a message in the thread to the customer
 - Reply to the mail received in the customer mailbox
 - Traceback, AttributeError: digits

 opw-640370
2015-05-20 19:13:04 +02:00
Jigar Patel 946d245c2b [FIX] website_livechat: Pass correct name of class in super method to solve traceback on publish button 2015-05-20 18:32:28 +02:00
Paramjit Singh Sahota 68dbacac1e [IMP] event, event_sale, website_event, website_event_sale : clear registration badge handeling
Now,
- event contains the HTML badge fields and the report (and report templates) to print badges
- event_sale add the ticket type on badges
- website_event allow the edition of badge throught website editor.
When the editor will be available in backend, event will be allow to edit badge report, so the action should be moved from website_Event to event module.
2015-05-20 17:56:37 +02:00
Joao Alfredo Gama Batista 2e123fbb85 [FIX] Fix exception translation 2015-05-20 11:22:25 -04:00
Nicolas Martinelli ba896aabe7 [FIX] stock: if cost_method of a product is 'average' do not round the currency conversion
This prevents rounding errors if product decimal precision is different from
currency precision.

Fixes #6547
opw-634390

Do not fowardport since already done in v8.0:
https://github.com/odoo/odoo/blob/8.0/addons/stock_account/stock_account.py#L310
2015-05-20 17:00:37 +02:00
Nicolas Martinelli 9c6ae3cf6c [FIX] mrp_operations: adapt the date_planned of the WO when date_planned of MO is changed
Changing the scheduled date (date_planned) of the MO triggers a computation
of the scheduled date of the associated WO in order to keep the data
consistent.

Fixes #6694
opw-639771
2015-05-20 16:57:09 +02:00
Denis Ledoux 7d69759e73 [FIX] calendar: display event reminders
This issue is related to 4f03a6224d.

The above revision aimed to not fetch uselessly fields values

The thing is, `partner_id` of `get_next_potential_limit_alarm` method
expects a partner id, while partner['id'] is actually a user id.

The `partner_id` of the user must be taken, not the user id itself.
2015-05-20 15:49:36 +02:00
Denis Ledoux 54a90179bb [FIX] expression: ensure tuple to compare leaf with TRUE/FALSE leaf
When setting a custom filter with as domain
[(0, '=', 1)]

the domain was rejected, because (0, '=', 1) wasn't
considered as a valid leaf, while it is.

This is because the Javascript converts this domain
using list instead of tuple
[(0, '=', 1)] -> [[0, '=', 1]]

And therefore, comparing the "list" leaf
to the TRUE/FALSE leaf tuple failed.

Ensuring "element" as a tuple solves the issue.

opw-640306
2015-05-20 15:33:35 +02:00
Josse Colpaert 3daebb6cca [FIX] Tax_ids should be passed in onchange 2015-05-20 15:25:08 +02:00
Nicolas Lempereur 4e8f84053d [FIX] pos_restaurant: changed unit caused issue on splitting
Commit 0fd51c2e6 changed the unit rounding from units from 1 to 0.001,
it was done mainly because it's the default unit and in the interface we
see quantities with 3 decimals after the floating point, so people might
expect to be able to set floating point quantities.

This change caused an issue when splitting a bill in the pos restaurant,
instead of a click being a piece of the product, it was 0.001 part of a
product.

This fix overrides the rounding of units in this case.

closes #6780
opw-639865
2015-05-20 14:25:24 +02:00
Martin Geubelle 9f169a23bc [FIX] web_kanban : typo (toogle --> toggle) 2015-05-20 13:48:26 +02:00
Denis Ledoux 75aa699f62 [MERGE] forward port of branch saas-3 up to 6026c2f 2015-05-20 13:41:03 +02:00
Denis Ledoux 6026c2f4d0 [MERGE] forward port of branch 7.0 up to cc61d46 2015-05-20 13:39:39 +02:00
Martin Geubelle e70a7aa355 [ADD] sale : new mobile-friendly kanban for one2many sale.order.line in form view of sale.order 2015-05-20 13:18:38 +02:00
Thomas Groutars 7b306fc17a [IMP] stock: improve detailed transfer performance
Transfers were slowed because of the continuous
computation of pickings remaining quantities.

This revision delay the computation at the end of the transfer,
so the computation is performed only once, and it
therefore leads to a huge performance improvment.

opw-634416
2015-05-20 13:07:24 +02:00
Denis Ledoux 453b373a68 [FIX] report: datetime already imported, differently
This rev. is related to 439cdb6871.

The module datetime was already available in the reports,
and it was the entire datetime module that was imported,
not just the class.

This rev. is not recompatible with 439cdb6871,
but there is no other choice, since other existing
reports might already expected the datetime module
and not the class

opw-640299
2015-05-20 12:19:29 +02:00
qdp-odoo f366bda9a7 [IMP] account: set the date_maturity field on account.move.line as required for the sake of being more explicit, and having the aged receivable/payable reports that work 2015-05-20 11:56:51 +02:00
Denis Ledoux db3e5716b3 [FIX] ir_attachment: write traceback to logs when upload fail
When the upload of an attachment failed,
e.g. for access rights reasons,
the traceback wasn't written or returned anywhere,
preventing the easy debugging.

opw-640242
2015-05-20 11:09:05 +02:00
Denis Ledoux ac92551406 [FIX] ir_attachment: hide Attachments > Add/Delete if not write access
To be able to see record attachments, you need to have
read access to the record.

To be able to add or delete attachment, you need to
have write access to the record.

The button add/delete were displayed as soon
as you had the read access, but if you had not the
write access, both buttons failed.

This revision do not display the add/delete
buttons of Attachment dropdown menu if you do not
have the right to add / delete attachments to the record
(you do not have write access to the record)

opw-640242
2015-05-20 11:08:19 +02:00
Martin Geubelle 72dba4f051 [IMP] account, account_reports, account_batch_deposit : improve kanban dashboard view to fit with new design 2015-05-20 10:59:02 +02:00
Martin Geubelle f1906d704b [REM] web_kanban_sparkline: module and dependencies (project, sale, sales_team, stock, mass_mailing)
The module was not used anymore.
2015-05-20 10:41:01 +02:00
Nicolas Martinelli 0fcb15c797 [FIX] payment_adyen: wrong error message
opw-640208
2015-05-20 10:17:28 +02:00
Christophe Simonis eeedd2d9f5 [FIX] fields: digits() computation
Ensure we always have an valid cursor when determining `digits()`.

fixes #6605, fixes #6650
2015-05-19 19:59:10 +02:00
qdp-odoo 8e854f587c [FIX] account, dashboard: wrong figures for graph and amounts in bank journal kanban box if there were several statements on the same day 2015-05-19 17:09:04 +02:00
qdp-odoo 9b4075bd0a [FIX] l10n_generic_coa: added tags for cash summary report 2015-05-19 17:09:04 +02:00
qdp-odoo 0dd04fa150 [REF] account: removed 'date' field on account.payment object (using payment_date is enough) 2015-05-19 17:09:04 +02:00
Thibault Delavallée 1b9dbfae21 [FIX] mail: missing decorators, leading to old API / new API
mismtach.
2015-05-19 16:05:33 +02:00
Thibault Delavallée 63f435a1d0 [FIX] mail: mail_template: fixed create_action method that creates the
more menu action linked to an email template.

[TESTS] mail: added a test for this method.
2015-05-19 16:05:33 +02:00
Thibault Delavallée 83aeb687bc [FIX] mail: chatter: call a multi method using a list of ids, not a single id. 2015-05-19 16:05:32 +02:00
Thibault Delavallée 9d3a5ec72a [IMP][FIX] mail: tests: updated mute loggers (moved files) + added loggers were necessary. 2015-05-19 16:05:32 +02:00
Géry Debongnie f3b46459f3 [REVERT] web: form_relational_widget: remove unused javascript code
This reverts commit 6c0376e932.
It turns out that this javascript code was not unused after all.
(see kanban view inside customers, clicking on them should open the
contact in a popup)
2015-05-19 15:08:20 +02:00
Jigar Patel d403c9acfd [FIX] website: Open edit menu dialog 2015-05-19 14:33:45 +02:00
Goffin Simon cc61d467fa [FIX] purchase: validate invoice
A user that has the rights in Accounting & Finance equal to Invoicing & Payments
must have the right to validate a supplier invoice.

opw:634601
2015-05-19 14:14:07 +02:00
Nicolas Martinelli c0deb1f726 [FIX] sale_stock: check if moves are already done when cancelling a SO
It prevents to cancel a SO for which moves are already done.

opw-634415
2015-05-19 14:12:26 +02:00
Josse Colpaert de1556ac7e [FIX] stock_account: Post install should check for all companies and not always create
The method will check all companies with a chart of account if they have a property for the stock journal.
If there is no stock journal it will create one.  Previously it created only one for the main company and this
gave an error when updating the module again
2015-05-19 14:03:11 +02:00
Bhavik Bagdiya 4716664d9e [FIX] hr_expense: wrong domain 2015-05-19 13:50:31 +02:00
Raphael Collet 49c614e9e1 [FIX] fields: an inherited required field is expected to be required 2015-05-19 13:40:30 +02:00
qdp-odoo 51f185b77b [ADD] account_batch_deposit 2015-05-19 13:37:59 +02:00
Raphael Collet 0b35f267d2 Merge pull request #218 from odoo-dev/master-ormcache_new_api-rco
[MERGE] ormcache: improve API to enable the decoration of new-api methods

The new signature of `ormcache()` is more intuitive: simply list the names of the method arguments that compose the cache key. The decorators `ormcache_context()` and `ormcache_multi()` have been adapted accordingly.
2015-05-19 11:40:46 +02:00
Denis Ledoux bac5b87b73 [FIX] calendar: update cron as SUPERUSER.
As regular employees are not allowed to
alter cron activities.

opw-639419
2015-05-19 11:04:30 +02:00
Denis Ledoux f66b7ee62a [MERGE] forward port of branch saas-3 up to 70f2225 2015-05-19 10:28:30 +02:00
Denis Ledoux 70f22254f5 [MERGE] forward port of branch 7.0 up to 335a8af 2015-05-19 10:26:33 +02:00
Raphael Collet 8db2833a1e [IMP] ir_ui_menu: make it use ormcache instead of a home-brewed cache 2015-05-19 10:07:02 +02:00
Raphael Collet 4b7dd0f759 [IMP] decimal_precision, ir_rule, ir_ui_view: simplify ormcache invalidation
The patch speeds up the cache invalidation in the registry, and make most
models use the generic method `clear_caches` instead of specific `clear_cache`
methods.
2015-05-19 09:59:42 +02:00
Raphael Collet a286b9380c [ADD] ormcache: add a unit test 2015-05-19 09:59:42 +02:00
Raphael Collet ede4304790 [IMP] adapt all calls to ormcache() to its new API
This fixes a bug on some methods.  Because `ormcache` uses the decorator
`decorator`, the `context` argument is passed positionally to the decorated
lookup method, instead of being passed as a keyword argument.  As a
consequence, the context dictionary is included in the cache key, which makes
the cache lookup fail all the time.

Using the new API of `ormcache` gracefully fixes this issue.
2015-05-19 09:59:42 +02:00
Raphael Collet 8d4fb747d4 [FIX] ormcache_multi: adapt its API and implementation to ormcache 2015-05-19 09:59:42 +02:00