Commit Graph
119942 Commits
Author SHA1 Message Date
Raphael Collet 2f7c03d9ca [IMP] base: add regular user admin as uid 2
User 1 simply becomes a technical user (inactive, no password).
2018-08-23 21:38:57 +02:00
Raphael Collet 7ba9acea18 [FIX] fields: context on Many2many field 2018-08-23 21:38:57 +02:00
William Henrotin d78b6f5e25 [IMP] mrp: block updating live BoM
When modifying a BoM that is used in a MO not done, raise a blocking
warning to avoid inconsistenties at production.

Proudly pair programmed with pim <pim@odoo.com>.

Some mrp tests has been adapted to not raise the new error. They used
demo data while they should created inside the test.

This commit is related to task id : 1855566
2018-08-23 20:32:27 +02:00
RomainLibert dc91e3cb0e [FIX] sale: use m2o instead of integer
The field order_id is a many2one on sale.order and not an integer
2018-08-23 17:44:13 +02:00
jem-odoo 02645a6005 [IMP] uom: sql constraint is better than python one
Since we got 2 constraints checking the same
thing (one python, one sql), it is better
to remove the python one, which is not
very performance friendly in case of huge
import.
2018-08-23 17:28:07 +02:00
jem-odoo 69a898cf8b [IMP] uom: add constraints to force reference factor
When importing big amount of data, user can import
a list of uom. There is no constraint in Odoo to
force the factor to be equal to 1.0 for the reference
UoM in a category.
Onchange is not enought to ensure that constraint,
so this commit adds one in SQL for data intergrity
and to avoid problem in '_compute_quantity'
method.
2018-08-23 17:20:47 +02:00
jem-odoo aa1b7072f7 [IMP] hr_timesheet: Analytic account implies UoM
Since the employee is not required on a timesheet, and that
the employee implies the uom, and that the UoM is required
for the timesheet unit amount to be included in the delivered
quantity of a SOL, we now deduce the uom from the company of
the AA, and not from the company of the employee anymore.
2018-08-23 17:20:47 +02:00
Raphael Collet 5701d93624 [FIX] *: decorator returns on message_post 2018-08-23 17:01:22 +02:00
qsm-odoo 883da1d4d7 [FIX] hr_attendance: fix mistake in linear-gradient rule 2018-08-23 16:45:40 +02:00
jpr-odoo 966a13d03f [FIX] website_forum_doc: BS4, restore search bar design 2018-08-23 16:45:40 +02:00
qsm-odoo 9fc771dd5d [FIX] web: BS4, restore slider checkboxes
Take advantage of the new BS4 checkbox structure to simplify the
widget too.
2018-08-23 16:45:40 +02:00
Christophe Simonis 6fd68c28cd [FIX] core: use actual chrome/chromium executable on macOs. 2018-08-23 16:37:17 +02:00
Florent de Labarre d5357e4488 [IMP] uom: force factor to be 1 if reference unit
The _onchange_uom_type was already making sure it was the case but this
constraint ensure it is always the case.

Closes #25465
2018-08-23 16:29:21 +02:00
Aaron Bohy f6e5bd13d4 [FIX] web: Kanban QuickCreate: create on 'ENTER'
Rev. 241704536d highlighted a bug in the Kanban RecordQuickCreate
widget, when a form view is used inside the widget.

Let's assume a quick create form view with a char field. The user
fill in this field and press 'ENTER' (without focusing out). The
record is about to be created. But first, we have to ask all fields
to commit their value (through 'commitChanges'), in case they
wouldn't have yet. The char field thus notifies its parents of its
new value at that moment. The form controller handles this request
in its '_applyChanges' function, but this is done in its mutex (to
prevent overlapping onchange RPCs). Unfortunately, this leads to a
deadlock as the quick create form controller already executed the
'commitChanges' request in this mutex.

Actually, there is no need for the quick create form controller to
execute the 'commitChanges' request in the mutex, as it is already
properly mutexified upstream. This rev. thus remove the use of the
mutex at that spot.

Note that before rev. 241704536d, the bug didn't occur because the
'commitChanges' function of InputField didn't return a deferred,
and thus the mutex was unlocked directly.

To be complete, let us mention that there are still some
concurrency issues with the quick create widget (like multiple
records creation on double clicks or double 'ENTER' keypress).
Those issues will be tackled in a future commit.

Task 1878977
2018-08-23 16:18:32 +02:00
RomainLibert 3f2bc7b11f [FIX] various: adapt code to new datetime fields
Some code was still using the date and datetime fields as if they were
strings, but they are now dates and datetimes
2018-08-23 16:03:55 +02:00
Swapnesh Shah 0562fc0ffd [IMP] point_of_sale: add domain on field
Make sure the selected tip product is one available in the point of sale

Closes #25406
2018-08-23 16:00:26 +02:00
Mitali Patel ac41cd8195 [IMP] mrp: Change the condition 'and' to 'or' in product variants having the same attribute value
For example: I want to consume a component A if the product is grey OR yellow.
Currently,the component A will be consumed if the product is grey AND yellow. But this variant never exists as grey and yellow are values for the same attribute. So if the values are for the same attribute, odoo should check for a product that is GREY OR YELLOW (and not GREY AND YELLOW).

TASK-ID: 1865604
2018-08-23 15:54:23 +02:00
jem-odoo 5e73d121be [IMP] hr_timesheet: use correct view
When coming from project form view, the user can see
the list of timesheet. Before this commit, the employee
does not appears in the columns, which makes the view
less usefull for users.
2018-08-23 15:32:42 +02:00
Hiral Bhavsar c7899279a2 [IMP] account: usability improvements
- "Balance in GL" renamed "Balance in General Ledger" on dashboard
- "Entries to review" button on dashboard adds 'draft' filter by default
- streamline hover effect of 'import statement' option with other bank journal buttons' on dashboard
- better look for l10n_eu_service setting

Was task 46188
Was PR https://github.com/odoo/odoo/pull/22698
2018-08-23 15:28:35 +02:00
Hiral Bhavsar f3b513303c [IMP] l10n_de: rename "Deutschland" to "Germany"
Was task 46188
Was PR https://github.com/odoo/odoo/pull/22698
2018-08-23 15:28:24 +02:00
Raphael Collet 3ea11e6e6f [IMP] server: flag thread as testing when test-file runs 2018-08-23 15:21:06 +02:00
Divyesh Patel 5ecc390a80 [IMP] stock_account: change account move line description
This commit changes the account move line description created
by changing the cost of a product where inventory valuation is
'automated'. The new message contains the user name, the price before
and after.

Task Id: 1860578.
2018-08-23 15:20:32 +02:00
Kirti Choudhary a6557a2306 [IMP] product: easy creation of packaging from product form
The product.template form view lists all product.packagings containing it.
When we create a new packaging from the product. We don't need to specify
and display the product again.

Task ID - 1862041
2018-08-23 15:20:08 +02:00
Arnold Moyaux aeb038747f [FIX] mrp: split sam pull_push in two routes
Currently if the user want to apply the stock after manufacturing push
rule, he has to select manufacture rule on the product. That could be
easily forget by people not used to rule and route.

In order to avoid the push rule will be applied on warehouse. That means
the user don't have to select the route on the product and it will apply
depending the warehouse.

The pull rule stay on the manufacture in order to avoid confict with
reception route/rule.
2018-08-23 15:09:56 +02:00
Swapnesh Shah bb0df02bc1 [IMP] sale_{stock,management}: remove deprecated invoicing method
The option was removed in v9

Closes #22897
2018-08-23 14:45:40 +02:00
Martin Trigaux b303988827 [IMP] maintenant: clarify maintenance view
Previous inline was not very clear
Courtesy of Swapnesh Shah

Closes #22898
2018-08-23 14:40:44 +02:00
Jeremy Kersten 5b0327f650 [IMP] website, website_forum: add a class modal_shown on modal once css animation is completed
Use this new class in website_forum to avoid that the tour click during
the animation and fail randomly.

https://getbootstrap.com/docs/4.0/components/modal/#events
2018-08-23 13:49:01 +02:00
Vincent Schippefilt 2f4358b921 [FIX] web: view list grouped renders nicely
Before this fix, the list grouped did not render correctly when
the list was not selectable and there was 1 or 2 fields (the sum in the
footer was not aligned on the correct column)

Also fixed the fact that the group pager was not displayed if the list
had only 1 field and it was grouped
2018-08-23 13:10:07 +02:00
Vincent Schippefilt cb019bbb3b [REF] web: normalized indentation in list_renderer 2018-08-23 13:10:07 +02:00
Mitali Patel 62b962da0b [FIX] sale_management: fix override of _get_share_url not passing parameters
Related Task Id #1875591 . Closes PR #26369.
2018-08-23 13:07:51 +02:00
Raphael Collet 303a56e5d9 [FIX] mail: _compute_need_moderation() 2018-08-23 11:50:58 +02:00
Darshil Trivedi 7e9fc45109 [IMP] product: supplier info list view improvement
Add product uom and currency on product supplierinfo list view.

TASK-ID: 1868182.
2018-08-23 10:26:13 +02:00
Cedric Snauwaert 1f848bf9d1 [FIX] account: reconciliation tour
the tour was directly stepping to step2 without waiting for 10s due to empty run function. This was resulting in some random in the build depending on the speed
needed to display the widget.
2018-08-23 09:31:05 +02:00
Prakash Prajapati 123f1d1588 [IMP] stock: readonly for inventoried product
Create an inventory adjustment and select an inventoried product, the
inventoried product should be the only product selectable for inventory
lines.

Task: 1861241
2018-08-22 17:29:09 +02:00
qsm-odoo a754a77bd8 [FIX] web: restore odooBounce once again
The odooBounce (previously openerpBounce) function has been fixed many
times over the years. Each time breaking the layout a different way
after the backend was redesigned.

It is time for the proper fix: no more JS animation relying on jQuery,
instead: a CSS animation. Let's try a bouncing outline instead of a
bouncing button for a change.
2018-08-22 17:11:31 +02:00
Josse Colpaert 92172d0229 [ADD] iot: basic models + controllers server-side, print reports, measure widget
When an IoT box is configured as IoT box, it will
send all the information about itself and its devices
to its server.  This way the server knows which ip and which
devices are on the iotbox.  Reports and in the enterprise
version quality points will be linked to devices.
In the module iot, the models and the controller are defined for this.

There is also a javascript part with a widget for taking
a measure and the possibility to link any report with a printer device.
2018-08-22 16:54:57 +02:00
qsm-odoo 5c9e3e0060 [FIX] website: separate main content from footer content
The edition dropzones for the bottom of the main content and the top of
the footer content are at the exact same locations.

Until commit https://github.com/odoo/odoo/commit/514722d783d504151b6b835375de036eda88279f,
when trying to drop a snippet there, there were two cases:
- The user drops a snippet above/below the location -> the snippet
  is added to the main content (as the code searches for the nearest
  dropzone, and always return the first one in the DOM if several are
  found).
- The user drops a snippet around the location, seeing a snippet preview
  -> the snippet is added to the footer content

With the mentioned commit, the second case changed: the snippet is now
also dropped in the main content. While this is more logic, there is
no way to drop a snippet in the footer anymore. Adding a border on top
of the footer content solves the problem for now (as the dropzone will
now be at 1px different location).
2018-08-22 16:52:48 +02:00
Christophe Monniez 334804347a [FIX] tests: increase browser_js ready code timeout
Before starting a JS test/tour the _wait_ready method evaluates if the
test is ready with a timeout of 10 sec. From times to times, it happens
that the page is not ready after this timeout but the problem is hidden.

In order to help fixing that kind of issue, the timeout is increased to
60 sec and a warning is logged to emphasis the fact that an
issue exists.

Also some unused imports are removed with this commit
2018-08-22 16:17:38 +02:00
qsm-odoo 514722d783 [FIX] web_editor: properly drop a snippet on a 2 zones-location
Sometimes, two dropzones end up at the exact same location (if two
oe_structure are somewhat siblings for example). Before this commit, in
this context, if the user hovered that location with a snippet, then stopped
hovering that location, here is what occured:
- the snippet preview is dropped after the zone 1 and the zone 1 is hidden
- the snippet preview is dropped after the zone 2 and the zone 2 is hidden
- the snippet preview is removed and the zone 2 is shown again
- ... the zone 1 is forever hidden

After this commit, the snippet preview can only be dropped once.
2018-08-22 16:11:48 +02:00
qsm-odoo 11143aafb8 [IMP] website: only allow one snippet inside the custom footer
It was easy to mess with the footer unintentionally when dropping
snippets in the page. Now we only allow one "main" snippet in the
footer, solving the problem.
2018-08-22 16:11:48 +02:00
qsm-odoo c35cc4296a [REF] web_editor: review some dropzone code
- Remove useless code
- Make searching for the nearest dropzone more efficient
2018-08-22 16:11:48 +02:00
qsm-odoo 559ce05186 [FIX] web_editor: restore vertical dropzones
Dropzones between columns were displayed vertically, they were detected
thanks to their 'float' property. With BS4, columns are not floating
elements anymore, they use flex. So the code had to be adapted.
2018-08-22 16:11:48 +02:00
William Henrotin 701d0f0e1a [FIX] resource: allow to plan 0 hours
The method `plan_hours` does nothing if the `hours` parameter is equal to 0.
This commit adds the 0 case in the logic, and add an optional `resource` in the
parameters.

Example: A workorder works each days between 8am and 4pm. If we call
`plan_hours(0)` at 9pm, we want to get 8am the next day. Currently, it
sends back 9pm.

Before this commit, a hack existed consisting to send a very small value to
`plan_hours`. The holidays and non-working time were taken into account and the
result was rounded to the second.  We can now send explicitely 0 and the
non-working hours will be skipped.
2018-08-22 16:02:52 +02:00
David Arnold 5fdee3ddbb [FIX] stock: inventory adjustment: restore bbc9b329b5
After it has been unintentionally wiped out in
https://github.com/odoo/odoo/commit/ba5918ffcbe5fe9155308c53e014e5e93c588ca6

See: https://github.com/odoo/odoo/commit/ba5918ffcbe5fe9155308c53e014e5e93c588ca6#commitcomment-30056673

Closes #26355
2018-08-22 16:01:00 +02:00
Simon Lejeune 27e57599b0 [FIX] mrp: restore produce produce test
Restore and adapt test added from rev[1] and lost during the forward
port because the code was changed at [2].

Note that the original bug is fixed because we now have a produce line
by move line, so we can set the quantity done correctly acrosse the
reservation.

[1] f0028bc837
[2] 2678eba0be
2018-08-22 15:55:15 +02:00
Sébastien Theys e86d723c3f [FIX] web: prevent textarea scrollbar on Firefox
The following line is necessary to prevent the scrollbar to appear on the textarea on Firefox when adding a new line if the current line has just enough characters to completely fill the line.

This fix should be fine since we compute the height depending on the content, there should never be an overflow.

TODO ideally understand why and fix this another way if possible.

Task: none
PR: none
2018-08-22 15:51:07 +02:00
Martin Trigaux 1f35fc26be [REM] remove leftovers from deleted modules 2018-08-22 15:37:33 +02:00
Ankit Joshi dde71027db [Add] stock_picking_batch: Create batch picking report by location.
We have added a report for batchpicking that show picking operations
sorted by locations.

TASK-ID: 35645
2018-08-22 15:34:09 +02:00
Jeremy Kersten 5d0962698a [FIX] website_sale_wishlist: store wishlist in session + remove new_price
Now, we save wishlist_ids in session instead to save session_id in wishlist table
Remove useless field price_new.
2018-08-22 15:24:21 +02:00
XavierDo a4dfa6e354 [FIX] web, website: fix tests giving 404 error
-Some tests where moved without addapting the path to them:
path is now update and tests fixed.

-A picture was removed in commit 4dce6cc98b but
still referenced in template website_twitter_snippet.

-A test was missing a data leading to the wrong path to image beeing loaded
2018-08-22 14:41:02 +02:00