Commit Graph
101329 Commits
Author SHA1 Message Date
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
qsm-odoo b338ae0153 [FIX] web: do not wrap numbers on multiple lines
In languages where the thousands separator is a space, numbers could
be wrapped over multiple lines.
2016-04-11 15:54:50 +02:00
Holger Brunn b25c054c93 [FIX] web: prevent crash in rare case with status field
Current behavior before PR: if you create a new record within a one2many
field and the model's form has a clickable status bar defined, clicking
this status bar will raise an exception because the virtual id
(one2many_v_XXXX) will be passed to the model's write method

Desired behavior after PR is merged: clicking just changes the cached
value
2016-04-11 15:21:45 +02:00
Christophe Simonis 87d160a742 [FIX] models: partial loading of manual fields
Related and function manual fields may not be loadable during initial
setup (partial=True) due to dependencies being not loaded. Ignore
theses fields during partial loading.
2016-04-11 14:52:42 +02:00
Olivier Dony a445fc996b [MERGE] Forward-port saas-6 up to edf81b54b5 2016-04-11 14:38:53 +02:00
Olivier Dony edf81b54b5 [MERGE] Forward-port 8.0 up to bf163700e4 2016-04-11 14:35:49 +02:00
Olivier Dony bf163700e4 [MERGE] Forward-port 7.0 up to 38905d686f 2016-04-11 14:23:02 +02:00
Olivier Dony 38905d686f [FIX] res.partner: relax condition in 3ab436fb7b
Users may sometimes need to edit their own partner records directly,
although indirect access by writing on `res.users` directly works
fine in most cases.
2016-04-11 13:33:49 +02:00
Denis Ledoux 7f571f0852 [FIX] crm_partner_assign: avoid report view deletion
The SQL view `crm_partner_report_assign`
makes a join on `account_invoice_report`

A column is added to
`account_invoice_report` in the module
`sale` (`section_id` is added to the view),
making the SQL view `account_invoice_report`
replaced automatically at the install/update
of the `sale` module, which leads
to the automatic deletion of the SQL
view `crm_partner_report_assign`,
because the SQL view `account_invoice_report` is
altered.

Therefore, after the install/update of the `sale`
module, the view `crm_partner_report_assign` was
deleted, and the "partnership anaylsis" unusable.

This revision makes sure to init the
`crm.partner.report.assign` report after
every init of the `account.invoice.report`.

opw-674177
2016-04-11 13:05:03 +02:00
Thibault Delavallée d18d6259ae [FIX] mrp: context propagation 2016-04-11 10:11:10 +02:00
Thibault Delavallée 620d9f2e60 [FIX] mrp: wrong return in override of action_scrap 2016-04-11 10:11:09 +02:00
Goffin Simon 2954df9e68 [FIX] stock: invisible field picking_type_id
The field picking_type_id is a required field, this is why it cannot
be invisible in the form view.

opw:673258
2016-04-11 09:50:03 +02:00
Odoo Translation Bot 05223f558d [I18N] Update translation terms from Transifex 2016-04-10 02:59:08 +02:00
Odoo Translation Bot d4672389f7 [I18N] Update translation terms from Transifex 2016-04-10 00:32:08 +02:00
qdp-odoo 20381eb33d [FIX] account: get rid of 'cannot create unbalanced entry' on bank reconciliation using a tax on manual entry created. Was ticket 673358 2016-04-08 16:54:54 +02:00
Géry Debongnie f652d384a2 [FIX] web: graph_view now actually supports 'stacked' attribute
For some reason, it was lost.  Probably in the graph view/pivot view split.
This commit simply accepts the attribute, but default to true, so nothing
changes unless you have explicitely set it to false.

Also, fixes en error introduced by a forward port (the use of
openerp.web.format_value)
2016-04-08 15:21:17 +02:00
Yannick Tivisse 1c9f7f9890 [FIX] crm: Do not show leads without next activities on NA menu
If nothing is planned for this lead, don't show it on the
Next Activities menuitem
2016-04-08 11:09:59 +02:00