Commit Graph
103345 Commits
Author SHA1 Message Date
Adrien Peiffer (ACSONE) 600f884524 [FIX] account: Allow to select sale taxes in bank statement reconciliation process. Courtesy of adrienpeiffer. PR #11673 2016-04-22 15:25:10 +02:00
qdp-odoo bf33c4ea0c [FIX] account: bank statement reconciliation with taxes use case. The journal item for the bank should have the same amount as in the statement line except in case of already recorded payments only. Ticket 673358 2016-04-22 15:03:58 +02:00
Jérome Maes 0fcbff389c [FIX] hr_recruitment, website_hr_recruitment : compatibility method
Duringthe migration, backward v7 compatibility were removed, but
there were still used in inherited modules.

This commit fix this problem by using the new method names.
2016-04-22 14:49:44 +02:00
Jérome Maes d0459de338 [FIX] google_calendar : sync with google button not bound
Commit 002660a9b0 remove 'view_loading' method, but doesn't adapt this code.
2016-04-22 14:49:35 +02:00
Levent Karakas f5b7d2ef4f [IMP] base: remove old Turkish lira
No longer in usage since 2005, replaced by TRY.
Closes #10424
2016-04-22 14:16:59 +02:00
Olivier Dony 7b1c208d5f [MERGE] Forward-port 9.0 up to d29ca90c75 2016-04-22 13:52:14 +02:00
Levent Karakas 7c584d3ebb [FIX] sale: untranslated label
attribute string is translatable on a search filter, not name (which is used as fallback label
Closes #10419
2016-04-22 13:49:12 +02:00
Tanguy Charlier 67c7d45ea8 [FIX] project_timesheet: Missing 'fields' argument in search_read
* It is always better to restrict the read to the fields that are actually needed
* In this particular case, since _get_task is called during the create() of an an analytic line with task_id set,
it would result in reading the analytic line being created, which will overwrite the cache for stored computed fields with wrong empty values.
Restricting the fields to read means that computed fields are not read and keep their appropriate values
2016-04-22 13:44:57 +02:00
Ranjit Pillai 989bccca45 [MIG] crm_project_issue: migrate into new api
Part of the code was refactor by applying `self.ensure_one()`,
and removing the loop 'for'.
2016-04-22 13:31:12 +02:00
Ranjit Pillai ee566f6042 [MOV] crm_project_issue: split files according to models 2016-04-22 13:31:12 +02:00
Ranjit Pillai c804a61ac0 [MOV] crm_project_issue: reoganize module directories 2016-04-22 13:31:12 +02:00
Aaron Bohy d29ca90c75 [FIX] im_livechat,mail: address livechat sessions with their unique ID 2016-04-22 13:20:50 +02:00
Aaron Bohy 5b5100b3da [FIX] web_kanban: many2many tags only displayed the first time
This bug was a consequence of commit 6c57935 which introduced a JS cache of
stuff like actions, fields_view... The fields_view being modified in place by
the kanban_view (which is obviously not a good practice), it was able to
identify its many2many fields only the first time the view was displayed, as
from the second time, it received an already processed version of the
fields_view in which is wasn't able to identify many2many fields. Thus, those
fields were only displayed the first time the view kanban view was displayed.
2016-04-22 12:07:07 +02:00
Géry Debongnie d65d251c57 [IMP] base, web: add type=fullscreen to ir_actions
With this commit, actions can have a type=fullscreen.  This means that
the navbar will be hidden, for the action and for all subsequent actions
open in the breadcrumb

There is no real security behind this, this is just a feature for
convenience, so users can bookmark an url an open some action in a way
that they are not distracted by anything.  In short, this is some kind of
light 'kiosk' mode.
2016-04-22 11:03:21 +02:00
Nicolas Lempereur 7c6c188031 [FIX] account_extra_report: operator precedence typo
opw-675734
2016-04-22 10:48:23 +02:00
Aaron Bohy 0e46d35bf6 [FIX] web: hide translate button of invisible fields 2016-04-22 10:27:20 +02:00
Aaron Bohy b871e3adbb [FIX] point_of_sale,website_sale: form view layout (avatar)
Classname 'oe_right' was overriden by 'oe_avatar' before rev. 6768bbf, and thus
the images were displayed on the left of the sheet. Since rev. 6768bbf, the
'oe_right' takes the priority over 'oe_avatar' as it should. This commit
restores the layout of these two form views as it was before 6768bbf.
2016-04-22 10:17:38 +02:00
Levent Karakas 9d445442ef [FIX] mail: mail template translation
Do not match with source
Closes #11789
2016-04-22 09:09:34 +02:00
Nicolas Martinelli 6f8030a6f7 [FIX] sale: keep all client ref
During batch invoicing, the client reference kept is only the reference
of the first invoice.

opw-673188
2016-04-22 08:36:12 +02:00
Aaron Bohy b0f3146d5e [REM] web: forgotten base.sass/css
base.css is unused since rev. 6768bbfcc0
2016-04-22 08:31:48 +02:00
Nicolas Martinelli e9ed86c177 [FIX] account: terminology
'Write-Off' is not an appropriate label when the payment is reconciled.
A write off (aka. bad debt) is when I emitted an invoice, delivered a
service, and never got paid for it entirely.

opw-672716
2016-04-22 08:18:28 +02:00
Denis Ledoux 28e0a1771c [FIX] ir_qweb: regression of 8395f0d217
This revision corrects a regression introduced by
8395f0d217:
the possibility to call
`ir.qweb.field.datetime`.`value_to_html` with
a datetime string directly, instead of calling
`ir.qweb.field.datetime`.`record_to_html`
(which call `value_to_html` as well).

opw-675427
2016-04-21 18:35:25 +02:00
Olivier Dony ee804e1d32 [MERGE] Forward-port 9.0 up to 74d8cbc190 2016-04-21 18:05:14 +02:00
Denis Ledoux 8395f0d217 [FIX] website_event: event dates within event timezone
The dates of an event on the website was always
within the user timezone. If not signed in,
it was within the public user timezone
(which is quite not user-friendly to change)

For this purpose, we weed get the context
from the record (the context used when using
`record.with_context`), and therefore
the QWeb field
`ir.qweb.field.datetime` is slightly altered,
to use the context from the record.

opw-675427
2016-04-21 17:52:36 +02:00
Olivier Dony 74d8cbc190 [FIX] mail: fix bounce email addressing
- The "From" should not be the administrator user but
  the postmaster/system, and should be an address that
  ignores double-bounces. Using the default bounce
  email accomplishes both.

- The "To" recipient should be the "envelope from"
  sender when available, usually as provided by
  the "Return-Path" header set by the upstream MTA.
  If not present, fall back to the "From" of
  the original email.

- adapt tests to verify the behavior wrt Return-Path
2016-04-21 17:26:45 +02:00
Fabien Pinckaers 3f43d3056b [FIX] hr_expense: expenses paid by the company should be posted on bank journal
opw-674409
2016-04-21 16:31:25 +02:00
Raphael Collet 9fba75bd54 [FIX] web_editor: save translation values as HTML or XML fragment
The translation value is given as an HTML fragment.  It is converted to a valid
XML fragment if the translation's field requires it.
2016-04-21 16:14:34 +02:00
Goffin Simon 7f05692cb9 [FIX] account_asset: compute depreciation board
From af61494
Allow to compute the depreciation when the asset is in state: draft
2016-04-21 16:12:32 +02:00
Nicolas Martinelli 3b19fa426b [FIX] web_kanban: long names un header
When the stage name is too long, the column header is messed up: the
'Settings' and the 'Quick Add' icons are located outside of the column.

The fix is to truncate stage names when they are too long.

opw-672710
2016-04-21 15:38:16 +02:00
Denis Ledoux 70494d894e [FIX] account: Dashboard invoices refunds link
When clicking on the "Refunds" link of a
Sale / Purchase invoices journal,
creating a new invoice did not create
a new refund invoice, but a normal invoice.

opw-675408
2016-04-21 15:28:54 +02:00
Aaron Bohy 6768bbfcc0 [MERGE] *: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis.
Enterprise features stay in enterprise, but use that common basis.

In web, mainly:
 - JS refactoring and linting
 - Conversion of .sass into .less split into multiple files
 - Templates cleaning and DOM simplification
 - Re-generation of web.pot, and update of .po files

Minor tweaks in some other addons to make them work with this new structure.
2016-04-21 15:21:42 +02:00
Aaron Bohy 8e440b173e [FIX] point_of_sale: /web/pos layout
The POS interface instantiates a web_client and mimics its layout for the
action manager to correctly append the action. This needed to be changed due
to preceeding large refactoring of web, as the actions are now appended in
a div with classname 'o_main_content'.
2016-04-21 15:21:41 +02:00
Aaron Bohy 9217fef09e [FIX] im_livechat: wrong path to variables.less in enterprise
File variables.less is located in web/ in the community edition, but in
web_enterprise/ in the enterprise one.

This fix uses the template 'web.less_helpers' containing the correct version of
variables.less instead of directly include variables.less and utils.less.
2016-04-21 15:21:41 +02:00
Aaron Bohy ffb4b670e8 [FIX] pad: display oe_pad field even if empty
as it prints the helper saying that the pad will be initialized
on first edit.
2016-04-21 15:21:41 +02:00
Aaron Bohy aebc17f22a [FIX] addons: .less compatibility between both web clients 2016-04-21 15:21:40 +02:00
Aaron Bohy 977db823c7 [REF] web: stop duplicating web
Avoid duplicating web addon in enterprise by extracting a common basis.
Enterprise features stay in enterprise, but use that common basis.

Mainly:
 - JS refactoring and linting
 - Conversion of .sass into .less split into multiple files
 - Templates cleaning and DOM simplification
 - Re-generation of web.pot, and update of .po files
2016-04-21 15:21:39 +02:00
vbh-odoo e1bfd3fbda [MIG] base_action_rule: Test cases improved with messages 2016-04-21 14:52:50 +02:00
vbh-odoo e658fd6e1d [MIG] base_action_rule: Migrated to new API
This commit provides some code simplifications, the complete
migration into new api.

Thanks to rco-odoo for the review, and code improvements.
2016-04-21 14:52:50 +02:00
vbh-odoo 245f2f9101 [REF] base_action_rule: reorganized module directory
We keep tests models in tests/ directory because
these models are not pertinents for business.
The rest of the directory follows the guidelines.
2016-04-21 14:52:49 +02:00
Denis Ledoux db699e86b4 [FIX] mail: Missing translation Send a message to the group
The above string was not translated, when creating a new
discussion group, in the group message input placeholder.

opw-673712
2016-04-21 14:16:40 +02:00
Thibault Delavallée 8ddb6c23a9 [FIX][IMP] stock: product: product_available
When computing the domain to find the product available data, a special case
is currently managed when doing a child_of in locations. Indeed computing
product available data requires to check its related quants. It is possible
through the context to limitate the search to a given set of locations.

The location_id field on stock_quant model is set as auto_join. However the
use of auto_join with the child_of operator is currently not supported by
the ORM. Those parts are converted into (id, in, ids) equivalent domain leaf
that can be costly due to quants table being quite large. The existing code
in product.py therefore tries to manually optimize the quant computation
by computing manually domain with child_of, using parent_left and parent_right.

However there are some cases when parent_left and parent_right can be 0
notably in update mode. However the current code does not correctly take
into account some location not having parent left / right and other having
a parent left / right being still 0 because still not computed. This commit
fixes that, allowing the correct computation of available product data in
update mode.

This limitation has been spotted when migrating stock to the new API. Indeed
unit tests have been added. In those tests product available info was not
correctly computed. Those tests will come when merging the new API version of
stock.
2016-04-21 14:12:39 +02:00
Nicolas Martinelli d951a7d5ee [FIX] stock_account: stock history view
The stock history doesn't take into account internal moves. For example,
in the following situation:
- Receive 1000 products to Internal Warehouse 1
- Move these 1000 products to Internal Warehouse 2

The 1000 products are still recorded on the Internal Warehouse 1.

opw-672277
2016-04-21 11:24:49 +02:00
Denis Ledoux 9dd373d132 [FIX] calendar: Partial revert of b7e393a71a
The above revision allow to edit an event with a start date
greater than the stop date.

This issue was solved by the revision
6c78541978
that the above revision reverts.

The reason why the constraint on
`event.start` and `event.stop` was replaced
by a constraint on
`event.start_datetime` and `event.stop_datetime`
and
`event.start_date` and `event.stop_date` are explained
in 6c78541978:
Basically, `start` and `stop` are computed fields,
that are not recomputed in time, before the constraint is checked.

Besides, the revision b7e393a71a
re-set the constraint on `start` and `stop`, but forget
to replace the fields in the constraint definition:
```
(_check_closing_date, 'Error ! End date cannot be set before start date.',
['start_datetime', 'stop_datetime', 'start_date', 'stop_date'])
```

opw-673297
2016-04-21 11:06:46 +02:00
pvy a3a8bfb060 [ADD] l10n_fr: added tags to differentiate Salaires from Charges Sociales 2016-04-21 10:39:11 +02:00
Goffin Simon 0287c1e1b3 [FIX] account_asset: deferred_revenue_category_id and asset_category_id
When creating an customer invoice with a product linked to a deferred revenue
category, the account used in the invoice line must be the account_asset_id.

When creating an vendor bill with a product linked to an asset
category, the account used in the invoice line must be the account_depreciation_id.

opw:22157
2016-04-21 10:21:27 +02:00
Nicolas Lempereur 8388b12b1e [FIX] l10n_fr_fec: fix unwanted NULL values
An account.move.line could be not linked to a partner.

opw-675586
2016-04-21 09:35:12 +02:00
Fabrice Henrion 313a461eaa [IMP] sale: wording
Closes #11766
2016-04-21 08:56:59 +02:00
Nicolas Martinelli e21de5013d [FIX] membership: update membership state daily
This is a complement to commit 6d4a78a2a. The 'invoiced' status should
be removed automatically once the membership is expired.

opw-672259
2016-04-21 08:29:58 +02:00
Nicolas Martinelli c486d9973d [FIX] account: partner in compute_all
The method `compute_all` in new api expects a browse record, not an id.

opw-675428
2016-04-21 08:23:33 +02:00
Nicolas Martinelli 6a473e4565 [FIX] stock_landed_costs: fix the fix of the tests
Commit 6339bae87 fixes the tests, but now the tests are not testing
what should be tested ;-)
2016-04-20 20:02:35 +02:00