Commit Graph
106440 Commits
Author SHA1 Message Date
Yannick Tivisse 4b60d5c1bd [IMP] account,sale,purchase: typo 'Payment Term' -> 'Payment Terms' 2016-08-30 13:20:23 +02:00
Yannick Tivisse 8c08a9be10 [IMP] sale,account: Various UX improvements and cleanings for onboarding purpose
SPECIFICATION:
==============

- hide income account in invoicing wizard (if user is not a accounting accountant at least)
- hide Inventory tab in products form if no access to Inventory app
- in internal category form, hide accounts if user is not an accounting accountant
- hide Vendors if no access to purchase (as well as Description for Vendors in Notes)
- remove Warranty or hide it with related access rights
- tax cloud config is not userfriendly (product form, what is TIC category? what does it imply?)
- rename Accounting tab (in products) into "Invoicing" and move Invoicing Policy and Taxcloud Config there. Make tax field visible for sales
- reset Internal notes field on product (under Notes). Used by many companies and useful for search on website.
- invoice: validate button should be for billing users only
- a sales user can't see Configuration menu (with salesteams)
- a sales user should not see Invoicing report link &nd settings link in salesteam dashboard
- a sales user should not see the field for invoicing target in dashboard (in invoicing if activated for salesteam)
- In sales team, quotations and invoices should be only one option -> that way invoicing fields & targets show up to the admin
- SO status: sale order -> Sales Order
- Everywhere: Payment Term -> Payment Terms
2016-08-30 13:20:23 +02:00
Yannick Tivisse e945b86d5a [IMP] product: Move Inventory tab in product form to stock module
By the way, move the group 'Vendors' on the inventory tab, it doesn't. It
doesn't make sense to display this information if you don't actually buy
the product
2016-08-30 13:20:23 +02:00
Damien Bouvy 63c4854841 [FIX] base: raise an actual exception and not a string 2016-08-30 10:58:52 +02:00
Yannick Tivisse ba104eba6a [MERGE] sale,account,project,issue: Notifications review for portal users 2016-08-30 10:20:47 +02:00
Yannick Tivisse b1680bc319 [FIX] project,issue: Correct management of Notifications to portal users
[FIX] website_project: override get_access_action to redirect to my/tasks,projects

[FIX] project_issue: Don't send notif template to portal customers if no website

[FIX] website_project: Portal users can receive notif template
2016-08-30 10:18:53 +02:00
Yannick Tivisse 9a51855008 [FIX] account,sale: Correct management of notifications to portal users
[FIX] sale: Don't display 'View quotation' button on email if no website
If the website module is not installed, the button 'View Quotation' will lead to the backend chatter page, which is not very useful in our case.
As the quotation is already attached in the mail as a pdf, just don't display the button if the website module is not installed

[FIX] account,sale: Don't send notif template to portal customers if no website

[FIX] account: Don't display 'View Invoice' button on email if no website
If the website module is not installed, the button 'View Invoice' will lead to the backend chatter page, which is not very useful in our case.
As the invoice is already attached in the mail as a pdf, just don't display the button if the website module is not installed

[FIX] website_sale: override get_access_action to redirect to my/invoices
2016-08-30 10:17:38 +02:00
qsm-odoo fba51f1cbd [FIX] web_tour: correct automatic click on links
Previous implementation was checking if the element we want to click
on is a link and if this is the case, only forced a redirection. This
had been done because the redirection was not working by simulating a
click, but in fact it works, the click simulation only had to be
improved.

Also, only forcing a redirection is wrong as some links have both a
real redirection link and a event handler binded to them.
2016-08-30 10:16:40 +02:00
Yannick Tivisse df802f9005 [FIX] portal_sale: Move portal access rights to website_portal_sale
Currently as no portal backend view exists anymore, the method 'get_access_action' will return a url to the backend.

For example, if you have only sale installed (with portal_sale in auto install mode), you'll get access rights to sales orders in read mode in backend. The correct way to handle this is to return an access error and give the access rights to these documents only in website_portal_sale is installed, i.e. when the portal view is accessible in frontend under my/orders/ controller.
2016-08-30 10:09:36 +02:00
Yannick Tivisse db28e23e76 [FIX] website_portal_sale: Remove useless/broken link to backend from my/order,quote
portal_sale: Remove invalid 'get_formview_action' overwrite

This commit https://github.com/odoo/odoo/commit/ecd58457ed2311cfec8cae9d01b04ce995b31ec7 has removed some backend portal actions, but didn't remove them from the template links.
2016-08-30 10:09:36 +02:00
qsm-odoo c69f306b5d [FIX] web_editor: correctly display image and focus point in bg option dialog
Before this commit, the focus point the user can move on the image in
the background position configuration dialog was only following the
mouse as we want if the image original width was larger than the dialog
one. This is because the javascript relies on the fact the image takes
100% width of its container. To fix this, the container now does not
take 100% of modal width but the size of its internal image (with a
max-width of 100%).
2016-08-30 10:04:14 +02:00
Jainik Patel 531ed05a43 [IMP] account: add bank statement operation presets as template in l10n modules.
In details:
* account.operation.template object renamed into account.reconcile.model
* account.reconcile.model.template object created
* added some records for l10n_be

Was PR 11230
2016-08-30 09:55:24 +02:00
Nicolas Martinelli 5100aa8113 [FIX] website_sale: strikethrough price
It might happen that a price is strike through in the shopping cart
although it has the same value than the discounted price. This can be
due to differences in decimals smaller than 0.01.

The fix is to apply the same logic than in other places: strike through
if the difference is larger than 0.1.

opw-685109
2016-08-30 09:53:10 +02:00
Nicolas Seinlet a437811146 [FIX] stock: action_assign(reserve) should have a check to see if the move id is in the keys of the main_domain as was done in the previous loop
This is needed to avoid the scheduler to stop suddenly as the scheduler
takes a bunch of moves to reserve without looking if all moves of
a picking are taken.  That way, it is possible that a certain key
is not there in this dictionary and the solution is to simply
filter them out.

Closes #13286
2016-08-30 09:39:43 +02:00
qsm-odoo 88d8a2ca8e [FIX] web_editor: hide header in customize dropdown when it has no content
In some snippets, the parent hierarchy has many elements. So, when
selecting a deep child of one of those, the customize dropdown had
many dropdown headers showing the parent hierarchy but without any
option for many of them.

Commit de0d9fd666 already fixed the case
where the dropdown only contains dropdown headers. This commit is an
adaptation to hide these headers one by one.
2016-08-29 18:50:51 +02:00
qsm-odoo ca01e7d7c5 [FIX] web_editor: change margin and resize handle icons on focus
The feature was lost because of a programmation error (use of this in
a non-binded function).
2016-08-29 18:50:51 +02:00
qdp-odoo a267d8205b [FIX] account: fix account_reconciliation_widget when a tax is used. compute_all() now expects browse_records as parameters 2016-08-29 18:03:05 +02:00
Jeremy Kersten f1a331850d [FIX] website_sale: fix order for the pager in front end.
In psql, use LIMIT and OFFSET together without a fully specified and uniq sort order
will generate unexpected behaviour.

Eg:
> id   id_dept  name
> -------------------
> 1    1        Tom
> 2    1        Mike
> 3    2        Meggie
> 4    2        Marge
> 5    3        Bart
> 6    3        Lisa

> using LIMITed selects like:

>    SELECT * FROM employee ORDER BY id_dept LIMIT 3
>    SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 3
>    SELECT * FROM employee ORDER BY id_dept LIMIT 3 OFFSET 6

> You can have some result missings from the 3 requests, and others duplicated.
> Because id_dept is not a uniq order.

opw-686639

note: backport of saas-12 4dce8616
2016-08-29 17:08:25 +02:00
Raphael Collet b30bc58627 [FIX] account_budget: remove print statement 2016-08-29 16:19:23 +02:00
Raphael Collet 63a3c43be7 [FIX] website_crm_partner_assign: remove print statement 2016-08-29 16:18:39 +02:00
Martin Trigaux 9bbdec5dc9 [FIX] update saas-10 translations by merging 9.0 and master
using the --uses-first parameter on msgmerge this time
2016-08-29 15:35:58 +02:00
Christophe Matthieu 6d45450520 [IMP] website_sale: better performances 2016-08-29 15:33:05 +02:00
Christophe Matthieu 688db44c42 [IMP] website_sale: improve performance, use less db request to have pricelist data
Use pricelist in the context instead of pricelist id.
2016-08-29 15:32:44 +02:00
Christophe Matthieu 50890347c1 [IMP] website: increase in performance using the cache
Avoid the excessive use of with_context method
2016-08-29 15:32:44 +02:00
Christophe Matthieu 8285ff7012 [IMP] website_sale: use env with new context for performance
The products don't need to use with_context because the pricelist and partner is already in the context; this change allow to use the cache.
2016-08-29 15:32:43 +02:00
Christophe Matthieu 166a9d26e3 [IMP] website_sale: create a new compute field to use prefetching and increase performance 2016-08-29 15:31:44 +02:00
Nicolas Martinelli 7d7cb96c72 [FIX] stock: processed_boolean renamed is_done
The field `processed_boolean` has been renamed to `is_done`.

opw-686941
2016-08-29 13:43:10 +02:00
Christophe Simonis 4c9978e758 [FIX] subscription: use an @api.model method for cron
Since the cron engine has been migrated to use the new-api (4ddc323139),
cron methods should be defined as `@api.model`
2016-08-29 12:36:48 +02:00
Odoo Translation Bot 671fa0c7d4 [I18N] Update translation terms from Transifex 2016-08-29 11:48:02 +02:00
Denis Ledoux 311f041f7f [FIX] auth_oauth: pass reset, remove auto redirect when only one provider
Even if there is only one provider,
you could still use the internal login rather than
this oauth provider to sign in,
and therefore you need to remain on the regular
login page if you would like to reset your internal password
2016-08-29 11:46:35 +02:00
Odoo Translation Bot e9bd2aad98 [I18N] Update translation terms from Transifex 2016-08-29 11:14:01 +02:00
Christophe Matthieu 621a7c92b0 [FIX] qweb: wrong result when use the value defined by the t-set
When use t-set the value is replaced by an empty list and can't be use inside the t-set.

Issue: <t t-set="bibi"><t t-raw="bibi"/> other</t> => ["\n "] other
2016-08-29 10:33:45 +02:00
Christophe Matthieu 00f18312bd [FIX] qweb: display a warning when try to use profiling without astor module 2016-08-29 10:33:22 +02:00
Christophe Matthieu 4fd99a9aae [FIX] qweb: wrong profiling result because the calls are not ordered 2016-08-29 10:33:02 +02:00
Raphael Collet 83042027fe Revert "[FIX] website: add missing module dependency base_setup"
This reverts commit d269eb0eb6.
The issue has been fixed in 61f2c90d50.
2016-08-29 09:57:21 +02:00
Raphael Collet d269eb0eb6 [FIX] website: add missing module dependency base_setup 2016-08-29 09:49:23 +02:00
Nicolas Martinelli 6e05eee828 [FIX] sale_service: create only one task
If a SO is confirmed, cancelled, set to draft then confrimed again, 2
tasks are created for the same SO line.

opw-686613
2016-08-29 09:26:21 +02:00
Nicolas Martinelli 2fda62ebd8 [FIX] website, website_{*}: Google Maps API Key
Partial backport of c82b65c855

opw-686510
2016-08-29 08:48:09 +02:00
Nicolas Martinelli 61f2c90d50 [FIX] website: Google Maps API Key
Move the key field to the website config
2016-08-29 08:32:12 +02:00
Fabien Pinckaers c34346934c [IMP] website: minitour to install contact form on contact us page (usability: people think there is no contact form) 2016-08-29 01:30:48 +02:00
qsm-odoo 8729cad821 [FIX] openerp.tests: clear correct localstorage path when using phantomJS v2 2016-08-28 22:43:39 +02:00
qsm-odoo 0bcf978920 [IMP] sale,sale_crm: activate the sale_tour test 2016-08-28 22:43:39 +02:00
qsm-odoo b7791e57e9 [FIX] web_tour: use visible elements in run method
When checking for a DOM element in a run method thanks to the action
helper, visible elements are now considered first, then, if none is
found, we take the first invisible one.
2016-08-28 22:43:39 +02:00
Fabien Pinckaers 621a97dd44 [IMP] website: missing dependency with base_setup, traceback 2016-08-28 16:33:24 +02:00
Fabien Pinckaers bb98f38d95 [IMP] im_livechat: typo Quit --> Leave 2016-08-27 17:04:09 +02:00
Simon Lejeune 1871b33dbf [IMP] web: export: keep compatible fields when switching export type
Previously all the fields were removed when switching export type, even
if they are available in the newly selected export type. This commit
fixes that.
2016-08-26 18:16:35 +02:00
Christophe Simonis f4738e7bb5 [MERGE] forward port branch saas-12 up to 78e9c7f 2016-08-26 18:06:17 +02:00
dut-odoo be3fbd20e2 [FIX] website_portal_sale: fixed archive domain
* Archive isn't working properly because doesn't show elements of
  last day of the month in the wrong month
  Change the domain to take the good days.
2016-08-26 18:04:38 +02:00
Christophe Simonis 78e9c7f567 [FIX] website_event: use new t-options attribute in qweb vie 2016-08-26 17:29:15 +02:00
Christophe Matthieu 755e1f4533 [FIX] web_tips: fix a memory leak
Before this commit, the web_client slows down because callbacks are added
many times without ever being removed.
2016-08-26 17:02:29 +02:00