Commit Graph
134620 Commits
Author SHA1 Message Date
Romain Derie 96d3fa4e01 [IMP] base, website: add ir.ui.view action to compare arch (wizard)
This commit adds the possibility to compare a view arch to another one.
The result will be shown in a diff viewer (github like).

This is following what was done at #32009

task-2190072

closes odoo/odoo#44646

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-03-17 15:58:45 +00:00
oco-odoo 0fc9adbe0b [IMP] account: tax tags: add a constraint ensuring a country is always set on tax tags
The use of such tags was not supported if no country was set on them (we need one to properly filter what to display in tax configuration). We just make it explicit by adding this constraint.

closes odoo/odoo#47813

X-original-commit: f76c2d92c58b2055bc906b32d47f192c615a46ed
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-03-17 13:19:37 +00:00
Nicolas Martinelli b463c956b4 [FIX] purchase: invoice status
1. Create a product A with 'Control Policy' set to 'On received
   quantities'
2. Create a PO for 10 units
   => status is `no`
3. Validate the PO
   => status is `no`
4. Receive 5 units
   => status is `to invoice`
5. Invoice 5 units
   => status is `invoiced`
6. Receive the remaining quantity
   => status is `to invoice`
7. Invoice the remaining quantity
   => status is `invoiced`

There is an inconsistency between steps 3 and 5: there is pending
material to receive, but the status is different.

This is due to the fact the `order.invoice_ids` is checked, while it
shouldn't affect the computation of the status.

The status should be `no` in steps 3 and 5.

opw-2206447

closes odoo/odoo#47802

X-original-commit: 15330712d2ea3c16c57e01c236c783a6febd1376
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-17 11:48:35 +00:00
Vishnu Thuletiya 21f7866367 [IMP] stock: add empty group in production lot form view
Currently stock.production.lot form view doesn't propose a second
column by default and the "column" component won't work from studio.
(It works well when no column exist, but not when one already exists)

So added an empty group for consistent studio customization in the
stock.production.lot form view.

closes odoo/odoo#47794

Taskid: 2043928
Closes: #47794
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-17 12:00:58 +00:00
Okan SUMER (osu) 48683ff315 [IMP] website_blog: clean blog.post code
This commit modify code to adjust or add small features :

- Add '(copy)' at the end of a duplicate blog.post
- Create a field that count the number of blog.post
  and adding it in the blog.blog tree view
- Add author_id column in blog.blog tree view
- Disable the modification of the number of comments and
  the is_published red label in the frontend
- Create a link anchor to the comments section on the number
  of comments (In blog.post frontend view)
- Redirect to the comment section of the current blog.post
  if logging in from the button in this same area

Part of https://github.com/odoo/odoo/pull/46242

task-2201675

closes odoo/odoo#46242

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-17 14:04:08 +00:00
Okan SUMER (osu) 9dca556b78 [IMP] website_blog: adjust demo data
This commit add and adjust some data from the demo data

- Modify the authors of blog.post
- Change the field website_published to is_published
  in blog.post to correct the date calculation
- Add comments to blog.post

Part of https://github.com/odoo/odoo/pull/46242

task-2201675
2020-03-17 14:03:08 +00:00
Mohammed Shekha 0c67b249a6 [IMP] sms: do not wrap phone widget element in div
if we wrap phone widget element inside div then phone link will be clickable
inside studio mode, as soon as user tries to click on phone text phone call
will be trigerred, which is wrong in studio edition mode.

if studio edition mode is enable then clicking on phone text should not
trigger call, we already handle click in readonly mode on widget's
in form_editor.js -> _processField method but in phone widget sms module
changes  of phone widget and wrap it into div which makes phone text
and sms icon clickable and trigger phone call, to avoid this case remove
wrapping of widget inside div.

task-2118509

closes odoo/odoo#42685

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-03-13 11:30:33 +00:00
David Beguin 190dab8144 [IMP] website_livechat : add various tests on livechat and visitors
Adds Python tests and javascripts tours on livechat (website and visitor
integration). Because breaking livechat every two days in rush periods
(or even not) is getting quite annoying.

Those tests are testing :

- The client side flow (open livechat, send messages,
  send rating and close the livechat session)
- The channel and message author naming, visitor page view history
- Chat request flow (complete chat request flow, open empty operator's
  chat request and cancel due to visitor's new chat session)

Task ID : 2079087
PR #40052

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-17 12:21:48 +00:00
jdoutreloux 69b1e1a052 [IMP] sale_project : add create invoice server action to project
The possibility to create invoices from project tasks was being
introduced in industry_fsm_sale. This moves the server action to
sale_project.

Task-2191253

closes odoo/odoo#45650

Related: odoo/enterprise#8530
Related: odoo/upgrade#808
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-10 10:17:55 +00:00
Goffin Simon 724e0e498d [FIX] account: Salesperson for credit notes
Steps to reproduce the bug:

- Let's consider a posted customer invoice I for partner P
- Let's consider that the salesperson S is assigned to I
- Create a credit note CN from I

Bug:

The salesperson assigned for CN was the current user U instead of S

opw:2213607

closes odoo/odoo#47768

X-original-commit: 1968ef19f72a2d3fecc4093527c6ba15262dd295
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-03-17 09:22:23 +00:00
Goffin Simon 65a10c0e34 [FIX] account: Bank type should not allow reconciliation
Steps to reproduce the bug:

- Go to the chart of accounts
- Create an account A with user_type_id = "Bank and Cash"
- Go to form view of A and reconcilie button is hidden
- Go list view

Bug:

The reconcile toggle button was visible.

opw:2216244

closes odoo/odoo#47741

X-original-commit: 50c794e0c9be9ade7dd47bb9200351d8cfdc97b2
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-03-17 07:46:30 +00:00
Nicolas Martinelli b91085e5ca [FIX] sale_coupon: validity duration of coupons
- Create a Promotion Program with
  'Applicability' set to 'Apply On Next Order'
  'Promo Code Usage' set to 'Use a code', set a code (not required,
  only for easiness)
- Create a SO, use the code and validate
- In the Promotion Programs, open the coupon list

The Expiration Date is set to tomorrow.

The Expiration Date is not useful in this case, and it is computed only
because the default value of `validity_duration` is 1. However, the user
is not able to change it since `maximum_use_number` is used for
programs instead.

We set a default value to zero to avoid any confusing computation.

opw-2210794

closes odoo/odoo#47779

X-original-commit: 44e71f9192d8711cbaeac0088db55c3ff26813a1
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-17 09:59:23 +00:00
Swapnesh Shah ef043deafd [FIX] purchase_requisition: Display only Can be Purchased Products
Followup on c058562d73

Before this commit, Domain for `purchase_ok` on the field `product_id` was applied on the field level which was Replaced by multi-company domain on views.

With this commit, we combine both domains to Display only `Can be Purchased` products.

closes odoo/odoo#47778

X-original-commit: 842b8a383b7868a89cbd3d81b0065cce37606db4
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-17 10:14:40 +00:00
Mario Krajacic 4d9d90bae0 [CLA] signature for mkrajaci
closes odoo/odoo#47775

X-original-commit: 2b81684a0a472303a40e3c1487fd5f4334658737
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-17 09:48:34 +00:00
Jérémy Hennecart 5b74f54396 [IMP] survey: allow to add a description on page
The purpose of this task is to allow the user to create pages which describe
the next survey questions. He can now edit the description in a form when he
clicks on the info icon when he creates or edits a page/section.

Page will be displayed on the frontend in all cases. This allows notably
to have pages with some text / comment for presenters when doing live
action surveys.

Task 2182886
Pr #44271

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-17 09:37:37 +00:00
shs-odoo 4d9e317114 [IMP] hr_timesheet: Change the default group by on the timesheet.
Before this commit,
- In menu 'all timesheet', the group by was project > employee and
in menu reporting 'timesheet by Project' group by was project > employee

So after this commit, change the default groupby on those menu as:
- In 'all timesheet' menu group by: Employee > Project
- In 'reporting by Project' menu group by: Project only

closes odoo/odoo#47087

Taskid: 2194073
Related: https://github.com/odoo/enterprise/pull/8654
Related: odoo/enterprise#9076
Closes: #46017
X-original-commit: 523f0b2c1cbeb5e7b80412a1c4e6a440f41fea41
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-06 14:00:45 +00:00
Nicolas Martinelli 17e12603a2 [FIX] mrp: dynamic attribute
- In inventory app, create an attribute that is dynamic
- Create a product with a variant with the dynamic attribute
- Create a bom for the product with some specific component for that variant
- Open structure and cost

A crash occurs.

In this case, the object is a `product.template`, so a condition
product-specific shouldn't be checked.

The template is set at:

https://github.com/odoo/odoo/blob/3588487ab4ef867f7fb981a395deaf298eb4a4e4/addons/mrp/report/mrp_report_bom_structure.py#L107

opw-2198976

closes odoo/odoo#47769

X-original-commit: 3c476dee5d3a0cc0fde0f9c6620507a07929e4fc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-17 09:24:01 +00:00
Samuel Degueldre d4a83593c6 [FIX] web_editor: use media client width as default mediaWidth
Previously, when trying to compute the optimized width for an image,
if the mediaWidth option was unspecified, _computeOptimizedWidth would
return NaN, and in all the places where it was specified, it was
specified as 1920 meaning it was essentially useless.

This commit makes the media's clientWidth the default value for
mediaWidth, meaning that if options.mediaWidth is unspecified, the size
of the element in the page (if one exists) is used. This allows the
suggested width to be actually useful, instead of always suggesting
1920. Specifying a mediaWidth in the options overrides this value.

task-2215913

closes odoo/odoo#47767

X-original-commit: 644572819ab9a1525af6077dd20c63957eb9271c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-17 09:22:05 +00:00
Romain Derie 30f2f6fe1f [FIX] expression: 'select from not null' as subquery for x2many
Before this commit, the query to fetch records with/without relations would be
done in a separate query which results would be then passed to the main query.

This commit adds this query as a subquery of the main query to do it in the
same SQL query instead of separately.

task-2211013

closes odoo/odoo#47729

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2020-03-17 09:57:00 +00:00
Nisha patel ca666a7778 [IMP] sale: hide cancel button if record not saved
Purpose of this task is to clean up the orders interface with keeping
just the needed action buttons.

So in this commit we hide cancel button if the order is not saved yet.
it will also hide the cancel button for the rental order.

closes odoo/odoo#47579

Taskid: 2080191
Closes: #47579
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-13 12:29:44 +00:00
Julien Mougenot d678d516ef [FIX] web: action menus default select_all
Before this commit, the context sent by an action performed by the action menu
could hold an 'undefined' select_all key, which would cause the context evaluation
to crash.

Now, the select_all key is defaulted to 'false' and does not crash in actions that
do not provide it.

closes odoo/odoo#47745

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-17 08:26:25 +00:00
qmo-odoo 7cdf8c25a6 [IMP] (website_)event: improve demo data
In order to have an easier and better time showcasing the functionalities of
event, demo data had to be improved.

LINKS

closes odoo/odoo#45372

Taskid: 2170834
Pr: #45372
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-17 07:56:17 +00:00
qmo-odoo ff6f006059 [IMP] event: avoid relying on data in tests
This commit removed the reference to a particular event.stage
and creates it instead.

LINKS

TaskID: 2170834
PR: #45372
2020-03-17 07:56:10 +00:00
Jesús Alan Ramos Rodríguez d0bb42916f [CLA] update cla for Jarsa
closes odoo/odoo#47734

X-original-commit: 815d8894b638685fe106e585f0f353587d1593da
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-16 20:42:24 +00:00
Yannick Tivisse 5f477f4f1c [IMP] fleet: Add a menu to vehicle models
Purpose
=======

This menu item seems to have disappeared, but in fact it's quite useful.

closes odoo/odoo#42111

Taskid: 2148537
Related: odoo/enterprise#7022
Related: odoo/upgrade#932
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-16 08:45:50 +00:00
Yannick Tivisse d77f5eb820 [IMP] hr_contract: Move payroll structure type from hr_payroll to hr_contract
Purpose
=======

Even if you don't manage your payroll using Odoo, it could interesting to
categorize your contract (CP200, ...), in case you manage several kind
of workers or employees in your company.

TaskID: 2148537
2020-03-16 08:45:50 +00:00
Andrea Grazioso (agr-odoo) 1b3f4c9144 [FIX] mail: remove constraint email_from from template
Create an Email Template without email_from
Create Server Action with Send Email
Establish email template as one created

User will be blocked because the template does not have a valid
'email_from'. This does not seems to be useful since the send action is
run via contextual menu, so the message by default will have the address
of the user performing the action.

opw-2213526

closes odoo/odoo#47703

X-original-commit: e083278fe18d491c487e6af4c9ac923acd36c74a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-16 13:36:24 +00:00
wan 2b769cf799 [FIX] l10n_lu: update 2020 PCMN and tax report
Part of task 2213464
PCMN was using wronc account types
Some tax section lines were not computed

closes odoo/odoo#47708

X-original-commit: 4e64a6c7e857f449695b469bfb5607bdbbc55abc
Related: odoo/enterprise#9271
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-16 14:17:02 +00:00
Xavier-Do b2b36524c2 [IMP] core: improve module loading logs
Performances from a general point of view can be difficult to track.
This commit proposes to improve logs in two ways:

The current logs only use the sql_counter, wich will only be updated
when a cursor is closed. In a test-enable install, this counter
is actually the queries of the tests wince the install cursor is
open untill the end. The first fix is to use bot sql_counter and
sql_log_count to have total queries untill now on closed cursor,
but also the current number of queries of the current cursor.

This means that the new log format will be
{nb} modules loaded in {time}, {loading_querie} (+{test_cr_queries}) queries
instead of
{nb} modules loaded in {time}, {tests_cr__queries}queries

Nothe that in the current version, {nb} is actually the total number of
loaded modules until now.

This commit also add an equivalent end log by module and change the
loglevel of module start on install (mainly usefull if an error occurs
before anything else is logged hidding the module causing this error.)

A cleaner runbot logger is also added, in order to be abble to call
_logger.runbot( instead of _logger.log(25. This will clarify the purpose
of such a log level.

closes odoo/odoo#47283

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-03-16 13:21:57 +00:00
Nicolas Martinelli a12479aaa8 [FIX] web: rounding error
In JavaScript, the following computation introduces numerical errors:
```
Math.pow(10, -4) = 0.00009999999999999999
Math.pow(10, -5) = 0.000009999999999999999
```

In the context of `round_decimals`, such errors propagate to
`round_precision`, ultimately leading to inconsistencies between Python
and JS (see #47300 for detailed use case).

Instead of computing `Math.pow(10, decimals)`, we parse the scientific
notation to prevent such inaccuracies.

We also introduce tests in line with the Python tests.

opw-2205092

closes odoo/odoo#47694

X-original-commit: cb471897bfa08d1fee6a9f49e90d9c120e1733fc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-16 12:01:57 +00:00
Nicolas Martinelli 0067aec0dd [FIX] l10n_gt: default currency
The default currency of Guatemela is GTQ.

opw-2201797

closes odoo/odoo#47693

X-original-commit: c253dc883ad84359e6db23150ab794368c07def4
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-16 11:26:49 +00:00
Andrii Skrypka cee6693165 [FIX] base: hide enterprise upgrade button
Combining a state and attrs does not work
Apply all in the same domain

closes odoo/odoo#47676

X-original-commit: 3588487ab4ef867f7fb981a395deaf298eb4a4e4
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-16 10:20:28 +00:00
Josse Colpaert 34f62ae8a6 [FIX] l10n_cl: country_id needed on account tags of type taxes
closes odoo/odoo#47571

X-original-commit: 026447e78c16a8648fe413912b1cf6d75d21be1a
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-13 10:28:57 +00:00
Swapnesh Shah f409a2a364 [FIX] account: Display monetary widget
Before this commit, the monetary widget was not applied to the `amount` field since there was no `currency_id` field on this view.

In this commit, We add `currency_id` field to make the monetary widget work.

closes odoo/odoo#47308

X-original-commit: 4205344cdc518e923a1f3be8cfca4c3ed2bfc3ef
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-03-10 15:23:06 +00:00
Nicolas Martinelli 186733686f [FIX] sale: reference in down payment
Make the reference at down payment creation in line with regular invoice
creation as done in:

https://github.com/odoo/odoo/blob/387969f16a60c72d2a85a6df1aea7a04acda5c9f/addons/sale/models/sale.py#L526-L547

opw-2215124

closes odoo/odoo#47633

X-original-commit: aa98750fa4f9b1278eaf7d656c0c1a8c81f86325
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-16 08:26:57 +00:00
bart.vanbossche cd8a25c20a [CLA] add bartvanbossche to DynApps CLA
closes odoo/odoo#46819

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-16 07:57:09 +00:00
Julien Castiaux 92b17aadd2 [FIX] sql_db: remove unused __closer
The `__closer` attribute is filled with the origin of a call to
`cr.close()`. That information is reused in the `check` decotator that
ensure the user is not using a closed cursor. In case he is using a
closed cursor, an error is raised with that optional origin in case of
`--log-sql`.

The attribute is a dundler so it is only accessible within its class, as
the decorator has been moved outside of the class by 058cf208a8 it is
not directly accessible thus `__getattr__` is called as a fallback. The
`__getattr__` itself is protected by the `check` decorator thus they
call each other in a infinite recursion.

As the related dundler is no more used internally, it has been decided
to remove it entirely.

closes odoo/odoo#47616

Task: 2199895
X-original-commit: 3ebf7cb9cca37b05f44aaffc0b1f289cc65f300f
Signed-off-by: Julien Castiaux <Julien00859@users.noreply.github.com>
2020-03-13 15:24:54 +00:00
Olivier Dony a61ddfe87b [FIX] reqs.txt: bump psutil from 5.5.1 to 5.6.6
Bumps [psutil](https://github.com/giampaolo/psutil) from 5.5.1 to 5.6.6.
- [Release notes](https://github.com/giampaolo/psutil/releases)
- [Changelog](https://github.com/giampaolo/psutil/blob/master/HISTORY.rst)
- [Commits](https://github.com/giampaolo/psutil/compare/release-5.5.1...release-5.6.6)

The only API-incompatible change in 5.6 is the removal of memory_maps() on
OSX, which we aren't relying on at this point:
  https://github.com/giampaolo/psutil/blob/master/HISTORY.rst#560

closes odoo/odoo#47632

Original-signed-off-by: dependabot[bot] <support@github.com>
X-original-commit: a6026a4fc47421b1c4a1a8e42b3f56ab61027209
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2020-03-13 17:45:27 +00:00
Nicolas Lempereur 1b561d3a15 [FIX] website_membership: show website_published field
On the website for portal and public users, we only show membership
products that are set as website_published.

But if you only install eg. website_membership there is no clear way
through "Members" > "Configuration" | "Membership Products" to set
product as website_published.

opw-2202766
closes #47342

closes odoo/odoo#47604

X-original-commit: 37e78b65f0aad84aef011fa607d1a2539d9c6175
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-03-13 13:43:13 +00:00
Arnold Moyaux 343e46d97f [FIX] mrp: modify linked move remove quantity done
- create product comp1
- create product finished1
- created bom: 1 comp1 for 1 finished1
- activate PBM
- 100 units of comp1 in stock
- create an MO for 5
- on the pbm, deliver 3 and no backorder
- on the mo, check availability, produce 3
- on the pbm, unlock, change delivered qty from 3 to 5

On the mo, the raw move is reserved to 5 units but the 3 units
used in the first produce are removed.

It happens because editing the quantity or initial on a move
will try to reserve the next moves. In order to reserved,
_do_unreserve will destroy the stock.move.line and _action_assign
(call just after) will recreate them in order to regenerate the
reservation. In the process the qty_done on the stock.move.line will
be loss. We want to avoid this behavior in mrp so we call
_decrease_reserved_quantity from mrp that will keep stock.move.line
with quantity done.

opw-2206472

closes odoo/odoo#47617

X-original-commit: c6cf5841015c87163f8ea16dd75232e5cb855df6
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-03-13 15:25:19 +00:00
qsb-odoo 522c2c6fab [FIX] l10n_za: add country configurations in taxes' tags
closes odoo/odoo#47613

X-original-commit: d520050a118cf3f77731cd04b93f17b7c2746f77
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-13 15:02:26 +00:00
qsb-odoo c9fca2a6bc [FIX] l10n_mn: add country configurations in taxes' tags
X-original-commit: 75eb7ecc62e7a795b535cd978b660a6219e36338
2020-03-13 15:02:26 +00:00
qsb-odoo 30aab7e077 [FIX] l10n_cl: refine csv and add new currencies through xml
closes odoo/odoo#47609

X-original-commit: d1c22762764c7b976bed7745d254e6d2e40a4307
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-13 14:20:49 +00:00
jvm-odoo 3f9c3b475c [FIX] web: fix control panel long breadcrumb
Issue

	- Install CRM and Events
	- Change Azure Interior Name with a
	  very long string
	- Click on "1 Events" smart button

	The view is shifted out of the screen

Cause

	In 12.0, the control panel was separated
	with 2 div where width = 50%

	Now they use flex. (they are still 50% width
	by default)

	The long name is hidden by a `overflow:hidden`
	and there is a `text-overflow: ellipsis` to
	avoid extra-width issue.

	The problem is that there is a `white-space:
	no-wrap;` which force an extra width and
	this cause the shifting.

Solution

	We come back to the 50% even if there is no search view.
	Breadcrumb will always be on the top left area of the screen
	which simplifies the code and avoid jumping left to right
	(taking all the width of the screen) which can be disturbing
	for users.

closes #47063

OPW-2210786

closes odoo/odoo#47603

X-original-commit: 019dc91020a461263c29004ef0c304a8f91abae9
Related: odoo/enterprise#9219
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-03-13 13:40:26 +00:00
Richard Mathot 75483b910b [FIX] base: link to Apps platform
closes odoo/odoo#47601

X-original-commit: 49c9383af9eee6b6d01dff0bc1016faa7a3f9400
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-03-13 13:38:52 +00:00
Nicolas Lempereur 8a3c39e1d1 FIX] website: link enable google maps required billing
Since 11 June 2018, enabling Billing on your Google Project used for
showing static maps is required.

So you would follow the only direction of Odoo "Create a Google Project
and Get a Key" and nothing would work since you still need to enable
billing.

With this changeset, we add a link to the Google page explaining maps
billing costs, current free usage tier and so on. And on this page the
"Get started" button will enable billing if needed.

There is another page with deeper explanation but it is very technical
and currently only available in english:

https://developers.google.com/maps/gmp-get-started

note: also improve text of has_google_maps option

opw-2210346
closes #47227

closes odoo/odoo#47599

X-original-commit: 6035bba8b679620dcbfc7ba620aafa13009ff616
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-03-13 13:25:06 +00:00
b7b2475cc2 [MERGE] *: ControlPanel Owl
Refactoring of the control panel with the Owl framework.

The MVC structure of the control panel has been changed to a 'component <-> model'
relationship. As such:
- Removed the old control panel: view/model/controller/renderer
- Created a new Owl Component (ControlPanel)
- Created a new class: the Model (an Owl Store did not fit here) and a newly
  designed ControlPanelModel extending it

Refactored all inner subcomponents, including:
- Pager
- ActionMenus (peviously SideBar)
- Filter menu
    > Custom filter item
- Group by menu
    > Custom group by item
    > Removal of groupby_menu_mixin (and refactored graph controller in sibling commit)
- Time range menu
- Favorite menu
    > Custom favorite item
    > Moved the favorite menu registry to the favorite_menu file
- Search bar
    > Removed and splitted auto-completion dropdown logic between the new SearchBar
      Component (descriptions) and to the new ControlPanelModel (domains).

The templates (all in web/base.xml) have been adapted to the new standards. Most
of the DOM structure remains unchanged with some occasional improvements (replace
hiding with not rendering, removed pointless wrapper divs, etc.).

Task 2196029

closes odoo/odoo#41268

Related: odoo/enterprise#7108
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Co-authored-by: Julien Mougenot <jum@odoo.com>
2020-03-13 17:11:16 +01:00
Julien MougenotandMathieu Duckerts-Antoine 804507ef49 [REF] *: Adapt all module tests to the new control panel
Use of the new control panel helpers to increase consistency and change the assertions
according to the new DOM/behaviour (e.g. components removed instead of turning invisible).

Part of task 2196029

Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-03-13 14:08:33 +00:00
Julien MougenotandMathieu Duckerts-Antoine bb8eb766a8 [REF] web: Control panel tests
Use of the new helpers in control panel (and subcomponents) tests and addition
of new tests.

Part of task 2196029

Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-03-13 14:08:33 +00:00
Julien MougenotandMathieu Duckerts-Antoine e68d3bb09d [REF] *: Adapt all modules to new control panel
Adaptation of the code throughout all modules to properly instantiate the newly
refactored control panel and update it accordingly.

Part of task 2196029

Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-03-13 14:08:33 +00:00