Commit Graph
103231 Commits
Author SHA1 Message Date
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
Christophe Simonis 6339bae875 [FIX] stock_landed_costs: correct rounding tests
Previous forward-port (17b6191a02) includes
new tests (added by eb26694e0f) which are
now broken because quants with a cost of zero are forbidden.

Force a standard_price on created product to avoid this situation.
Adapt quants cost values.

Also change references of accounts and journals on records.
2016-04-20 19:17:34 +02:00
Géry Debongnie ab8a93c852 [FIX] web: fix dataset to avoid race conditions
The read_slice method in dataset is problematic, because it alters the
dataset ids.  So, if 2 consecutive read_slice are started, but the first
one ends after the second one, we don't have the correct ids in the
dataset.

This commit just make sure that previous read_slice do not alter the ids
of the next read_slice.
2016-04-20 17:20:25 +02:00
Géry Debongnie b893342007 [REV] web_kanban: reverts 9b54b04 and 6859c8da
These 2 commits in kanban view fixed 1 bug by introducing a few other
severe bugs. The tradeoff is not worth it, especially when it is
balanced again deleting some contacts in your database.
2016-04-20 17:20:25 +02:00
Denis Ledoux d57623023b [FIX] website_form: handle date & datetime
Adding date & datetime inputs in the website
form builder couldn't work, because
the posted values for these input
types were not treated at all,
and they were not in the format
the date/datetime were stored in database.

opw-672674
2016-04-20 16:19:25 +02:00
oihane 630f3d566f [FIX] hr_timesheet_invoice: fully qualify grouped fields in SQL view
Avoids name collisions when custom columns are involved.

Closes #11743
2016-04-20 16:13:13 +02:00
Christophe Simonis 17b6191a02 [MERGE] forward port of branch saas-6 up to ff3a731 2016-04-20 16:06:57 +02:00
Joren Van Onder bbaf956328 [IMP] point_of_sale: make pos.config use active instead of custom state
pos.config had a special state field that mimiced what we usually do
with an 'active' field. The concepts of 'inactive' and 'deprecated' seem
to have never been fully worked out, as both of them resulted in the
same behaviour.
2016-04-20 15:46:04 +02:00
Joren Van Onder f1598883ab [IMP] pos_restaurant: make floor editing more touchscreen friendly
Before this the table edit handles where quite small. This was no
problem when editing a floor layout with a mouse or perhaps with a
stylus on a touchscreen. It was however very difficult to do with your
finger on a touchscreen.

This increases the size of the handles by a factor of 3. To make room
for this the 4 handles on the sides (non-corner ones) have been removed
on square tables since you can technically do any operation you want
with just the corner handles. The only functionality we lose is resizing
a table while constraining it's width/height, but if such fine grained
control is needed then the tables can still be edited in the backend.
2016-04-20 15:26:59 +02:00
Christophe Simonis ff3a73195e [MERGE] forward port of branch 8.0 up to b112631 2016-04-20 15:17:55 +02:00
Christophe Simonis a255a6f6a4 [MERGE] forward port of branch 8.0 up to eb26694 2016-04-20 15:15:47 +02:00
Mansi Gandhi 9d5b09fc09 [IMP] auth_signup: connection state label
Change the label of active state label from Activated to Confirmed. Indeed
it indicates the user logged itself at least once. Active / Inactive is
controlled through the active field. An user that logged once is non labelled
as confirmed.
2016-04-20 14:45:59 +02:00
Shivam Dudhat 8466081792 [MIG] base_vat: new API 2016-04-20 14:45:04 +02:00
Shivam Dudhat a7250766dc [REF] base_vat: rearrange files
Also split views into two files, one for res.partner and one for res.company.
2016-04-20 14:45:04 +02:00
Nicolas Martinelli b112631bef [FIX] stock_landed_costs: precision
Oversight of commit bd025cda.
I'm an idiot, I should have checked that another solution was applied
from 9.0 with accounting refactoring. We apply it here as well.
2016-04-20 14:05:32 +02:00