Commit Graph
119914 Commits
Author SHA1 Message Date
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
Alexandre Kühn 9b1daa1218 [FIX] web: no running services in tests and benchmark suites
This commit fixes two issues:

1. No error when running several mocked service providers in tests

	Revision on https://github.com/odoo/odoo/commit/eea2366fd2b8398a6c8022f24adb722e5e16a6f4

	In the commit above, the intent was to turn off the logic about
	"Service Provider" in the tests environments. To do so, it was
	mocking the methods to deploy services (`_deployServices`) and
	the method to dispatch service calls (`_call_service`).

	However, this was not enough, because such a mocked service provider
	still tracks undeployed services. This is an issue in case there are
	several mocked service providers running at the same time, because it
	will raise an exception:

		https://github.com/odoo/odoo/blob/master/addons/web/static/src/js/core/service_mixins.js#L24

	Note that the tracked services are globally known by all services
	providers, because the properties `services` and `UndeployedServices`
	are objects that are set in the definition of the mixin.

	To fix this issue, the `init` method of the `ServiceProviderMixin`
	should not do anything on mocked service providers, so that they act
	as if there were no service providers at all in the system. In
	particular, those mocked service providers will not make changes on
	the shared properties `services` and `UndeployedServices`.

2. No running services on top of benchmarks

	The web client on top of the benchmark suite was not mocked in a way
	to turn off the "Service Provider" logic. Similarly to the JS test
	suites, services should not influence the execution of benchmarks.

Closes #26519
2018-08-22 14:20:48 +02:00
Sébastien Theys 416b810eb5 [FIX] web: prevent textarea vertical resize on chrome
Since we correctly compute the height of the field, we don't want to let the user resize it vertically.

This was already working on Firefox because it doesn't require the field to be in the DOM to read the resize attribute, but Chrome does require the field to already be in DOM.

Task: 1869469
PR: #26518
2018-08-22 14:10:06 +02:00
RomainLibert daec1d0440 [FIX] sale: move sale_report filters to_invoice/fully_invoiced in enterprise
These filters were using a field defined in enterprise.
They are now added by the sale_enteprise module.
2018-08-22 14:07:14 +02:00
Jeremy Kersten e3ecc989b1 [IMP] website*: allow to customize img for OpenGraph/Twitter
Now specify og for a model is more generic, and done python side

This commit closes #25430
2018-08-22 14:02:39 +02:00
Kishan Gajjar 546dfd7d86 [IMP] website_forum: Remove meta from website_forum template.
add default meta tags into product page by override '_default_website_meta' in Forum
2018-08-22 14:01:32 +02:00
Kishan Gajjar 25166653c6 [IMP] website_slides: Remove meta from website_slides template.
add default meta tags into product page by override '_default_website_meta' in slide.slide
2018-08-22 14:01:32 +02:00
Kishan Gajjar 8d76c01a82 [IMP] website_event: Remove meta from website_event template.
add default meta tags into product page by override '_default_website_meta' in event.event
2018-08-22 14:01:32 +02:00
Kishan Gajjar f87d1dad94 [IMP] website_blog: Remove meta from website_blog template.
add default meta tags into product page by override '_default_website_meta' in 'blog.post'
2018-08-22 14:01:32 +02:00
Kishan Gajjar 769d305bc5 [IMP] website_sale: Remove meta from website_sale template.
add default meta tags into product page by override '_default_website_meta' in product.template
2018-08-22 14:01:32 +02:00
Kishan Gajjar 156955de6b [ADD] website: Added a feature to set opengraph/twitter meta image from SEO dialog.
With this commit now user can set custom meta image from the seo dialog. If the
user sets such image then it will be displayed when the user shares that URL in
social sites.

By default, it will show the list of images used in the current page.
Alternatively, user can use media dialog to select/upload images. By default, it
will take the company logo as a meta-image.

We also improved how custom meta tags are handled for different pages, Now we can
set custom meta tags based on the model and we can override '_default_website_meta'
method in case you want to change default meta values from the specific model.
e.g. For products displayed on the shop, if we want to change the value of
og:image to product specific images instead of default logo

In future, it will be used to add model specific metas like og:price, og:currency

We passed 'website_company_id' in frontend session info because we display
company logo in dialog for all pages. We can't use /logo.png as it is not
updating in multicompany and multiwebsite.

task id: 1835370
Closes: #25430
2018-08-22 14:01:32 +02:00
Olivier Colson 05a9a095fb [FIX] account: settings: remove wrong id on div 2018-08-22 13:56:43 +02:00
Christophe Simonis 31679cd81b [FIX] project: correct syntax
Oversight of previous forward-port
2018-08-22 13:19:36 +02:00
Christophe Simonis 4f62d6dd8f [MERGE] forward port branch saas-11.4 up to ef6b574eda 2018-08-22 12:02:30 +02:00
Florian da Costa 2bcb1b1ca5 [PERF] stock: states 'not it' values changed to 'in' opposite.
Purpose: databases with lots of stock moves (3M+) can experience
slowness
 when computing quantities on hand and forecasted.

Before this commit, the domains built to compute those quantities from
stock_move contained (state not in [done, cancel, draft]). Done and
cancel states represent around 95-99% of stock_moves in a normal
instance. So selecting all stock_moves then removing done and cancel
 ones if truly less efficient than taking directly the 'waiting',
'assigned', ... moves especially that the state in indexed in database.

After this commit, the domain is build with :
(state in [...]) with other state than 'done, 'cancel' and draft.

This commit is related to the PR 23030. Thanks to all people that have
took part of the conversation and florian-dacosta for the commit
2018-08-22 11:53:56 +02:00
jem-odoo f201e720c4 [FIX] sale_timesheet: remove confusing currency rates
The test of reporting is executed in the same currency
then the company (USD as default). But in the demo data
there is a bad currency rate converting USD into USD
with a rate of 1.5289.
This commit removes the confusing currency rate
in order to make the test running in a more
stable environment.
2018-08-22 11:52:52 +02:00
Sébastien Theys 14b9e9c92d [FIX] web: give correct size to o2m textarea at init
Before this commit, a textarea inside a one2many would only have the correct size after focus or on change.

When we select a line, we want all of the textarea of the line to have the correct size even if they are not directly focused.

Task: 1869469
PR: #26430
2018-08-22 11:51:30 +02:00
Sébastien Theys 289adeb63f [FIX] web: properly resize textarea when its value changes
Before this commit, a textarea would not resize when its value changed if the event was different than "input" or "focus".

This commit fixes it by also listening to the "change" event, and by triggering it at appropriate times.

PR: #26430
Task: 1869469
2018-08-22 11:51:30 +02:00
Sébastien Theys 4310b11df5 [FIX] web: compute the correct height for textarea autoresize
The box-sizing property was not correctly taken into account.

- content-box is the standard behavior: border and padding are added after the height
- border-box needs attention: border and padding must be included into the computed height

Task: 1869469
PR: #26430
2018-08-22 11:51:30 +02:00
Sébastien Theys 241704536d [FIX] web: allow o2m navigation to work from required inputs
In a one2many, pressing ENTER or TAB from a required input (of type text or char) that is on the last editable column of its line would fail to navigate to next line.

The issue was that the validation of the required field would happen before the change to its value was actually applied.

This commit fixes it.

PR: #26430
Task: 1869469
2018-08-22 11:51:30 +02:00
Demaret Rivarola Johan 46bfe9ad65 [FIX] project: kanban examples modal
- tab not showing: fade animation was causing the issue.
- redirection to home: button instead of anchor to avoid
redirection to target href

Task #1878160
2018-08-22 11:23:26 +02:00
Adrien Dieudonne e0aec7f0a4 [REF] test_mail: update counters due to enterprise ocn_client add
This commit is related to enterprise commit that replaced mail_push.
It is about:
[MOV] ocn_client: Odoo Cloud Notification for mobile push notifications
odoo/enterprise@7587be4663

Indeed counters are impacted by code located in enterprise because
those are "maximum queries" counters.
As ocn_client is an auto-install module enterprise runbot would
be broken if the counters weren't updated.
2018-08-22 11:16:14 +02:00
Alexandre Kühn 7aca511b4c [FIX] mail:tests: remove leftover 'debug: true' 2018-08-22 11:14:58 +02:00
qsm-odoo 7c1695650a [REF] website, *: clean demo data and some default main data
* social_media

- Remove action server demo (out-dated and buggy)
- Remove website app / themes app actions (useless)
- Move demo social media to the social_media addons
- Use same contact us page for demo website 2
- Improve edition of contact us and about us pages by using snippets
  as default contents
- ...
2018-08-22 11:02:25 +02:00
Deep Patel 909c80125b [FIX] delivery: fix delivery method arrow buttons
Before this commit, arrow is on the right side of text.
2018-08-22 10:55:08 +02:00
Luis Ernesto Torres Macías 4a4e564c2c [FIX] account: compare datetime.date to datetime.date
Cannot compare datetime.date to '0000-00-00' as it's a string, must be a datetime.date
2018-08-22 10:53:29 +02:00
Akash Bhavsar 2407b4d457 [IMP] maintenance: added effective date field in equipment & tools
Add effective date on maintenance equipement. The purpose is to define
when the equipment is put into service.
Adapt next preventive maintenance according to effective date

Task id: 33188
2018-08-22 10:48:13 +02:00
Jeremy Kersten 1cfaa12012 [IMP] server: --test-enable support tests directory without import
Before this commit, if import from tests directory was not in the __init__ file,
it was not possible to launch it with --test-file cli.

Now we only check in test directory if file exists.

This commit closes #26500
2018-08-22 10:08:30 +02:00
Jeremy Kersten 2431e2a9ea [FIX] web_editor, website: remove useless code / comment
Rebase failed, these lines should be no more there.
2018-08-22 10:08:30 +02:00