Commit Graph
114416 Commits
Author SHA1 Message Date
nla-odoo 3604cf544e [FIX] stock: fix typo crash on forecasted products 2017-12-13 10:33:33 +01:00
rde c8c52cd272 [FIX] website_event(_track): changing event menu name break behavior
Before this commit:
To know if an event menu is an auto generated one (eg: location, register..),
it checks if the menu name is the same as the hardcoded one in
_get_standard_menu_entries_names.
If user change the menu name, the code won't retrieve it and will act as if the
menu had been deleted and it will recreate it.

This leads to 2 bugs:
*First (website_event)
 - Change menu name from website_event (eg: location, introduction or register)
 - Check/Uncheck 'Track on website' or 'Track Proposals on website' to force
   the code to rewrite missing menus.
 - Go back to the event front end, theses menus have now been recreated, and
   are duplicated.

*Second (website_event_track)
 - Check 'Track on website' on event's back end
 - Change the 'Talks' menu name in front end
 - Go back to backend, 'Track on website' is unchecked because
   _compute_website_track won't retrieve an event menu named exactly 'Talks'

Now:
We don't use euristics to try to recover missing menus.
We just create related menu when option is checked, and we delete them when
option is unchecked.
To know which menu item comes from which option, we store a value in a new
model 'website.event.menu'.

We don't want to try to check if the menus are all there and recreate them if
needed anymore. There is cases where user wan't to delete a menu and repace
it with a link to that menu's URL in the page content.
Before this commit, the option would've been unchecked since it won't
retrieve the menu.
2017-12-12 17:46:32 +01:00
Adrian Torres 9a7fd72197 [ADD] social_media: new module for social media
This technical dependency module adds settings to res_company for the
company's social media pages.

It is introduced to fix duplicated fields for res_company in website and
mass_mailing, these two modules now require social_media as a dependency
2017-12-12 14:56:59 +00:00
Raphael Collet ba25420312 [REF] tests: decorators and method to count queries (#21499)
Add the context manager method `assertQueryCount` to count queries,
the decorator `@users(...)` to execute a test for several users, and
the decorator `@warmup` to execute a test twice (warm-up, then real).
2017-12-12 15:52:35 +01:00
Thibault Delavallée cde06d5f5c [IMP] test_mail: move some data into demo and update tests accordingly
Creating data directly in tests was done when tests were located in mail
module to avoid creating real data or demo. Now that mail tests have their
own module we can create demo data and use them in tests. It is simpler to
have demo data for things like subtype and email templates to ease
understanding and reuse.
2017-12-12 15:46:37 +01:00
Romain Derie 56ae134bb2 [FIX] website: allow user to create/remove website.menu
Before this commit, an user could not create or remove a website.menu since
there was no list/form view for it. Changing sequence also impossible.
Therefore, it was impossible to create or delete a menu from an event. (you
could just edit the existing one)

Now, user can access in debug mode to the list and form view of website.menu to
manage the menus.

This commit also add a link on the ir.ui.view form view to access it's related
website.page

This closes #21302
2017-12-12 15:27:51 +01:00
jem-odoo 5bbd1b1790 [MERGE] rating,project: rating as project dependency
Impacted modules: rating_project, project, sale_service_rating,
website_rating_project and rating.

This merge remove some small modules to integrate them
directly into big one; indeed, we wanted to set rating as
dependency of project module.

As consequence, we see:
- rating_project is removed (its features) are included in
project, hidden with a group
- sale_service_rating is absorbed by sale_timesheet
- website_rating_project is moved into project too, so the
rating page does not depends on website anymore

No feature change, simply moving code, and reorganize some ;)
2017-12-12 14:18:13 +01:00
jem-odoo 0f08bafd00 [FIX] project: bad help message in settings 2017-12-12 14:06:29 +01:00
Jérome Maes d7d30f69d7 [REM] website_rating_project: move feature in project
Displaying the rating of project is moved directly
in project module, since it does not depends on website.
User may want to display rating of its support project
even without website.
2017-12-12 14:06:29 +01:00
Jérome Maes 93adbdbb20 [IMP] project: simplify filters for rating
Since rating in on project directly, and task
and issue are merged, we can simplify some domain
and replaced them by default filters.
The search domain will be less complex and the
performance will be better.
2017-12-12 14:06:29 +01:00
Jérome Maes 95698bd408 [REM] rating_project: kill the module and move feature in project
Impacted modules: project, rating_project,
sale_service_rating and website_rating_project.

Removed modules: rating_project and sale_service_rating.

Move code to empty 'rating_project' module, in order
to kill it.
Code is not modified, simply copy/paste at the right
place in 'project' module code.

However, 'enable rating on task' options is convert
into a res.groups that can be activated from the
project settings.
2017-12-12 14:06:29 +01:00
Mahendra barad 945b71cb2b [MOV] (website_)sale_stock: move customer portal directly into sale_stock
Customer portal is not dependent from website anymore. In this commit we
move customer portal code related to sale stock directly in sale stock
instead of website sale stock.
2017-12-12 10:56:13 +01:00
Pierre Masereel 598f4f7315 [REF] delivery: pacakage weight tooltip 2017-12-11 14:18:44 +01:00
Pierre Masereel 7e89865ea1 [REF] product, stock: packages wording 2017-12-11 14:03:58 +01:00
Denis 'Ledur' Vermylen d0dcd22456 [IMP] hr_holidays: tree views cleaning 2017-12-11 13:49:36 +01:00
Denis 'Ledur' Vermylen b8c95c2e0b [IMP] hr_holidays: menus reordering and cleaning 2017-12-11 13:49:36 +01:00
Richard Mathot 6cc5ebed1a [FIX] hr_holidays: prevent crash when no employee is linked to the user 2017-12-11 13:49:36 +01:00
Denis 'Ledur' Vermylen 1f563b713d [IMP] hr_holidays: leaves allocation per department 2017-12-11 13:49:35 +01:00
Richard Mathot 8106788788 [REM] *: clean unused key 2017-12-11 13:49:35 +01:00
jem-odoo b2347b6821 [IMP] sale_stock: expense policy should not impact delivered qty on SOL
When making a SO with a stockable product with an expense policy set,
confirming
the SO will increase the delivered quantity according to the validated
picking. But
when unlocking and modifying the ordered quantity on picking the
delivered quantity
on SO does not change (it is if the product have no expense policy).
So the expense policy influence the flow in a way (update validated
picking) but not
on the the other (confirm SO) to compute SO line delivered quantity.

This commits make the expense policy not relevent when modifying ordered
quantity
on picking.
It also prepare the cleaning to unify API of delivered quantity
computation on SO
line for stock and service.
2017-12-11 11:34:10 +01:00
jem-odoo 537435299b [IMP] analytic,hr_timesheet: force partner from task or project
Since partner is not required on analytic account, nor
on AAL, we may have lines related to different partner (a 'support'
project for instance, with task for different partner, the AAL will
thus also have different partner). This use case is not possible with
the field override in account.
This commit will allow to do cost analysis by partner in the same
analytic account.
2017-12-11 11:34:03 +01:00
jem-odoo 00cdc5095a [IMP] analytic: clean account semantics
When installing account module, some field semantic on AAL
changed. Indeed this module modify some concept for its own
use cases.

Since analytic accounting is only used inside the company,
there is no interess to have the amounts stored in both
currencies. So the fields amount_currency, analytic_amount_currency
and company_currency_id can be removed. Doing that, we remove the
unfair related of account module.
2017-12-11 11:33:49 +01:00
jem-odoo 6272ac13ff [IMP] sale: factorize condition to determine sol on AAL
Simple code 'optimization' to make it clearer and reduce
the number of generated environnement.
2017-12-11 11:33:41 +01:00
jem-odoo 2bf369a172 [IMP] sale: better amount to invoice and invoiced computation
Since quantity to invoice and quantity invoiced
already take into account refund invoices, the
calculation of those amounts can be simplify.
Also, we simply need those on the sale.report,
so removing them from sale.order.line model
will ease performance.
2017-12-11 11:33:31 +01:00
Géry Debongnie f2a5ebe32f [FIX] web: properly handle setting stored in localstorage 2017-12-11 10:26:57 +01:00
Ivan Yelizariev 8a9900200b [REF] website_sale: remove obsolete optional_products variable
The variable is not used anymore.

This commit closes #21461
2017-12-06 20:24:46 +01:00
Richard Mathot f9a189e07e [FIX] hr_holidays: poorly designed demo data
If an user (or a developer) wants to install this module twice, she
could not before this patch. Because those demo data call a function
that crashes if the state of the demo data has been modified... and
modifies it!
We avoid this issue by resetting the states of the demo data
explicitely (before a deeper refactoring)
2017-12-06 17:00:25 +01:00
William Henrotin 2b19d9e95d [IMP] mrp: filter on 'this month' missing
by default, the filter on activities for the current month must be set
in the Overall Equipment Effectiveness
2017-12-06 16:27:08 +01:00
Prakash Prajapati f74d557334 [IMP] mrp: improve report Overall equipment effectiveness. 2017-12-06 16:27:08 +01:00
fda-odoo 411afe54be [IMP] website_rating_project: redesign project rating page
This commit improves and cleans the project rating page;
 - statistics of top 5 rated in last 15 days in right column of the page
 - move progress bar for tasks on right side of the page
 - show the detail of a rating when mouse hovering on the smiley

Since the page is refreshed, the statistics computation is done
with a single SQL request to extract all raw data to calculate
period and partner stats to display.

Thanks to @ror-odoo for the first implementation and to @jem-odoo for its review
2017-12-06 16:02:29 +01:00
Thibault Delavallée ebc4704b21 [FIX] test_mail: update counters
It seems query count oscillates between 45 and 46. I will have to check
but let us raise it a bit to avoid random red runbots.
2017-12-06 13:12:32 +01:00
Christophe Simonis 8ac9e3b667 [MERGE] forward port branch 11.0 up to acff087b01 2017-12-06 12:54:37 +01:00
Christophe Simonis acff087b01 [FIX] point_of_sale: use defined variable
Oversight of previous forward-port
2017-12-06 12:53:39 +01:00
dip-odoo 8eea65b61d [IMP] mail: add a 'Done & Schedule Next' button in activity wizard
Purpose
=======

Users often log an activity and want to schedule another one immediatly.

We should limit the number of clicks

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

- Mark as done should be a secondary button
- Add a new secondary button : DONE AND SCHEDULE NEXT
- It should mark the activity as done and close the modal
- It should open a new activity modal

Behavior and available options are now the same in the Chatter modal and
the wizard itself. It implies correcting the crm_tour flow
2017-12-06 12:40:41 +01:00
Nicolas Lempereur b1886ef60e [FIX] google_{account,calendar}: typo PY3 01e35141
When an error happen (which may have been intended as such and ignored
down the error pipeline) in google_account/google_calendar there was
some typos that tracebacked.

opw-783271
closes #21263
2017-12-06 12:40:41 +01:00
Christophe Simonis 8ef7af6afe [MERGE] forward port branch 11.0 up to f96a797fe6 2017-12-06 12:02:58 +01:00
Christophe Simonis f96a797fe6 [MERGE] forward port branch saas-16 up to b8540eefe3 2017-12-06 11:59:38 +01:00
Thibault Delavallée 010add2903 [FIX] test_(performance/mail): better use test_performance in test_mail and update counters
Containing

 * fix self._round not always existing;
 * fix counter for activity creation;
 * use self.str() in order to have some variation in test_mail;
 * separate base performance to mail feature specific performance tests;
2017-12-06 11:33:10 +01:00
Arnold Moyaux 3beffd3a34 [REF] hr_maintenance: rename to Maintenance - HR 2017-12-06 10:25:55 +01:00
Arnold Moyaux dfb50572eb [REF] maintenance: rename to maintenance 2017-12-06 10:25:55 +01:00
Arnold Moyaux 992b13e382 [IMP] mrp: kanban view, see working user
This commit add an icon for each people that worked on the Wo
and also
a play icon if the WO is in progress
a pause icon if the WO's workcenter is blocked.
2017-12-06 10:25:55 +01:00
amoyaux 2c0211f94d [REF] mrp: move step from quality_mrp to workorder 2017-12-06 10:25:55 +01:00
qsm-odoo dc5755698c [FIX] web: restore saas modals
This commit basically reverts 4974f8edb7
The fix was unstable (as restoring a feature that was not there
before release, even if originally merged before). This was in
particular breaking saas modals as lots of them are still opened
using 8.0 system... and opening them this way might make them appear
below their own backdrop in the new system the mentioned commit
restored.

We will think about that feature again for a future version.
2017-12-05 18:45:58 +01:00
Goffin Simon c487381dbf [FIX] pos_restaurant: Installing pos_restaurant with demo data
When installing the module pos_restaurant with demo data, the check boxes for
module_pos_restaurant and is_table_management must be checked.

opw:785943
2017-12-05 16:56:30 +01:00
Christophe Simonis b8540eefe3 [MERGE] forward port branch saas-15 up to 970be94f37 2017-12-05 16:46:14 +01:00
Christophe Simonis 970be94f37 [MERGE] forward port branch saas-14 up to e9c2dcd28d 2017-12-05 14:52:16 +01:00
xmo-odoo 96fcd4b56c [FIX] website_sale_stock: don't break product from non-website routes
Fixes #21442
2017-12-05 14:35:31 +01:00
Yannick Tivisse 03375dad3c [FIX] product: Hide product variant field if option not actived
Purpose
=======

If the group_product_variant is not activated, the field should be hidden
2017-12-05 14:26:56 +01:00
Christophe Simonis e9c2dcd28d [MERGE] forward port branch 10.0 up to dd7ee15fb8 2017-12-05 14:21:11 +01:00
Christophe Simonis dd7ee15fb8 [MERGE] forward port branch 9.0 up to ce038f5d15 2017-12-05 13:52:02 +01:00