Commit Graph
104813 Commits
Author SHA1 Message Date
Yannick Tivisse ff63f5d0a3 [IMP] base_setup: Allow the admin to modify the default user acess rights
Add a link in the general settings to access easily the default_user form view in order to modify the default access rights

The default_user manager rights declarations in all the applications have been move in a noupdate="1" definition to avoid the manual configuration overwrittings
2016-08-23 11:14:37 +02:00
Yannick Tivisse 92a60f1340 [IMP] base: The default_user doesn't have 'Settings' access right
It's ok to give the 'Manager' rights to new users for small companies or new saas instances so that newly created users can direcly use all the features.

For bigger companies, someone is creating the new users and give the rights specifically according to their access rights in the company departments.

But granting administrator access by default is definitely questionable. The main admin is bound to make mistakes and fail to notice or remember that they have given admin access to new users. Making the system insecure by default is not a good trade-off for "simplifying the system for small businesses". And this will not be expected by anyone.
2016-08-23 11:14:37 +02:00
Yannick Tivisse 78c215a923 [IMP] mail: Don't display '(no email address)' for suggested partners
remove the '(no email address)' when no address email. Because when you send
the message, a popup appears with the email field required.
2016-08-23 10:34:43 +02:00
Simon Lejeune f9d2f0b509 [FIX] various: slug of a non-existing record
better patch for rev e9b649b555

* also fixes website_event which present the same issue (depends
  on a function that slugs)
* raise an exception when slug is called with wrong arguments
  instead of returning None (which was unclear)
* before calling slug in a function where we got a depends, check
  that the record is actually created
2016-08-22 19:48:16 +02:00
Damien Bouvy b70f159f3a [FIX] product: avoid duplicates in name search
A typo probably introduced during the migration to the new api may have
caused duplicates to appear in the name search results since it added
the ids of the wrong recordset.

The previous fix, while effective, also removed a previous optimization
for databases with a lot of products. While the code may seem obscure
on first read, the comments should shed some light on the
implementation choice.

This commit therefore reintroduce the previous code with the exception
of the call to the wrong recordset (self instead of products).

Amends b02a85f
Courtesy of @rco-odoo
2016-08-22 17:27:25 +02:00
Martin Trigaux 38c1d6fd69 [FIX] pos: remove unused key use in move lines grouping
The key 'tax_code_id' does not exist anymore, therefore the condition
line.get('tax_code_id') == values.get('tax_code_id')
was equivalent to
None == None
which is of course always True.

To make this code more readable and avoid misunderstandings, a clearer
loop implementation avoids checking for this key.
2016-08-22 16:27:10 +02:00
Simon Lejeune e9b649b555 [FIX] website, website_slides: slug of a non-existing record
When you execute the slug method on a virtual record (not yet
saved, virtualid/newid) the slugs obviously fails as it needs
an id and a display_name.

This issue happens when there's a depends on a function field
using the slug method: just after the create and during the
onchanges, they'll raise.

This patch makes the slug method returns None in these case,
anyway the depends are re-triggered after the write and at
this time they have an id and everything is working fine.
2016-08-22 15:19:05 +02:00
dut-odoo 4407dad174 [IMP] point_of_sale: alter Products menus to show kanban of products instead of list of templates 2016-08-22 14:52:47 +02:00
dut-odoo a2a6936056 [REF] point_of_sale: remove sale dependency of POS
Stock account is sufficient for Point of Sale. No need to set sale_stock as
dependency, as it installs Sales Management but is not required for running
the POS.
2016-08-22 14:52:46 +02:00
Simon Lejeune 7abed3b996 [IMP] all: remove unreachable code
This commits adds the check W0101 to test_pylint and fixes the errors.

The index in sequence.py was added in rev 1381ac139e and cancelled a day later in 83fdc271e6
so i guess it is safe to remove it.
2016-08-22 13:51:37 +02:00
Csaba Fazekas 1ede17978b [IMP] website: improve dashboard design 2016-08-22 13:48:49 +02:00
Martin Geubelle b94ddcbd70 [ADD] product,website_sale: attribute without variant
A new field `create_variant` has been added on `product.attribute`.
If unchecked, the attribute will not create variant.

These attributes will be added on the sale order description if bought from the shop.
The lines of a product with these attributes will be splitted to keep the description.
2016-08-22 13:39:41 +02:00
fwi-odoo e36db7a7af [IMP] product: only display attributes with multiple possible values 2016-08-22 13:39:41 +02:00
Yannick Tivisse 2adae8ff0f [IMP] web,web_settings_dashboard: Move 'About' menu to settings dashboard
Fp request: In the user preferences menu, remove "About Us" and put the version number in the Settings dashboard somewhere, as well as the link to switch to developer mode. Odoo is not a desktop application anymore.
2016-08-22 12:56:49 +02:00
Yannick Tivisse c35bf5a845 [FIX] web: Set correct debug mode value in headers variable 'X-Debug-Mode'
For the need of the next commit, we have to know when making a request from an RPC call in which debug mode we are. Previously, the value was always 'true' if we were in debug mode. Now it will return 'true' if we are in simple debug mode and 'assets' if we are in the other one. (this is the current behavior for the simple WebRequest).

Why do we need to know that? When loading the settings dashboard, an rpc request to /web/dataset/call_kw to load the view is accessing the odoo.debug @property method. This value is used in the template to decide which buttons to display to activate or deactivate the debug mode.
2016-08-22 12:56:49 +02:00
Yannick Tivisse 71e25559ce [FIX] base: Don't browse a browse record in 'onchange_module' method 2016-08-22 12:48:56 +02:00
Kinjal Mehta 3912beff31 [MOVE] hr_recruitment_survey: Make a bridge module with survey related code
==============
Specifications
==============

Add an option in the settings to use the surveys or not
By default : do not use interview forms.
If the option is false : on the job application, hide the Interview form field
2016-08-22 12:48:56 +02:00
dut-odoo 3df8c253e3 [FIX] event_sale: display unlimited seats events on sale order line
A ticket whose seats_availability is unlimited,  is not shown on saleorder line. Fixed it.
It should show all the ticket whose seats_availability is unlimited or seats_available is greater than 0.
2016-08-22 12:41:36 +02:00
Raphael Collet 9ea6a7992c [MIG] account: migrate method init 2016-08-22 11:53:51 +02:00
Martin Trigaux a35e9bdb88 [I18N] fetch new master terms from Transifex 2016-08-22 11:52:03 +02:00
rap-odoo 1b1c0d0777 [IMP] account: Improve graph proportions in accounting dashboard
========
Purpose
========

The graphs on the accounting dashboard give the impression that we had $0 in the bank because the graph is at the bottom of the kanban kard.

==========
Specification
==========

The bottom should be zero, the top should be the maximum of the visible period, and the rest of the graph should be proportionate.
2016-08-22 11:29:04 +02:00
keyur gajjar 198a0b8ff6 [IMP] crm: Set lost reason when marking several leads as lost
=======
PURPOSE
=======

In list view, when handling in mass the opportunities and mark it as lost, it
should be possible to set the lost reason.

The reason would be the same for all the selected opportunities.

=============
SPECIFICATION
=============

On clicking of 'Mark as Lost', ask user the lost reason through wizard. and then
set that lost reason to all the opportunities selected.
2016-08-22 08:57:28 +02:00
Fabien Pinckaers 7d89d0483e [IMP] mrp: lots quantity aloways visible (the + and - icons are not clear at all) 2016-08-21 18:14:49 -07:00
Fabien Pinckaers b02a85fcf1 [FIX] product: avoid search returning two times the same product 2016-08-21 17:13:26 -07:00
Fabien Pinckaers cd1da32dce [IMP] mrp: better kanban view for attachments 2016-08-21 13:54:51 -07:00
Fabien Pinckaers 126a04f6ac [FIX] mrp: allows to select the BOM on workorder messages 2016-08-21 13:30:31 -07:00
Christophe Simonis 9d63b8d492 [FIX] website_forum: ensure demo user have enough karma to post non-pending questions 2016-08-21 22:20:36 +02:00
Fabien Pinckaers fc44dcd019 [FIX] mrp: empty list message on product attachments 2016-08-21 13:12:10 -07:00
Fabien Pinckaers c2f5457d98 [FIX] product: traceback when name_search on template fixed 2016-08-21 13:06:07 -07:00
Christophe Simonis acd56f34b6 [FIX] hr_payroll_account: forward-port of 36026bc771
File forgotten during previous commit
2016-08-20 18:09:10 +02:00
Christophe Simonis 235ed4b2c1 [MERGE] forward port branch saas-12 up to 9ad5f26 2016-08-20 18:08:19 +02:00
Christophe Simonis 9ad5f26b3f [MERGE] forward port branch saas-11 up to 3a2147d 2016-08-20 17:18:31 +02:00
Christophe Simonis 3a2147d95c [MERGE] forward port branch saas-10 up to bc1a0a3 2016-08-20 16:57:36 +02:00
Fabien Pinckaers c3734ec5b6 [IMP] sale: consistency menu and app name 2016-08-19 16:14:06 -07:00
Fabien Pinckaers 2e9374d00a [IMP] mrp: App MRP --> Manufacturing (consistency between app and menu)
[IMP] website: better dialog when clicking on a menu in edit mode
	(less options is easier)
2016-08-19 16:11:03 -07:00
Jeremy Kersten ffa998d64c [IMP] website_membership: add search count
Show number of members found in the searchbox
2016-08-19 19:33:21 +02:00
Jeremy Kersten d8b7f6a60c [IMP] website_sale: show categories on mobile device
Task 20251
2016-08-19 19:33:21 +02:00
Jeremy Kersten 1feaee1daa [IMP] website_sale: show number of product found
Now you have the option to show the number of product found after one search.
2016-08-19 19:33:21 +02:00
Jeremy Kersten dedb3ce9ba [IMP] website_sale : add sort by
Now you can sort products by lst_price, name, ... via the UI

In some case the price list or b2b/b2c mode can altered the price
and the sort on lst_price can be sometimes wrong.
Eg: if price is displayed vat in (b2c), and mix rate of 6% and 21%, the sort
will be done on the htva price.
2016-08-19 19:33:21 +02:00
Jeremy Kersten 5189a66f5f [FIX] base: res partner fix name_get
Before this commit, if a partner was NOT company, but have 1 or more
contacts (delivery, invoice, ...), the nameget of the contact was empty.

Now we display the "<parent partner name>, <type contact>"
2016-08-19 19:33:21 +02:00
qsm-odoo b4cfe36b05 [IMP] *: replace snippet sections menu by a title
* web_editor, website, mass_mailing

This menu allowed to scroll to the snippets sections by clicking on
their corresponding icons. It was useless as the sections are not
taking a lot of height. This also appeared buggy as clicking on the
last icon highlighted only the second one as this second one was still
the first section visible on the screen when the last section was
fully visible.

This also added fours buttons to the interface which contains already a
lot of them. Now this is replaced by a title "Add blocks" which makes
the editor cleaner and also improved the performance to enter the edit
mode.
2016-08-19 17:44:28 +02:00
qsm-odoo cc2cd9108c [IMP] web_editor: put the "Quote" style after "Header" styles 2016-08-19 17:44:28 +02:00
qsm-odoo 74d7de465e [REF] website_blog: refactore cover option and change opacity behavior
* Isolate website_blog style
* Simplify/Correct the cover option JS
* Allow to modify the cover from the blog list page
* Change cover layout (use a more conventionnal odoo design with a
div which is full width, which contains a container(-fluid) then its
content) -> easier to customize.
* Refactore code to be understandable
* Change behavior of opacity filter: before this commit the cover
filter was not intuitive and did not work on IE or Edge, it mixed
the color of the bg-image and the bg-color in a complex way and the
opacity was just controlling if the image was visible clearly or not
(which led in general to ugly style if the opacity was used). Now, the
color in applied *on top* of the image so that its color changes the
hue of the underlying image. The opacity value controls only the
opacity value of the color to mix.

[MIGRATION] Note: as the opacity behavior has changed, the exact same
behavior is not reproductible at all. But for the change to make a bit
of sense in old databases, this should be applied for the field
"cover_properties" of blog posts (with changes in layout):

if cover_properties.background-color != "oe_none":
    cover_properties.opacity = 0.6
else:
    cover_properties.opacity = 1.0 - cover_properties.opacity
2016-08-19 17:44:28 +02:00
qsm-odoo ee19cf08e4 [IMP] website_blog: convert SASS to LESS 2016-08-19 17:44:28 +02:00
qsm-odoo d316dbd95c [IMP] website: rename "NEW/EDIT PAGE" buttons into "NEW/EDIT"
It is better because it then proposes to add a page, a product, a blog,
a forum, a job offer, ... (not only a page).
2016-08-19 17:44:28 +02:00
qsm-odoo f196afc80b [IMP] web_editor: come back to a more regular summernote colorpicker
Splitting the summernote colorpicker into bg colorpicker and foreground
colorpicker seems to have been a bad idea as people tend to click on
the recent color button thinking it will open a dropdown.

This commit keeps the design that had been decided for colorpicker
template and do not change the "background-color" snippet option.
However, the colors for background and foreground text changes are
now displayed in an unique dropdown again, with reviewed style.

+ adapt the rte tour
2016-08-19 17:44:27 +02:00
qsm-odoo 1d54874c13 [IMP] website: propose edition of company data in frontend
When clicking on the logo or the company adress in the website edit
mode, the user can now choose to be redirected to the form view of
the company so that it can edit the data.
2016-08-19 17:44:27 +02:00
qsm-odoo 3c98c78fc7 [IMP] website: allow to navigate through menus in edit mode
Now, when clicking on a menu item while being in edit mode, a modal
opens asking if we want to go to that page, edit that page, edit the
menu or do nothing (it only allowed to edit the menu item before).
2016-08-19 17:44:27 +02:00
qsm-odoo 0ab08050b9 [FIX] web_editor,website: stop closing web_editor dialog two times
This commit fixes two problems:

* Clicking on the save button of a web_editor dialog closed the dialog
two times because the button was created with the flag "close: true"
and binded to a handler which closes the dialog. This also prevented
to extend this handler by placing the this._super call in a deferred.

* Some web_editor dialog extended the save callback but forgot to use
the this._super, which prevents the "saved" event to be triggered
(currently not used anywhere but useful for custo and master).
2016-08-19 17:44:27 +02:00
qsm-odoo 9c07b67d10 [FIX] web_editor: visibility of customize snippet option button
Commit 57c09e8a8e was supposed to fix the problem but only made it
worse in some cases. Since the new option parenting system, the
customize button visibility should not be determined on creation as
parent and own options are appended on snippet focus. Also, removing
the dropdown header if it was alone was a bad idea as this is it which
contains the information of options and all the options have not
necessarily a <li/> tag in the dropdown.

For example, the many2one option has no <li/> in the dropdown and is
the only option of the field snippet. So with the previous commit, the
dropdown header was removed as there is no <li/> in the dropdown other
than this header. So as the header was removed, on snippet focus, there
was no way to determine the many2one option exists, so its on_focus
method was not called.

Now, the dropdown-header is always kept. The visibility of customize
button is determine on snippet focus.
2016-08-19 17:44:27 +02:00