Commit Graph
106440 Commits
Author SHA1 Message Date
Simon Lejeune 097f46e09a [REF] packaging: debian: depend on python-babel
Before this patch, the debian package depends on `python-pybabel`.
According to the documentation, this is a dummy package for transition
from `python-pybabel` to `python-babel`[1].

This dummy package has thus been removed in debian stretch in favor of
`python-babel`, and the odoo package is thus not installable in debian
stretch.

To fix this, we depend directly on `python-babel`, which is available in
all debian releases[2].

Closes #13905

[1] https://packages.debian.org/jessie/python-pybabel
[2] https://packages.debian.org/jessie/python-babel
2016-10-24 16:22:17 +02:00
Nicolas Lempereur f82ab99c1a [FIX] web: BufferedDataSet write to length field
Underscore method _.each expects an array like object when a
"length" property is present.

This was an issue with a record having a numeric "length" field set
to a non-negative value.

opw-691070
2016-10-24 15:57:43 +02:00
Christophe Simonis df0fada9ca [MERGE] forward port branch saas-11 up to 87b6838 2016-10-24 15:29:58 +02:00
Christophe Simonis 87b683828b [MERGE] forward port branch 9.0 up to 7974cc6 2016-10-24 15:08:35 +02:00
Christophe Simonis e721f3eb99 [MERGE] forward port branch 9.0 up to 4d1fc7e 2016-10-24 15:06:45 +02:00
Simon Lejeune 7974cc6597 [FIX] packaging: windows: correctly include reportlab font files
Without this patch, the fonts are not included and the barcodes in the
reports were not displayed.
2016-10-24 15:02:03 +02:00
Christophe Simonis a18fc55ffc [FIX] account_asset: remove dependency on deleted field 2016-10-24 14:45:45 +02:00
Olivier Dony 4d1fc7e390 [FIX] sale: missing account mapping in advance invoice
The `map_account()` method expects a browse_record as
parameter, and returns a browse_record (possibly the
argument if no mapping happened).

It was being called with an account ID instead, so
fiscal position mapping would never match, and would
always return the argument itself.
2016-10-24 13:58:29 +02:00
Olivier Dony a3d6e7f2ff [FIX] sale: fix recompute of fiscal position
The `fiscal_position_id` field actually depends on both
the `shipping_partner_id` and the `partner_id` field,
not just the former.

Theoretically the recompute should trigger on both fields
anyway because changing the `partner_id` will automatically
change the `shipping_partner_id`.

Unfortunately this onchange chaining does not work as expected
as of Odoo 9, at least when the `partner_id` field is set
to the same value (was done for optimization reasons).
This special case really happens when you edit the Partner
from a sales order form view, and save the changes.
It triggers a "dummy on_change" for the `partner_id`
value, with the same value as before.
If the edit changed the fiscal position or another
field on which it depends, a recompute is really needed.

Adding the direct dependency works around this limitation,
and is semantically valid, too.

An extra fix of this special case in the framework might still
be nice to have, though.

Ref: feedback ID 29042
2016-10-24 13:58:29 +02:00
qdp-odoo b60059f6f3 [FIX] hr_expense: fix errors introduced when forward-porting saas-11 on revision dabf82870a
acc_date was not defined
move's ref should be the sheet's name
date should be given again at the account.move.line level
2016-10-24 13:55:50 +02:00
Nicolas Lempereur 5d17749ff4 [FIX] web: repair length field in view list
Underscore method _.each expects an array like object when a "length"
property is present.

This was an issue with a record having a numeric "length" field set to a
non-negative value. When changing a line the change would not appear on
blur.

This issue was fixed with 0e664c9e9 but introduced back with f0e331e00.

opw-691070
2016-10-24 13:25:58 +02:00
Christophe Simonis dabf82870a [MERGE] forward port branch saas-11 up to 25e0b25 2016-10-24 13:07:46 +02:00
Simon Lejeune 40f1f781bd [FIX] packaging: redhat: use a log file
Without this, odoo log outputs to stdout and is catched by journald. We
force the use of a log file to keep the behavior consistent with the
debian package.
2016-10-24 12:51:52 +02:00
Christophe Simonis 25e0b25508 [MERGE] forward port branch 9.0 up to 6690bfb 2016-10-24 12:48:56 +02:00
Christophe Simonis 6690bfb14a [MERGE] forward port branch saas-6 up to 1d00e32 2016-10-24 12:42:51 +02:00
Raphael Collet ec4b5f5c58 [FIX] account_voucher: 'select=True' should be 'index=True' 2016-10-24 12:27:33 +02:00
Raphael Collet cae04ba1d3 [IMP] fields: add warning for field attributes select and digits_compute 2016-10-24 12:27:33 +02:00
Denis Ledoux 39a8b39a28 [FIX] product: variant name_get for specific providers
This is related to revision
b65c67a259

The field `seller_ids` is a field which is set
on the `product.template`, and this is why
the condition `(x.product_id == product)` is being applied
in the list comprehension searching the current seller
of the product sellers.

The `variant` variable is a string containing
the attribute name of a variant.
Therefore, if a product tempalte has only one variant, without
any attribute (e.g. when you don't use variants),
`variant` will be empty, and therefore the condition
`if variant:` will be `False`, and therefore it won't search
in the product sellers with a specific `product.product`, while it
should, as, even if there are no attributes, there could be a
seller line with this specific `product.product`.

Besides, as we are in the `name_get` of `product.product`, and
not the `name_get` of `product.template`, we are always in the case
of a `variant`, this test is therefore pointless.

opw-682390
2016-10-24 12:04:19 +02:00
Christophe Simonis 1d00e3221d [MERGE] forward port branch 8.0 up to 8f484fd 2016-10-24 11:48:45 +02:00
qsm-odoo 9a75c6d608 [FIX] web_editor: correct ViewEditor widget life cycle
These two fixes are now important since the ViewEditor is now also
used in the backend.

* The start method must return a deferred.
* The destroy method must unbind the event on the document element.

Note: in master, the ViewEditor is being refactored.
2016-10-24 10:52:00 +02:00
qdp-odoo f3a721940c [FIX] hr_expense: don't group accounting entries of hr.expense if several are generated at the same time.
This grouping was causing problem at the time of bank statement reconciliation, if the expenses were set as already paid by the company, since we had only one account.move related to several bank statement lines although the DB structure wasn't allowing such a case (the link was made as a m2o from account.move to account.bank.statement.line where a m2m would have been needed).
2016-10-24 10:22:42 +02:00
Denis Vermylen (dve) dad7036ce2 [FIX] hr_timesheet_attendance: correct attendance computation on timesheets
Attendances (model hr.attendance) that overlapped different dates where not
computed correctly in timesheets (model hr_timesheet_sheet.sheet.day).
The difference in dates was not taken into account.

This commit fixes this issue; attendances are now linked with the check_in date
to hr_timesheet_sheet.sheet.day.
(so 8 hours recorded from 20:00 to 04:00 the next day will be recorded as
 8 hours on the first day)
2016-10-24 09:45:43 +02:00
Nicolas Martinelli 3164ca8962 [FIX] account: define tax base
Make sure tax.base is always defined to avoid traceback.
2016-10-24 09:01:21 +02:00
Odoo Translation Bot e45d402396 [I18N] Update translation terms from Transifex 2016-10-23 03:38:54 +02:00
Odoo Translation Bot 8f484fd137 [I18N] Update translation terms from Transifex 2016-10-23 02:57:47 +02:00
Odoo Translation Bot f74ea276cd [I18N] Update translation terms from Transifex 2016-10-23 00:35:59 +02:00
Simon Lejeune 56d7bf1f46 [REF] packaging: update requirements.txt
closes #13721
2016-10-22 13:37:56 +02:00
David Beal e773c1dce8 [FIX] resource: prevent error when deleting resource.calendar records
Attendance entries should be cascade-deleted along with the parent
record.

Closes #10310
Closes #13044
2016-10-21 19:57:23 +02:00
Raphael Collet bde400ca3e [FIX] account: account tax base computation
In the earlier fix 327f88df, the computation of the amount crashes when the
field `tax_id` is not set.  Simply add an 'if' statement to avoid that case.
2016-10-21 09:46:59 +02:00
Aristobulo Meneses d31bd1feb0 [IMP] account: display totals on float fields
On the Customer invoice, Vendor Bills and Payments list views.
The feature exists for Journal Items and entries, but not on invoices and
payments.

Closes #13915
Fixes #13914
2016-10-20 17:21:12 +02:00
Martin Trigaux 83fb76e4c0 [IMP] point_of_sale: sort report by product name
Instead of undeterministic order on a dictionnary
2016-10-20 16:52:30 +02:00
Denis Vermylen (dve) c952685624 [FIX] mrp_repair: fix repair "workflow"
Workflow was badly removed, before repair invoice method didn't make the stock
moves.

Corrected the issue and made the moves happen always at the end of reparation,
not when the repair reaches the done state (ambiguously named "Repaired").
2016-10-20 15:58:11 +02:00
dut-odoo 9c77467f07 [FIX] l10n_in: taxes tags
There are inconsistencies between the tax tags as defined in the module
and what the reporting expects.

opw-689188
2016-10-20 15:36:36 +02:00
Nicolas Martinelli 53281b5dbf [FIX] payment_stripe: tracebacks
Tracebacks due to key not present in dict, and inconsistent return of
the method.
2016-10-20 15:16:35 +02:00
Nicolas Martinelli bbe9bc4026 [FIX] payment: traceback
Boom boom if `clean_vals` not defined.

opw-691706
2016-10-20 15:14:03 +02:00
Nicolas Martinelli d30dc96750 [FIX] account: aml linked to statement
When fetching the journal items linked to a bank statement, the
counterpart items are not retrievd since they are not directly linked to
the bank statement. It makes the entries look unbalanced.

Closes #13673
opw-690231
2016-10-20 13:50:09 +02:00
Denis Ledoux afc2497a48 [FIX] account: invoice report, advances counted twice
The below revision force the use of `ABS` on the
`price_subtotal_signed` because of a migration issue:
649b289fa1

This leads to issues regarding the advances, in
`out_invoice` invoices, where this amount
`price_subtotal_signed` is negative, and should
remain negative in this report, otherwise
the advance is counted twice: Once with
the advance invoice, and a second in the actual
invoice where the advance is removed with a line
with a negative `price_subtotal`

e.g.
 - A sale order of 500€ without taxes
 - Create an advance invoice for an advance payment of 10%: 50€ without taxes
 - A second invoice with the remaining: 450€ without taxes

In the invoices report, the total without taxes for this customer was
displayed as 600€ (50 + 500 + 50)
instead of   500€ (50 + 500 - 50)

opw-682390
2016-10-20 13:48:01 +02:00
Nicolas Martinelli eb3b6a6f8d [FIX] hr_expense: traceback
`hr.expense` has no attribute `bank_journal_id`, but `hr.expense.sheet`
has ==> boom boom crash

opw-690690
2016-10-20 13:33:58 +02:00
Goffin Simon e69b0d9876 [FIX] account: Currency rate in account.invoice.report
It's more usefull to display the average than the sum for the currency
rate in account.invoice.report

opw:690899
2016-10-20 13:10:28 +02:00
Adrien Peiffer (ACSONE) 8ffc0c9f81 [FIX] Check accounting lock date on account_move cancel.
Lock date should be checked when the user want to cancel an entry.

opw:690899
2016-10-20 12:42:02 +02:00
Nicolas Martinelli 65878a5b85 [FIX] account_asset: posted depreciation line
When the account move line linked to a depreciation line is deleted, the
depreciation is still considered as 'Posted'.

opw-691084
Fixes #13801
2016-10-20 12:38:05 +02:00
Jeremy Kersten a7cdd44c2a [FIX] website: reset_password page resize
The less code that was resizing the login and sign up form container
in v9 was moved to the login form, but not to the reset password form.

https://github.com/odoo/odoo/commit/5b65befcd
https://github.com/odoo/odoo/commit/40c0d542d

This commit closes #13866
2016-10-20 11:17:04 +02:00
Jeremy Kersten 9f9ca39dc0 [FIX] base: fix typo in log function in action server
Migration in new api, remove user_id in the request.
This commit avoid to have traceback: 'ValueError: : tuple index out of range'

This commit closes #13860
2016-10-20 11:09:06 +02:00
Nicolas Martinelli ebf3b3d7a8 [FIX] account: potential traceback
The method `get_by_record` expects a singleton.

opw-691198
2016-10-20 10:46:19 +02:00
Jeremy Kersten c73f7ce358 [FIX] base_import: typo in url for help
This commit closes #13903
2016-10-20 10:44:09 +02:00
Martin Trigaux 26bbfc46f6 [FIX] stock_account: stop comparing apples and oranges
company_currency is a recordset, not an id
Introduced at 19199457

Closes #13707
2016-10-20 09:55:31 +02:00
Goffin Simon feffa2efce [FIX] stock: _search_quantities
The operator and the value defined on each domain filter were not
used in the function "_search_quantities".

opw:690753
2016-10-20 09:37:13 +02:00
Martin Trigaux 326ef2301e [REM] im_odoo_support: remove leftovers of module
Fixes #13900
2016-10-20 09:27:20 +02:00
Christophe Simonis d53bb47163 [FIX] account: workflow are gone in 10.0 2016-10-19 18:51:59 +02:00
Jeremy Kersten 62c0a161ef [FIX] web_planner, account: add support for enterprise module + fix link 'Revenue Recognition'
Now, when the module is not found, instead to display a traceback, we open a popup to upgrade to Enterprise.

That will be wrong in case of outdated / wrong link, but in most cases, it is because it is an enterprise module.

This commit closes #13882

TODO: Remove zindex 1051 on planner in master/saas-14
2016-10-19 18:31:37 +02:00