Commit Graph
117975 Commits
Author SHA1 Message Date
Priyanka Kakadiya a4290faebf [FIX] hr_holidays: set fallback timezone when user has none
Field tz is not mandatory on res.partners, so we need a fallback in case
it is not defined.

Related to Issue : 1856843
Closes #25206
2018-06-14 16:12:53 +02:00
Thibault Delavallée 8d6ee5cb08 [FIX] website_event: put location in calendar event only if there is an address
Otherwse there is a traceback. Anyway no need to put a void location.
2018-06-14 14:44:38 +02:00
Priyanka Kakadiya 645f64827b [FIX] point_of_sale: update method name to avoid conflict with another method
Because of same method name point of sale's onchange method overrides sale's
onchange method. Sale's method is therefore not called anymore.

Fix related to commit https://github.com/odoo/odoo/commit/e434690fe3adf884222b84e16dac3b3dcc0b12ad. See task/issue ID #1854683.
Closes #25116.
2018-06-14 12:09:29 +02:00
jem-odoo a3d81597d7 [FIX] sale_timesheet: cosmetic changes in table plan
This commit
- make the 'sold' and 'remaining' total invisible
for employee lines
- displays zero hours line in light grey
2018-06-13 10:34:25 +02:00
jem-odoo bcd34e83b7 [FIX] sale_timesheet: fix view mode
Actions returned by the plan project are directly
executed by the webclient. But their are not post
processed like other actions by /web/action, so the
'fix_view_mode' method is not call, and this causes
a mismatch between 'list' and 'tree' mode and type
on action.
This 'hack' is a bad legacy of the past ...
2018-06-13 10:34:14 +02:00
Pierre Masereel 4f04af5bab [TEST] stock: add tests to pick a pack 2018-06-12 17:22:00 +02:00
Pierre Masereel 76bb1c60df [FIX] stock: pick a pack
The package level was not set on move lines when a pack was pick. this
was caused by the _check_entire_package method on picking that anly
werked when there was no package_level (pick-pack-ship) and didn't
handle when the pack is picked.
2018-06-12 17:22:00 +02:00
Ankit Joshi b730a6190f [FIX] stock: location on picking form view
In picking receipts show the destinaion(https://goo.gl/TPNgqZ),
and picking delivery show the source location(https://goo.gl/HnBfNw)

task-1853350
2018-06-12 16:26:31 +02:00
Mathieu Duckerts-Antoine af999f40dd [IMP] *: review date type groupbys in search views archs
The parent commit allows to select a specific interval for any
date or datetime field in the groupby menu. This makes some filter
akward, for instance "Order Month".

Accordingly, we have rewritten the string and help attributes in
search views archs and removed groupbys related to the same field
(that would have become redundant).
2018-06-12 09:22:30 +02:00
Mathieu Duckerts-Antoine e1aac71769 [IMP] web: add support for interval selection in groupbys
In this commit, we extend the search view to allow the selection
of some intervals for date or datetime fields in groupby menu.
The valid intervals are day, week, month, quarter, and year.

It is also possible to add a button 'Group By' in the control panel
owned by a graph view in case it is declared 'embedded' (e.g. in a
dashboard view).

Note that have three new generic reusable widgets have been introduced
in this commit: DropdownMenu, GroupByMenu, and FiltersMenu.
2018-06-12 09:22:20 +02:00
Mathieu Duckerts-Antoine 7bf5dd687b [REF] web: split search_menus in separate files 2018-06-12 09:22:04 +02:00
Simon Lejeune e476c0f15f [FIX] web_tour: properly adapt to 9c262fe6f8 2018-06-11 21:45:08 +02:00
Christophe Monniez 9c25bcd5d0 [REL] saas-11.4 2018-06-11 20:52:39 +02:00
Pierre Masereel 76662a0a66 [REF] stock, delivery: entire package manipulation
We added a model to work easily with packages, using the quant packages
was not a good solution to move entire package and plan package moves,
because we always had to give the picking in context, and create some
move lines, so it was only possible when state was assigned (when move
lines exists)

So we created a model package level, linked to picking, move and move
lines allowing to easily plan package transfer and put in pack.
2018-06-11 17:46:19 +02:00
Adrien Dieudonne b4a8338959 [FIX] barcodes: hide barcode input 2018-06-11 17:01:33 +02:00
Simon Lejeune d4eb1e33a1 [FIX] stock: action_done: picking_type_id in created move
If the user only fills move lines and not move, this method will create
the needed ones. When creating them, a picking_type_id was not set.

task-1830757
2018-06-11 17:01:15 +02:00
William Henrotin d8887c5346 [FIX] stock: mandatory default source location
On the picking type form, the default source location is not mandatory
for 'customer' picking types. If this field is empty, creating a
'customer' picking will set a vendor location as source one.

task-1830757
2018-06-11 16:59:57 +02:00
Arnaud Baes 9c262fe6f8 [REF] web_tour: allows to include RunningTourActionHelper
Moves this class in an Odoo module so that other addons are able to
require and include the class in order to add different helpers.

This will be usefil in the `stock_barcode` module that will add a `scan`
helper.
2018-06-11 16:56:55 +02:00
Simon Lejeune cea38a8ea9 [REF] stock: scrap action
Complete the scrap action so that it doesn't crash for some reason when
called from a do_action in javascript.

task-183075
2018-06-11 16:56:55 +02:00
Arnold Moyaux aad104621c [IMP] delivery: package code not only in debbug.
It could be usefull for the user to create code that
couldn't be loaded by odoo.

task-30450
2018-06-11 16:33:52 +02:00
Arnold Moyaux 32b18dd07e [FIX] web: correct 'popup blocked' error message.
task-30450
2018-06-11 16:33:52 +02:00
Arnold Moyaux 6892cc8322 [IMP] delivery: handle multiple trackers
Easypost return multiple tracker links for a single
picking. Currently it returns one link per package.

*_get_tracking_link instead of returning a simple string,
it could return a list of list with data
[[tracker number, tracker_puclic_url], ...]
stored as a json dump.

This commit add a check on carrier_tracking_url
in order to check if it has a json format. In this case it
will log a note and will not use the url action.
2018-06-11 16:33:52 +02:00
dut-odoo a19236205a [IMP] sale, stock, website_sale: add easypost in settings
task-id: 30450
2018-06-11 16:33:52 +02:00
Simon Lejeune 17984be82c [REF] barcodes: form view: better error messages 2018-06-11 16:18:18 +02:00
MOENS Alexandre d13fb14f1e [REF] barcodes: pager: warn if a pager isn't present
If a barcode triggering an action on the pager was scanned while a pager
wasn't present in the page (see the workorder tablet view), a traceback
happened.

We display a warning instead.

Task: 1831245
2018-06-11 16:18:18 +02:00
MOENS Alexandre defff5f191 [REF] barcodes: form view: multiples button for a single trigger
This commit allows multiple button to share the same `barcode_trigger`
attribute. Note that it only makes sense if a single button is displayed
at a time.

Task: 1831245
2018-06-11 16:18:18 +02:00
Simon Lejeune 8c524b265a [MERGE] mrp, sale_mrp: produce wizard refactoring
See all components in the produce wizard, not only the tracked ones.
Task 55494
PR #24087
2018-06-11 16:07:49 +02:00
jem-odoo 8b0110df87 [MERGE] sale_timesheet: include expenses in overview
These commit mostly modify the profitability report to
extend it in order to include expense cost of a project.
If analytic entries are created on an analytic account
linked to a project, they will be count as expense
cost for that project.
So, if several project are linked to the same AA, the
same expense cost will appear in all those project
overviews, as they are linked to AA and not project.

This merge also provide test for the reporting view, as
it will probably change in future devs.

Task #49214
Closes #24593
2018-06-11 15:50:13 +02:00
jem-odoo 92b57a5781 [IMP] sale_timesheet: expense in project plan dashboard
On project overview, user can now see the expense
costs of the analytic account linked to the project.
It also displays the reinvoice amount of those costs
(based on their related SO lines), and computed like
the amount to invoice for invoice.

This commit also provides some tests to avoid problem
when modifying the SQL query of profitability report.

Task #49214
2018-06-11 14:52:04 +02:00
jem-odoo 7724bd0c2f [IMP] sale_timesheet: simplify the profitability report SQL query 2018-06-11 14:52:04 +02:00
jem-odoo 23b8b91fcd [FIX] sale_timesheet: exludes expense service SOL in plan project
In the table of the project overview, we don't want to
see sale lines generated from expenses and vendor bills.
2018-06-11 14:52:04 +02:00
Pratima Gupta 3935bdc3de [IMP] mrp: update mrp tests to the new 'Produce' wizard
New test :
- Create a MO with a finish product tracked by SN with a dozen as
quantity
- Click on produce button in order to open the produce produce wizard
The quantity to do is 1 dozen although the tracking is by serial number

Task #55494.
2018-06-11 14:46:53 +02:00
Pratima Gupta 2678eba0be [IMP] mrp: produce wizard improvement.
This commit makes several improvement in the 'Produce' wizard on Manufacturing Orders
such as :

1) In produce wizard, all components will be visible. (Regardless of tracking)
2) Quantity done will be equal to expected consumption.
3) Produce wizard line data filled from an onchange on final product
4) Reserved column is added to 'produce' wizard
5) When production order is done, we hide the column 'reserved'
6) In produce wizard, if consuming products are not available or in too small quantity,
the lines is displayed red

Task #55494.
2018-06-11 14:43:03 +02:00
David 1f30260f85 [FIX] website_form: metadata recording 2018-06-11 13:04:13 +02:00
Ivan Yelizariev 4f9d9d169f [IMP] website: multi-website snippets with the same key
Allow duplicate snippets to have different versions for different websites

This commit closes #24429
2018-06-11 12:45:09 +02:00
Olivier Colson 042e7862be [FIX] account: properly link bank account created via setup wizard with existing journals when choosing to do so
[IMP] account_bank_statement_import: bank account manual configuration wizard: when linking to an existing journal, change its statements source if the journal had an 'undefined' source.
2018-06-11 11:18:57 +02:00
jem-odoo 5e9cd951d6 [IMP] sale_timesheet: changing ordered qty update planned hours on task
When changing the ordered quantity on a Sales order line, the
planned hours of its related task will be updated too.
This is obviously applicable for SO line that have created
a task at SO confirmation.
If the SO is cancel, or put in draft state, updating the ordered
quantity will change the planned hours of the task. This operation
is however prevent on locked SO, since ordered quantity is a
protected field.

Task #1856984
2018-06-11 10:39:24 +02:00
Katherine Zaoral d1d529cbfc [FIX] project: fix warning when archiving still talking about issues, now merged with tasks
Closes #25111 .
2018-06-11 10:35:46 +02:00
Adrian Torres 503b8ed692 [FIX] *: cleanup (un|re)installation hacks
Replace hacks introduced in V11 by the proper solution.
2018-06-11 09:47:34 +02:00
Fabien Pinckaers c0aacce182 [IMP] crm: removed crm.opportunity.report, replacec by crm.lead 2018-06-09 20:53:50 +02:00
Fabien Pinckaers 9690685d65 [IMP] crm: removing object crm.opportunity.report
Use crm.lead instead of a the crm.opportunity.report object for
reporting. This allows to show more fields (e.g. tags_ids). The only
field not accessible in the report is #activities, but there is a
deicated report dedicated to activities.

Improved the default search. Example: when reporting on leads, you want
leads+opps by creation date (and not only leads) as an opportunity has
been a lead created too.
2018-06-09 20:45:09 +02:00
Olivier Colson 27c9705c00 [FIX] test_main_flows: fix tour, to make it work with the new stuff in accounting's dashboard 2018-06-08 22:53:47 +02:00
qdp-odoo 660be186fd [FIX] test_main_flows: let the redbot go green 2018-06-08 20:50:48 +02:00
Olivier Colson b30fed7a7b [IMP] account: facilitate bank account and bank journal config
With this change,
 * some modules are now set to be automatically installed by default
 * the setup bar of accounting has been changed in order to allow more easiliy the configuration of bank accounts/journals (and the step to oversee the opening entry has been removed)
 * the kanban view in the dashboard has been enhanced (mostly for bank journals, but not only)

Was task: 32668
Was PR #23049
2018-06-08 17:48:03 +02:00
Thibault Delavallée c879fb0f00 [IMP] calendar: improve scheduling meeting activities
After feedback from various uses, some improvements are made on the form view
to schedule an activity linked to meeting type

 * renaming the button to be more obvious that the user will be redirected
   to the calendar to schedule the meeting;
 * remove the note field to have a smaller form;

This commit is related to task ID 1819812. Closes #24169.
2018-06-08 17:39:30 +02:00
Thibault Delavallée 6b4ccf3e34 [MERGE] mail, various: make (some) templates bioutifoul
Purpose of this commit is to enhance quality of templates proposed by Odoo
and make them use notification layout when send by emails. Those emails
are cleaner and more up to date compared to other emails.

Main work of this merge is to ease the propagation of setting the
notification layout specification through various layers of mail.thread
post processing and to improve the various templates proposed in several
applications.

Impacted modules in this merge: event and event track, project (including
rating), gamification, product email template.

This merge is linked to task 51122. Closes #24052.
2018-06-08 17:27:25 +02:00
Géry Debongnie 247299b35b [FIX] web: increase timeout for warning in logs
Before this commit, it could happen quite frequently that the runbot
displayed a warning (coming from the JS) when some tests/tours were
executed.  This is the standard warning that some modules are not yet
loaded.  This is not harmful in anyway, but is visible in the runbot
logs.

With this commit, we increase the timeout to 6s.  This is not really a
good sign, hopefully cold starts for building assets will not
increase again in the future.
2018-06-08 16:53:50 +02:00
sed-odoo 22ee6df66b [IMP] fleet: Allow to search vehicles based on assignation logs
Purpose
=======
We can not get the list of vehicles who have been assigned to a driver.

Specification
=============
The user is able to get the list of the vehicles assigned to a specific driver, by searching the driver's name with the "Assigned to" filter.
2018-06-08 16:04:32 +02:00
Christophe Monniez 0e117c873c [REM] packaging: add sassc to the rpm package
Since 565277acbb sassc is used as a
fallback when the python libsass is not available.

With this commit, the saasc package dependency is added to the rpm to
avoid installing libsass with pip.
2018-06-08 15:47:07 +02:00
Pratima Gupta 37ea5dc316 [IMP] product_email_template: make email templates bioutifoul
Purpose of this commit is to enhance quality of templates proposed by Odoo
and make them use notification layout when send by emails. Those emails
are cleaner and more up to date compared to other emails.

Including
  * when sending the template attached to the product, specify the layout
    to use to encapsulate the notification email;

There is a huge ugly demo data of odoo online contained in this product.
After some thinking we choose not to modify it as demo data update will
belong to another task.

This commit is related to task ID 51122 (and PR #24052).
2018-06-08 15:39:18 +02:00