Commit Graph
101345 Commits
Author SHA1 Message Date
Nicolas Martinelli a4fbaaa776 [FIX] sale_timesheet: fix traceback in write
When calling `write` with more than one id, `_get_timesheet_cost`
generates a traceback since it uses `self.is_timesheet`.
2016-04-19 10:25:41 +02:00
Joren Van Onder 4ff34a98bc [FIX] point_of_sale: adapt to Chrome 50's new handling of cell heights
Forward-port of saas-6 77dae4c9c5.

Chrome 50 treats percent-height divs inside of auto-height cells as
auto [1]. So from now on it's important that an explicit 'height: 100%' CSS
property is set on parent tds, otherwise you'll end up with elements
with a height of 0.

An extra difficulty is that this new height property on
subwindow-container will result in the element being as high as his
parent table. So the collapsed trick doesn't work anymore in the
customer list.

This has to be done conditionally. The proposed workaround of adding
100% height to parents of affected elements causes issues in IE/Edge
because the effect of adding a height in percent to a table-{cell,row}
element is not defined by CSS [2].

[1] https://chromium.googlesource.com/chromium/src/+/8876584335b48c99cf8df552ef4d8efebb131041
[2] http://stackoverflow.com/a/27384730
2016-04-19 09:49:54 +02:00
Denis Ledoux 237a0b6160 [FIX] account: translate-able label on invoices
Provide the possibility for the taxes
label on invoices to be translated.

In other words,
to give the possibility for the taxes labels
in the invoice report to be translated in the invoice
lines
(e.g. 21% VAT in English, 21% BTW in Dutch,
in the invoice lines)

opw-675038
2016-04-18 15:59:33 +02:00
Denis Ledoux 6c7a88d74c [FIX] account: translate tax description in partner lang
The tax description in the taxes lines
(e.g. in invoices) is supposed
to be translated in the customer/supplier language,
as this is what is displayed in the printed reports
sent to the customer.

This is the behavior in place in Odoo 7.0 & 8.0.
(e.g. in invoices)

opw-675038
2016-04-18 15:59:33 +02:00
Martin Trigaux 60ce1bf915 [FIX] website_quote: missing terms in .pot 2016-04-18 14:37:54 +02:00
Martin Trigaux 34040e733b [IMP] doc: use _name format, not external ID in example
Not clear which format act_windows expects.
2016-04-18 11:47:44 +02:00
Martin Trigaux 171f884bdc [FIX] doc: deprecated statusbar_color
Can still be mentionned in documentation but should not be used in example.
2016-04-18 11:47:43 +02:00
Martin Trigaux fe7d5263a5 [IMP] doc: link to bootstrap alerts
Only muted class is missing
2016-04-18 11:47:43 +02:00
Martin Trigaux 9146c07900 [IMP] doc: deprecated is for reference, not tutorial 2016-04-18 11:47:42 +02:00
Martin Trigaux 451483cb61 [FIX] doc: missing closing tag
Some people love copy-paste
2016-04-18 11:47:42 +02:00
Martin Trigaux 199cd2b614 [FIX] doc: no session model so far
Implemented in the next excercice, no need to mention it here.
2016-04-18 11:47:41 +02:00
Nicolas Martinelli 6bf4dea058 [FIX] account: show due date
The "Due Date" is invisible in the tree view because in most cases, the
`journal_type` is not in the context. Since it was shown all the time in
v8, we show as well.

opw-674815
2016-04-18 10:36:33 +02:00
Nicolas Martinelli db0def38cc [FIX] account: delete attachment
When an invoice is cancelled, the attachments (including the printed
invoice) are not deleted. If the users resets the invoice to draft,
modify it, then print it again, the previously generated document will
be used instead.

opw-674678
2016-04-18 10:01:26 +02:00
qdp-odoo 9aa8a212d3 [FIX] account: pdf report of general ledger was including the first day of range in the initial balance. PR #11316 2016-04-18 09:51:25 +02:00
Odoo Translation Bot f4d79a2b8e [I18N] Update translation terms from Transifex 2016-04-17 00:31:25 +02:00
Jeremy Kersten 8aee655825 [FIX] web: don't display view metadata for new record
Close #11584
2016-04-15 17:07:29 +02:00
Denis Ledoux 37edd22b4c [FIX] account_voucher: Purchase receipt bill date twice in the view
The `account.voucher` field `date` was twice in the view
`view_purchase_receipt_form`

Besides the fact the field was twice in the view,
this prevented to set a date in the past
for the resulting journal entries,
as the second field `date` input of the view
contained the date of today, while
only the first one was visible and editable
by the user, and it was the second field
value which was took into account when
passing the form values to the server,
most-likely because this second field was set
further in the view.

opw-674712
2016-04-15 16:19:15 +02:00
Denis Ledoux cbc0dace38 [FIX] account: currency round amounts for exchange rate difference
The method `create_exchange_rate_entry` is called
either if one of the two parameter
`amount_diff` or `diff_in_currency` is not equal to 0.0
(or, near to zero, `float_is_zero`):

```
if currency and aml_to_balance \
and (float_is_zero(total_amount_currency, precision_rounding=currency.rounding) \
or float_compare(total_debit, total_credit, precision_rounding=currency.rounding) == 0):
```

Nevertheless, the method is called with the amounts not rounded,
and, therefore, one could be considered to 0.0 (if
closed to 0.0) but not be exactly equal to 0.00,
and it should therefore be rounded before the entries
creation.

opw-673854
2016-04-15 15:47:10 +02:00
qdp-odoo c538bedd53 [FIX] account: don't show amount_currency and currency_id fields in bank statement lines as it is confusing some people 2016-04-15 14:47:56 +02:00
Géry Debongnie 9b54b042a0 [FIX] web_kanban: correct count for dataset size
In non grouped mode, a recent fix (fixing race condition in do_search)
introduced a new bug, the dataset size is not correctly set.

This is a quick and dirty fix, I believe that changing the dataset
internals like this commit (and other) do is really not correct.
However, the correct fix (working on the dataset API) is more dangerous
in a stable release.
2016-04-15 11:47:49 +02:00
Raphael Collet 053a4ab444 [FIX] doc: fix rst indentation 2016-04-14 14:20:19 +02:00
Nicolas Martinelli 7ab2d0e647 [FIX] sale_stock: unit price rounding
Rounding the unit price at that moment is a bad idea. Here is the use
case:
- Set the product 'Costing Method' to 'Real Price'
- Set the product 'Inventory Valuation' to 'Perpetual'
- Receive through a PO 9 products for a unit price of 115.80
- Receive through a PO 35 products for a unit price of 116.80
- Sell these 44 products thanks to a SO, generate and validate the
  invoice

On the Stock Output Account, the following entries will be generated:
- First PO --> 1042.20  = 9  * 115.80
- Second PO --> 4088.00 = 35 * 116.80
- Invoice --> 5130.22   = 44 * 116.596

116.596 is the average price of the two POs, but rounded. The issue is
that there are 2 cents of difference... Nice ;-)

The fix is to avoid the rounding of the unit price, since we don't even
store it on the account move line anyway.

opw-673976
2016-04-14 13:37:15 +02:00
Nicolas Martinelli 3705a868d1 [FIX] web: consistency between list and export
Following commit 8276fb585, the data exported should match the data
displayed on the list view. Therefore, we need to make sure that the
context used match the context of the list view.

When a filter is applied in the list view, the context is evaluated
thanks to pyeval (see the call to `/web/dataset/search_read`). The fix
is to evaluate the context in a similar way.

opw-674473
2016-04-14 10:44:25 +02:00
Olivier Dony ff0fd50cdf [MERGE] Forward-port saas-6 up to 2d4deca055
- Fix for status widget (b25c054c93) moved
  to appropriate file: addons/web/static/src/js/views/form_widgets.js
  even though the problem is less severe in 9.0 (no crash but triggers
  form save, which is unnecessary)

- Fix for website_event_sale ignored (880e951f34)
  because the problem does not exist anymore in 9.0, probably due to
  refactoring 66871ee65b
2016-04-14 10:39:09 +02:00
Goffin Simon 6668794a8e [FIX] account: create_analytic_lines
When deleting the analytic account of an account move line(aml),
the analytic lines linked to this aml must be unlinked even if
the aml is not linked to another account analytic.

Used case:

Once a analytic account is removed from a journal line, the analytic line
created for this journal line has to be removed from this analytic account.
Inspired from 8.0

opw:673803
2016-04-14 10:28:37 +02:00
Olivier Dony 2d4deca055 [MERGE] Forward-port 8.0 up to 46c5f93b6c 2016-04-13 17:04:49 +02:00
Nicolas Lempereur 6b76b08748 [FIX] web: don't freeze on form warning escape
When the warning on form view is closed by cancel or OK button, all is
well. But if the modal is closed by any other way the def will stay pending
blocking next operations.

This commit set the deferred as dejected if not resolved when the modale
is closed.

closes #11688
opw-671371
2016-04-13 16:19:33 +02:00
qdp-odoo deebe673ba [FIX] account: correctly set default taxes when installing a chart account. Courtesy of pedrobaeza. PR #11498 2016-04-13 16:05:11 +02:00
qdp-odoo 8740d7d915 [FIX] account: bank & cash prefixes not correctly passed. Courtesy of pedrobaeza. PR #11492 2016-04-13 16:05:11 +02:00
Olivier Dony 46c5f93b6c [FIX] website_sale: verify match between TX and SO amount
When processing a payment transaction, double-check the
match between the amount of the transaction and the
amount of the SO, to be sure that we won't be validating
a SO that has been modified since the payment.

Such cases have to be double-checked manually.

Also add a bit of extra logging to make auditing ecommerce
transactions easier.
2016-04-13 15:34:34 +02:00
Olivier Dony ffdfadfc91 [FIX] paypal: no spurious warning about IPN version
In addition to being mostly useless because Paypal's API
changes are supposed to be backwards-compatible, this
warning was using inconsistent version numbers.

Switched to a simple INFO line with IPN version.
2016-04-13 15:34:34 +02:00
Richard Mathot aacb6f921f [FIX] sale: make action_confirm callable from XML-RPC 2016-04-13 13:48:39 +02:00
qsm-odoo 8703d8c11d [FIX] report: missing mt/mb definition
/!\ This commit must not be forward-ported on saas-10 (the file that
is modified here does not exist anymore anyway).

Since the website/web_editor split, the mt/mb definitions were not
included in reports anymore. Those were not the only rules that
were forgotten.
As it would be tricky to add the whole files where those rules are
defined now in the assets of stables branches, this commit only
restores the missing css rules by adding them in the report.css file.

Note: after the assets refactoring that has been done in saas-10, this
problem will no longer appear.
2016-04-13 13:13:07 +02:00
Nicolas Martinelli 5c052451af [FIX] crm: traceback due to typo
opw-674520
2016-04-13 12:37:43 +02:00
Goffin Simon f8d3882173 [FIX] website_quote: _onchange_product_uom
on_change_product_id and product_uom_change have been removed in the
sale.quote.option views.
2016-04-13 10:09:26 +02:00
Goffin Simon 383074881d [FIX] purchase: Incoming Shipments to Invoice filter
The invoicing method to create an invoice on incoming shipment has
been removed in 9.0

opw:674323
2016-04-13 10:03:13 +02:00
Goffin Simon 48e79865aa [FIX] product: sale price in report productlabel
The price displayed in product label report musr be the sale price

opw:673086
2016-04-13 09:38:41 +02:00
Joren Van Onder 534ff9dd8c [FIX] point_of_sale: hide non-active pos.configs from dashboard
The introduction of the new pos.config dashboard at
48ab50ed0d does not filter non-active
pos.configs. There are no constraints against opening sessions on
inactive or deprecated pos.configs so after deprecating/inactivating
users could still open new sessions through the dashboard.

opw-673020
2016-04-13 09:16:04 +02:00
Nicolas Martinelli 10e1d45db9 [FIX] crm: date_closed
When a lead is set to 'Won', the date_closed is defined. However, the
user might have clicked by mistake, and he might want to change the
state back. We need to take this into account, otherwise the lead is
considered as closed although it is not.

opw-674226
2016-04-12 18:11:04 +02:00
Goffin Simon 607ad5855e [FIX] stock: raise UserError when two inventory adjustments are in progress
When two inventory adjustments are in progress state with a common product,
raise a UserError instead of a Warning.

opw:673686
2016-04-12 15:39:42 +02:00
Yenthe 1174cd3fd5 [FIX] doc: Improve english
Some rephrasing to slightly improve the docs.
Closes #11652
2016-04-12 13:05:29 +02:00
Joren Van Onder f40e9ecfc3 [FIX] point_of_sale: match payment to order amount when invoicing
The POS generates journal entries for both the amount of money the
customer pays and the amount of money the POS user returns to the
customer (the 'change'). Whether or not this is the correct thing to do
is up for debate, but we can't change that in stable anyway.

One of the main issues is that in 9.0 accounting will propose
unreconciled payments belonging to the customer on open, unpaid
invoices. This does not work well with the account entries generated by
the POS. Accounting will propose the amount the customer paid, without
taking into account the change.

Example: a customer buys $7 worth of products and pays with a $10
bill. The customer gets $3 change. The invoice will propose the $10
payment.

When you add that payment to the invoice a residual amount ($3 in the
example) will remain on the paymentline, complicating everything even
more.

Although we cannot change how the POS does accounting in a stable
release, we at least want people to be able to easily handle invoices
generated through the POS. To achieve that this patch will make the
backend match the payment to the total amount of the invoice removing
any potential change.

opw-671486
2016-04-12 12:39:01 +02:00
Goffin Simon 880e951f34 [FIX] website_event_sale: get_unit_price with event ticket
When the line is linked to an event ticket, the price must be taken
on the ticket.

Fixes #11521

opw:673176
2016-04-12 11:25:33 +02:00
Goffin Simon afba8cec23 [FIX] account: partner_id field in account.move
From 94ed4ce8c8

The original issue is the following:
- Go to the journal item creation
- Choose a partner
- Add a line => the partner on the journal item is removed

This is because `partner_id` on the account move is a related to
`partner_id` on the account move lines. This is likely to cause errors
during the manual encoding of a journal item, since the relation will
link the partner of the account move to the partner of the first account
move line only.

opw:672354
2016-04-12 10:54:37 +02:00
Goffin Simon 0dbdbf136e [FIX] website_quote: onchange for product with sale.quote.option
The on_change_product_id defined for sale.quote.option has been removed
in the form view.

opw:673285
2016-04-12 10:38:31 +02:00
Joren Van Onder 267097255e [FIX] pos_restaurant: hide references to floor.background_image
For some reason this made it into a stable release. Although you can set
a background image on a floor this image never actually got displayed on
the floor in the POS. Only the background_color field is respected.

Something like this is always a bit tricky, because you would either
have to scale the image to fit on the floor (ugly if the user uploads a
low-res image or an image with the wrong aspect ratio), or you would
have to tile the image (also ugly in most cases).

Because of the above and because this has never worked and because I
don't consider it a particularly useful feature we will remove it
completely in master.

opw-674031
2016-04-12 09:03:19 +02:00
qdp-odoo 67c444bb38 [FIX] account: Don't create journals several times with hierarchical account charts. Courtesy of pedrobaeza. PR #11491 2016-04-11 18:18:12 +02:00
qdp-odoo b2a321a878 [FIX] account: Find correctly taxes when using hierarchical charts of accounts. Courtesy of pedrobaeza. PR #11493 2016-04-11 18:18:12 +02:00
qdp-odoo 9807ff8a91 [FIX] account: Financial Report not sorted the right way. Courtesy of be-cloud-js. PR #11485 2016-04-11 18:18:12 +02:00
Denis Ledoux 5089cb8599 [FIX] hr_timesheet_sheet: exclude unactive accounts in weekly timesheets
This is related to revision f6d6762dc7

opw-674296
2016-04-11 18:09:10 +02:00