Commit Graph

94234 Commits

Author SHA1 Message Date
Christophe Simonis ed6d9afecc [FIX] purchase: env['product.pricelist'].price_get expect a partner ID 2015-08-13 12:12:15 +02:00
Thomas Rehn 937b9575c0 [FIX] account: check for profit/loss accounts
in method `button_confirm_cash` of `account.cash.statement`

The check was verifying that the profit/loss account
was set on the journal, and if it was, it raised that it
wasn't, which is obviously wrong.

This was solved in Odoo 8.0 by replacing the code
by something more readable in 9dc9169, and the same
logic to check that the profit/loss accounts are
set is still there.

Closes #2924
2015-08-13 12:04:28 +02:00
Tony 4c610a31b9 [FIX] survey: allow change of previous answers for all questions types
Permission error on survey update
The user who answer the survey may not have delete permission for the user_input_line

In a survey, for a survey user (!= manager),
When browsing previous pages of anwsers,
the user wasn't allowed to change his answers
regarding simple choice, multiple choices and matrix
questions, as this kind of answers changes leaded to an
unlink operation, not allowed for survey users.

Closes #2901
2015-08-13 11:19:24 +02:00
Goffin Simon 9fed748647 [FIX] website_sale: error in message
Error introduced by 4f91dc371c
2015-08-13 09:03:30 +02:00
Denis Ledoux 85b2e607bf [FIX] crm: prevent use a sales tag from another team.
On the `categ_ids` fields definition on `crm.lead`,
a domain has been added in order to prevent
the use of a sales tag belonging to another
sales team.

As the domain was overidden in the form views,
with a different domain, it was allowed
to use a sales tag from another sales team.

Besides, the domain applied in the form views,
`[('object_id.model','=','crm.lead')]`
is included in the domain applied in the fiel
definition.

Closes #2898
2015-08-12 17:36:14 +02:00
Goffin Simon 0e446eb5a6 [FIX] sale_stock: 'uom' in context
Force the 'uom in the context to False on the field 'product_id' in the popup
form view "sale.order.form.sale.stock", to force the non-propagation of the
context. To avoid using the uos in function "_product_lst_price" when computing
the public price of a product.

opw:646880
2015-08-12 16:59:35 +02:00
Denis Ledoux 31ffd010b1 [FIX] website_sale: flag partners as customers
When placing an order in the ecommerce, it's
seems obvious that the partner is a customer.

Nevertheless, It wasn't flagged as such in
its partner from, preventing
to see him in the customers list

Fixes #2422
Closes #2881
2015-08-12 16:39:46 +02:00
Goffin Simon 528c15cc7b [FIX] account_analytic_plans: creating an analytic distribution
When creating an analytic distribution, the field "plan_id" must be required.

opw:646788
2015-08-12 13:32:28 +02:00
Nicolas Martinelli 8f96a13855 [FIX] mrp_repair: typo correction
"Fals" instead of "False"
2015-08-12 11:19:42 +02:00
Alexandre Fayolle 74b7b97209 [FIX] stock: let resupply from warehouse work
If you set WH B to be resupplied from WH A, then the scheduler will
generate a procurement with warehouse_id = B and location_id = B.stock.
Running the procurement will find the resupply rule, and this will
create another procurement with warehouse_id = A and location_id =
transit location.

However, without this patch, the resupply route is not part of the
route_ids of warehouse A, and so the 2nd procurement goes in exception
because if cannot find a rule (the search will force a rule linked to a
route which is part of A.route_ids).

Closes #7956
2015-08-12 08:14:48 +02:00
cysnake4713 3cc7f9fc86 [FIX] l10n_cn: multiple fixes in charts of account
* Change account type  'Other Receivable(其他应收款)' close_method to
  unreconciled
* Add new account type 'Other Payable(其他应付款)' to  account template
  '2241 Other Accounts Payable'(其他应付款) .
* Change Account template '1221 Other Account Receivable(其他应收款)''s
  type to receivable.
* Rename Account template '1001 Cash (现金)' to '1001 Cash (库存现金)'
  to fit new accounting standard.
* Fix double account template id 'small_business_chart1602' problem.
* Several misused account template
* add view account to small business account template

Closes #7535
2015-08-12 08:09:44 +02:00
cysnake4713 0ab438b76e [CLA] Matt Cai (cysnake4713) 2015-08-12 08:09:44 +02:00
Christophe Simonis 02954bad2b [MERGE] forward port of branch saas-3 up to d5a6380 2015-08-11 16:38:35 +02:00
Christophe Simonis d5a6380726 [MERGE] forward port of branch 7.0 up to f410266 2015-08-11 16:35:00 +02:00
Joren Van Onder fa279c3206 [IMP] hw_posbox_upgrade: new upgrading process for v13 posbox
This calls ~/posbox_update.sh, which will simple do a git pull followed
by a reboot.
2015-08-11 15:20:56 +02:00
Joren Van Onder 5fa75bded1 [IMP] hw_posbox_homepage: update version number 2015-08-11 15:19:57 +02:00
Joren Van Onder 54697a551c [IMP] point_of_sale: migrate the script that sets the rpi leds
When the server is answering HTTP requests, the status led (green one)
of the Raspberry Pi will turn on. Contrary to the previous script this
will not exit and keep running every 5 seconds. This way we can easily
troubleshoot connection issues (if led is on and we can't connect it's a
network issue, otherwise it's an issue with Odoo).
2015-08-11 15:19:57 +02:00
Joren Van Onder 86762ef30f [IMP] point_of_sale: add scripts to generate posbox images
Instead of continuing to build upon the old images, these scripts
implement a reproducable way to generate new posbox images. The
generated images will be based on the latest stable Raspbian
release. The image will be created with the help of qemu-system-arm,
which will boot up the image and execute a script that will set up the
posbox image.

This way everything necessary to set up a posbox is readable in the
scripts and accompanying files, instead of being hidden in an image.
2015-08-11 15:19:57 +02:00
Joren Van Onder 7c4864e942 [FIX] hw_scanner: don't try to grab() a non-existing device
This would generate an ERROR entry in the log every 5 seconds as long as
no barcode scanner is plugged in.
2015-08-11 15:17:06 +02:00
Joren Van Onder 59b5f136bf [IMP] point_of_sale: add patches from `posbox` branch
This commit contains the patches from the now obsolete 'posbox'
branch. These patches were written by Martin Donies (@mdo-odoo) and
Frédéric Van der Essen (@fvdsn).
2015-08-11 15:13:17 +02:00
Denis Ledoux 0d3a9c47e7 [FIX] mass_mailing: use werkzeug url_encode instead of urllib urlencode
As Werkzeug support UTF-8 unicoding, while urllib doesn't
2015-08-11 13:05:41 +02:00
Wolfgang Taferner f41026631f [FIX] account: add missing onchange attribute for payment term computation
Fixes #5118
Closes #7777
2015-08-11 10:36:04 +02:00
rossasa e232221514 [FIX] auth_oauth: login with Facebook
Configuration:
  - Change the scope to: user_profile,email
  - Change the validation url to 'https://graph.facebook.com/me' that returns
    more information about the user.

Facebook open graph API does not send the expected 'user_id' parameter, need to
use the 'id' key.

Fixes #5546
Closes #7532
2015-08-11 09:31:46 +02:00
rossasa 84dffd2dee [CLA] Rossa S.A. 2015-08-11 09:31:46 +02:00
Juan Jose Scarafia 97fdf7bc6d [IMP] sale: call product_id_change with company_id from wizard
Add company when calling product_id_change from _prepare_advance_invoice_vals on
sale.advance.payment.inv wizard.

This way we have same on change call as the one called from account_invoice
(e.g. on uos_id_change and onchange_account_id).

Closes #7939
2015-08-11 08:57:07 +02:00
Nicolas Lempereur 5844fa4a2a [FIX] survey: partner access to survey input
Allow the partner associated to a survey user input to read the data on
this output.

A survey can be created by a different user than the one
filling it, for example an appraisal interview request can be created by
another user than its interviewer. In this case if the interviewer is
not Survey / Manager an error would happen.

closes #7978
opw-644791
2015-08-10 16:57:27 +02:00
Goffin Simon a1328c9054 [FIX] website: escaped hash and url
To be valid for the redirection, the url and the hash
must be percent encoded.

opw:646837
2015-08-10 16:18:16 +02:00
Paulius Sladkevičius 3074835079 [CLA] HBEE
Closes #7825
2015-08-10 16:02:51 +02:00
Olivier LAURENT 755b09c8dc [FIX] hr_holidays: multiple fixes for search filters
- Wrong 'year' filter that implemented in fact an 'active types' filter
- Add a real 'year' filter
- 'my leaves' uses directly the 'user_id' related field
- 'My Department Leaves' filter that mixed ids from different models

Closes #7685
2015-08-10 12:33:25 +02:00
Nicolas Martinelli f2108e9edd [FIX] stock_account: merge the Reference/Description
When invoices are created from pickings, and that the user chooses to group by
partner, we make sure to keep the Reference/Description of all the source
documents. This is exactly what is done for the Source Document field.

opw-646903
2015-08-10 11:54:28 +02:00
Nicolas Martinelli fb3dd3f0f4 [FIX] stock: do not overwrite date_done when a backorder is created
When the user specifies a Date of Transfer ('date_done') and only transfers the
order partially, we must keep the value instead of overwriting with today's
date.

opw-646908
2015-08-10 11:28:44 +02:00
Richard deMeester 59fef0db21 [FIX] account: Add sequence to tax views
For account.tax.code and account.tax.code.template.

Sequences on account.tax.code are used for reporting.
However, it wasn't possible to edit them through the client.
Neither through the form view or the list view with a handle.

Fixes #1844
Closes #2656
2015-08-10 10:55:32 +02:00
Richard deMeester 9e6bfc9852 [CLA] Willow-IT corporate 2015-08-10 10:55:32 +02:00
Nicolas Lempereur 97dbe0db5f [FIX] web_kanban, web: kanban title direction
In internet explorer, writing direction can lead to wrong text direction
when combined with rotate.

A fix was already in place for IE up to version 9 but the issue also
happens in next versions which are more difficult to differentiate
(especially the current spartan/edge version).

So this fix use the same css property value for all browser and it doesn't
seem to have an impact (other than correcting the issue in IE).

closes #7955
opw-646430
2015-08-10 10:54:23 +02:00
Nicolas Martinelli c16885e6e2 [FIX] hr_timesheet_invoice: invoice line in partner lang
During refactoring at 55f9cbf, lost translation of invoice lines.
The invoice lines should be in the partner language instead of in the user lang.
The analytic lines are browsed explicitely in the user language.

Fixes #7774
Closes #7796
opw-646166
2015-08-10 08:25:29 +02:00
Odoo Translation Bot 4fcc756ef9 [I18N] Update translation terms from Transifex 2015-08-09 02:00:12 +02:00
Denis Ledoux 6ebbbdbae9 [FIX] stock: no uom rounding for DO availability & reservation
Instead of rounding the availability and reversation
of a delivery order line to the current UOM rounding,
we round to the generic Product of measure precision.

This is to have the real availability, even for a unit
of measure that normally cannot be split.

For instance, for a product for which the default
uom is 'Unit(s)', but for a specific delivery order
you deliver 1 'Dozens' of this product,
if you have 6 Units available, it will now display
that 0.500 'Dozens' is available and reserved, which
is what is actually happening.

Before, it displayed that 1 dozens was available, even
if only 6 units were available, on the 12 needed.

opw-643312
2015-08-07 15:25:07 +02:00
Goffin Simon 4a46ca474d [FIX] sale: comment in partial invoice
When a partial invoice is created from a sale order, the field "note"
in the sale order must be written in the field "comment" of the invoice.

opw:646852
2015-08-07 15:19:01 +02:00
Jeremy Kersten 5a53d7d8b9 [FIX] website_sale: force refresh cart without cache when product removed
Firefox keep in cache the value of input.
So, when we delete a product line and call location.reload(), firefox
remember the value and state of this input and don't refresh with the new
value.

Adding True as param (forceReload) fixes the problem since it doesn't
use old value. Another way will be to add autocomplete="off".

ForcedReload (Optional): Is a Boolean flag, which, when it is true, causes the
page to always be reloaded from the server. If it is false or not specified,
the browser may reload the page from its cache.

This closes #7888 #3342 #7491
2015-08-07 15:11:54 +02:00
Olivier Dony da8855ad2b [FIX] auth_openid: typo in rev. 77868ec 2015-08-07 14:17:42 +02:00
Olivier Dony 1388c0c108 [FIX] auth_openid: typo in rev. 54e0690 2015-08-07 14:15:41 +02:00
Olivier Dony fb55b2fa5e [FIX] res.users: more consistent handling of user private fields 2015-08-07 13:16:45 +02:00
Olivier Dony 5e4c09ae53 [FIX] res.users: more consistent handling of user private fields 2015-08-07 13:15:45 +02:00
Goffin Simon 39b0a4c2cc [FIX] account: tax_sign
When changing manually the amount of tax in supplier invoice,
the tax sign of the tax must be kept.
Back-port of 4f6eebf698

opw:645691
2015-08-07 11:50:34 +02:00
Goffin Simon 6e2026dcda [FIX] account_analytic_analysis: timesheet_ca_invoiced
The function "_timesheet_ca_invoiced_calc" must not take lines from invoice in state "draft" or "cancel"
to compute timesheet_ca_invoiced. Inspired from function "_ca_invoiced_calc".

opw646602
2015-08-07 09:41:34 +02:00
Alexandre Fayolle 0b74fbed74 [FIX] ir.ui.view: pass context as a kwarg
otherwise when a method such as fields_get is overridden
using the new API, self.env.context is an empty directory,
and the translations cannot be performed correctly

Closes #7911
2015-08-07 02:52:19 +02:00
Christophe Simonis 6e59ea5db9 [FIX] tests: explain why we ignore phatomjs return code 2015-08-06 21:27:03 +02:00
Olivier Dony 77868ec4f9 [FIX] base, auth_openid: wrong implementation of API by auth_openid
Authentication modules are supposed to override res_users.check_credentials()
in order to plug in their own mechanism, without actually modifying the
behavior of res_users.check(), res_users.authenticate() or
res_users._login().

auth_openid was incorrectly overriding check() instead of
check_credentials(), and unnecessarily accessing private
attributes of res_users. Fixing the implementation of auth_openid
to follow the API means we can completely make those attributes
private.
2015-08-06 19:21:12 +02:00
Olivier Dony 54e06907c0 [FIX] base, auth_openid: wrong implementation of API by auth_openid
Authentication modules are supposed to override res_users.check_credentials()
in order to plug in their own mechanism, without actually modifying the
behavior of res_users.check(), res_users.authenticate() or
res_users._login().

auth_openid was incorrectly overriding check() instead of
check_credentials(), and unnecessarily accessing private
attributes of res_users. Fixing the implementation of auth_openid
to follow the API means we can completely make those attributes
private.
2015-08-06 19:19:17 +02:00
Christophe Simonis d8d9c7277e [FIX] phantomjs test: `phantom` variable is undefined inside page. 2015-08-06 17:20:37 +02:00