Commit Graph

94200 Commits

Author SHA1 Message Date
Denis Baranov c0c272c4a8 [FIX] mass_mailing: add attachment in mass mailing test
When testing the mass mailing, with the 'Test Mailing'
button, the attachments were just not attached.

Closes #2981
2015-08-14 17:39:22 +02:00
Denis Baranov b8f177ddeb [CLA] IT Libertas corporate 2015-08-14 17:39:22 +02:00
Denis Ledoux 19b5ba2b08 [FIX] website: condition to flag a menu as `active` in the top menu
1. A menu with `/page/website.***` should be flagged as `active`
if the current url is `/page/***`. This is a retro-compatibility
patch for c9d41679fb, so the
menu is marked as active without having to rename it, by
removing this `website.` thing.

2. If you defined two menus with as url `/page/test` and `/page/test2`
Both menus were flagged as `active` when you browsed the url
`/page/test2`, because it started by both menus urls.

Fixes #3059
Closes #3070
2015-08-14 17:11:16 +02:00
Mathias Neef c9d41679fb [FIX] website*: `active` class in menu
In the top menu bar, the `active` class is set when the
menu url matches the page url (the url in the browser url bar)

A while ago, we made so all urls
`/page/website.***'
were automatically redirected to
`/page/****`

Therefore, if the menu url still contains this `website.` prefix,
the active class wasn't set on it, while it should.

Fixes #3059
Closes #3070
2015-08-14 17:10:46 +02:00
Christophe Simonis 0f2c7fa4ab [MERGE] forward port of branch saas-3 up to e95e9f8 2015-08-14 16:02:57 +02:00
Christophe Simonis e95e9f8878 [MERGE] forward port of branch 7.0 up to 11cd8ba 2015-08-14 16:02:31 +02:00
Christophe Simonis 856cb6fcb0 [FIX] models: distribute ORDER BY direction 2015-08-14 15:42:37 +02:00
Christophe Simonis dac52e344c [FIX] models: "ORDER BY" on many2one fields
When ordering results on a many2one fields, results are ordered by
order of the target model. The code was wrongly assuming that this
`_order` attribute only contains `_classic_read` fields (that can be
directly read from the table in database). Now correctly generate the
"ORDER BY" clause using the current table alias.

`res.users` can now be sorted by name.
2015-08-14 15:42:37 +02:00
Christophe Combelles 11cd8ba06c [FIX] web_kanban: access gravatar with current scheme
When Odoo is accessed in https, inserting the gravatar
image using the http protocol leads to a security
alert in most browsers.

Closes #3042
2015-08-14 15:35:48 +02:00
Joren Van Onder d8c5299dc0 [FIX] point_of_sale: posbox_create_image fixes
- don't add comments in posbox ld.so.preload, it causes the second line to be
  interpreted as a library.
- allow image creation in headless environment. This checks whether or not X is
  running and runs qemu-system-arm with or without graphics.
2015-08-14 11:08:51 +02:00
Denis Ledoux d98ac716c1 [FIX] account: account type of account created on bank account creation
When creating a new bank account
e.g. Accounting > Configuration > Accounts >
Setup your Bank Accounts

When the user leaves the journal blank,
a journal, and an account associated to this
journal, are automatically created.

The account type of the account created could be wrong,
as it used the account type of the parent of the first
account of internal type `Liquidity`, which
could not be an account of account type Cash or Bank, but of
account type 'View', and such an account type does not
have the right delivery forward method, in order to report
correctly the amounts when closing a fiscal year.

Instead of using the account type of the parent,
it should actually uses the account type of the sibbling,
which have a correct delivery forward method

opw-647311
2015-08-14 10:46:05 +02:00
Denis Ledoux bae0a775e1 [FIX] hr_evaluation: remove group by survey
`survey_id` is a related field, non-stored.
This isn't possible to apply a group-by on a non stored field.

opw-647303
2015-08-13 15:26:39 +02:00
Christophe Simonis 09ceb9cb8a [MERGE] forward port of branch saas-3 up to 4b1496f 2015-08-13 15:18:26 +02:00
Nicolas Lempereur cdb9000449 [FIX] website, base: escaping and unescaping html
When saving a template in version 8.0, html would be saved as it should
be displayed once on the site. In particular, if some text should be
escaped once send to the browser, it will be saved as such.

But when rendering, a text node content is unescaped two times:

* for translation which seems wrong since we already use .text of a node
  which already escaped it, doing it one more time is bad,

* when rendering the template, since the html template is stored in xml,

This commit remove superfluous unescaping for translation, and add an
escaping when saving the changed template content.

closes #7967
opw-646889
2015-08-13 15:15:24 +02:00
Christophe Simonis 4b1496fdd3 [MERGE] forward port of branch 7.0 up to 937b957 2015-08-13 15:14:16 +02:00
Nicolas Martinelli 8827789ff2 [FIX] stock_account: remove traceback introduced by f2108e9
invoice_vals['name'] may not be defined yet.
2015-08-13 12:46:22 +02:00
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