Commit Graph
133361 Commits
Author SHA1 Message Date
Romain Derie ca7bb63ebd [IMP] website: review 's_hr' snippet
To fit the general look&like of the left panel, the size elements should be
handled with an input to allow full control.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152191
2020-01-24 13:02:01 +00:00
Benjamin Vray 7572cc150d [IMP] website: review snippet tabs
Adding new options that are available through Bootstrap (Tabs or pills
class for nav-item. Alignment, menu horizontal/vertical, etc). Adding a
slide transition option. The snippet becomes also a drag&drop zone.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Benjamin Vray ca5f9ce26d [IMP] website: review snippet parallax
Make the parallax snippet empty (remove the title). Remove the padding.
Add style to the building block with a message to help user to drag
stuff into the snippet.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Benjamin Vray 80c4533eff [IMP] website: review snippet company team
Add padding top and bottom on title. Add padding bottom on the whole
block. Disable y-axis padding in the divs who are within the company
member divs. Do not allow to drop a company member div within another.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Benjamin Vray 9894eca37d [IMP] website: review snippet accordion
Adding arrows to move the items above and below each others and remove
the big title

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152185
2020-01-24 13:02:01 +00:00
Samuel Degueldre f34d7f4fab [IMP] website: review structure snippets
This commit reviews a bunch structure snippets to streamline their use
and edition, namely:

Banner, Cover, Picture and Text-block snippets:
- Remove extraneous levels of edition (buttons, heading/text only
columns)

Picture snippet:
- make picture bigger

Three columns and comparison snippets:
- Make regular column options available on the cards
- Remove unwanted UI elements (card footer, button)

Cover snippet:
- Make title bold

It also consolidates the main colorpicker and the column colorpicker
into a single option as they did the same thing and allows inner content
to be dropped next to images in the Image - Text and Text - Image
snippets.

Part of https://github.com/odoo/odoo/pull/42937
task-2088157
task-2152184
2020-01-24 13:02:00 +00:00
Sébastien Theys 25708586a7 [FIX] fields, test_new_api: fix m2m commands in batch
Before this commit executing m2m commands in batch would lead to undesired
results, such as duplicating the related records on every subsequent record of
the batch.

Indeed since [1] the `create` and `unlink` are called in a loop, but their
content was not reset at each iteration.

[1] 9920f20e4c

closes odoo/odoo#43950

X-original-commit: 0800f64b011c8f020c0d7dd6e1c149aebd1a4627
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-01-24 17:13:05 +00:00
Katherine Zaoral e7aeb6eb07 [IMP] l10n_ar: we active some document types by default and set the proper doc_code_prefix that it was missing
closes odoo/odoo#43938

X-original-commit: bb8927f01b6804884cc460be5f93acbeb40f20d2
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-01-24 14:38:25 +00:00
Xavier Morel 4baecc31df [FIX] website: reset password tour (in community)
The tour had been fixed for running headless, however that was only
checked in enterprise, and community turns out to have a more complex
loading sequence, and thus higher likelihood of dangling request: when
logging in, on enterprise the user lands on the applications screen
which performs no further RPC. On community however the homepage
triggers the Chatter action which can take some time to load after we
already see the user menu.

Add a community-only step which waits for chatter to load.

closes odoo/odoo#43936

X-original-commit: d7777044a7649a4809dd08f864bb8d43729b201e
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-01-24 14:37:15 +00:00
Simon Lejeune 9831f5603c [REF] stock_account: add a composite index on layers
closes odoo/odoo#43915

X-original-commit: 26fb669e0cca1c9efb8d9283755276551c608ce7
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-01-24 11:48:15 +00:00
Simon Lejeune 7ad5dd4d7d [FIX] stock_account: _run_fifo_vacuum
If the oldest problematic layer cannot be fixed, no need to try to fix
later one.

X-original-commit: f7ccf2b16803f05584fb094471b08f6836d892a1
2020-01-24 11:48:13 +00:00
Antoine Prieels 3006636820 [FIX] hw_drivers: KeyboardUSBDriver: pedals not working
Pedals plugged in the IoT Box were not sending any data to the
connected Odoo DB.

The name of the device couldn't be retrieved, and the pedals were given
the default name "Unknown keyboard or scanner".

Since this default name included "scanner", the device was recognized
as a barcode scanner and no data was sent until Enter was pressed,
which never happened.

closes odoo/odoo#43914

X-original-commit: dba811f67439807a67749e6a41dbf92f4060a326
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-01-24 11:44:53 +00:00
Katherine Zaoral 07f6479101 [FIX] l10n_ar: Proper filtered document types for foreign partners
When create an invoice for a foreign customer, the document types are not showed and filtered. This is happening because there is not journal defined for exportation operations. Once this one is created all the proper filters for the document types and journals are working ok.

This PR add a redirect warning when trying to create an invoice for a foreign partner when we do not have defined the expo sale journal. This also alert the user that is a missing configuration that is affecting to the compute of the available document types. I applied the same for the local/intern case

closes odoo/odoo#43913

X-original-commit: c7bd13bbd2879dded677bb223ff857fb9c959c60
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-01-24 11:43:30 +00:00
Jason Van Malder 59a50e7628 [FIX] survey: better datetime picker & fix date format issues
Issue

    - Install Surveys & Website
    - Create a survey with a datetime question
    - Install Spanish lang & set it up on website as the only language
    - Surveys > Your survey > Test

    Traceback

Cause

    There is a format mismatch because of field_utils.format.datetime
    but it's needed for timezone offsets.

Solution

    Format the field_utils.format.datetime result's into
    the datetimepicker format.

    I re-organized this part because it was a bit confusing and
    it handles error now.

OPW-2167397

closes odoo/odoo#43912

X-original-commit: b368b1db4a998a2369185218fe19fb84874f77ab
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-01-24 12:48:48 +00:00
jerome hanke (jhk) c107e983ca [FIX] portal: rtl is active even without website
Steps to reproduce:
- install sales
- install a language with rtl support
- set the installed language as preffered language for current user
- preview any sale order/quotation on the portal

Previous behavior:
the portal is not showed right to left

Current behavior:
rtl is working a intended

opw-2167151

closes odoo/odoo#43737

X-original-commit: 2855ac7a5b859e76bde39da2f584aed3ff7ec163
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-22 11:47:37 +00:00
laaandYannick Tivisse 7e09f931ff [IMP] hr_timesheet,industry_fsm: Display CTA buttons with computed fields
Purpose
=======

The various buttons in FSM are currently displayed based on a set
of attributes. As there are many different configurations possible
for projects, it makes a lot of conditions (= the code is a living
nightmare). This task aims at replacing these attributes by computed
fields in order to gain clarity and to avoid the various bugs we
recently faced + add python tests to ensure their robustness.

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

START/STOP/PAUSE/RESUME
-----------------------

- should not be visible if the task is marked as done
- should be visible in non-primary if Time > 0
- should be visible in primary if Time = 0
- when the timer is running, do not display the following
  buttons: Create Sales Order, Mark as done, Create Invoice,
  Sign report, Send report
- only visible if the 'Timesheet Timer' feature is enabled
  on the project

SIGN REPORT
-----------

- should not be visible
    - if Time = 0 AND Worksheet = 0 AND Products = 0
    - OR if the report already is signed
- should be visible in non primary if Time > 0 OR
  Worksheet > 0 OR Products > 0
- should be visible in primary if Time > 0 AND Worksheet > 0
  AND Products > 0
- once the report is signed, display an 'fa-globe Customer Preview'
  stat button redirecting to the webpage with the report
- only visible if the 'worksheets' feature is enabled on the project

SEND REPORT
-----------

- should not be visible if Time = 0 AND Worksheet = 0 AND
  Products = 0
- should be visible in non primary if Time > 0 OR Worksheet > 0
  OR Products > 0 OR if the report was already sent
- should be visible in primary if
    - Time > 0 AND Worksheet > 0 AND Products > 0
    - AND the report is signed
- only visible if the 'worksheets' feature is enabled on the project

MARK AS DONE
------------

- should not be visible if the task is marked as done
- should be visible in non primary if
    - Time > 0 OR Worksheet > 0 OR Products > 0
    - OR if Time = 0 OR Worksheet = 0 OR Products = 0
- should be visible in primary if Time > 0 AND Worksheet > 0 AND
  Products > 0
- only visible if is_fsm is true on the project

CREATE INVOICE
--------------

- should not be visible if the task is not marked as done OR if
  the SO linked to the task has the 'Fully invoiced' invoice status
- should be visible in non primary if the SO linked to the task has
  the 'Nothing to invoice' invoice status
- should be visible in primary if the SO linked to the task has one
  of the following invoice status: To Invoice, Upselling
- only visible if the Bill from tasks feature is enabled on
  the project

EXTRA QUOTATION + CREATE SALES ORDER
------------------------------------

no change of behavior

closes odoo/odoo#42508

Taskid: 2126857
Related: odoo/enterprise#6918
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Co-authored-by: Yannick Tivisse <yti@odoo.com>
2020-01-24 13:16:07 +00:00
Antoine Prieels abbbeb5714 [FIX] point_of_sale,pos_restaurant: Multiprint
Printed receipts are transformed into images by placing them into an
hidden `div`. When trying to print multiple orders, we did not wait
correctly between rendering the different receipts. Receipts were then
overriding one another while they were being rendered, resulting in
errors and missing receipts.

closes odoo/odoo#43907

X-original-commit: 00ba908d7b3d8b1145e4161ea8d9011ff6eea33d
Signed-off-by: Antoine Prieëls <aprieels@users.noreply.github.com>
2020-01-24 10:51:36 +00:00
Nicolas Martinelli ec3a947f3b [FIX] sale: customer reference index
- Create hundreds of SO with a Customer Reference set
- Select them all
- Click on Action Create Invoices

The following error is raised:

```
psycopg2.OperationalError: index row size 5480 exceeds maximum 2712 for index "account_move_line_partner_id_ref_idx"
```

The issue is similar to c545783b95, so is
the solution.

opw-2180139

closes odoo/odoo#43906

X-original-commit: dbd1858b623c5bf4c14c8de568c6addc7868b14e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-24 10:51:15 +00:00
Nicolas Martinelli cfc088de1e [FIX] mrp: default picking type from dashboard
- Create a picking type for operation 'Manufacturing Operation'
- From the dashboard, click on 'Production Order'

The picking type set on the MO is not correct.

This is because the current picking type is not used when choosing a
default value.

We set it in the context to do so.

opw-2171977

closes odoo/odoo#43898

X-original-commit: 3e2ee43fd0aa6a06d5d5ecd1ff669f4a09698330
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-24 09:54:06 +00:00
Hardik Prajapati dd5f793bea [IMP] web: Set a max width on company switcher menu
Purpose:
There is no max width on the company name of the 'switch company menu'
of the systray (o_switch_company_menu).
On smaller screens, and when in debug mode, it quickly either
linebreaks the systray of crops the menu items.
So set the max width and text ellipsis on menu.

task-1985500

closes odoo/odoo#43847

Closes: #43847
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-24 11:45:42 +00:00
Rémy Voet (ryv)andAnkita Raval bd2bbb27fe [IMP] mrp: add unbuild button on MO
In this commit:
- On done MO's form, add an Unbuild button, it would open a
wizard with the form view of an unbuild, and some pre-filled fields
such as MO, product, BOM, quantity and total quantity finished which
can be edited.
- In the unbuild order, improve the on_change of mo_id:
if the selected product is tracked by serial number,
set quantity to 1 by default and readonly
- Also clean the testcase of unbuild order.

task-2144636

closes odoo/odoo#43719

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Co-authored-by: Ankita Raval <anr@odoo.com>
2020-01-24 10:47:52 +00:00
Rémy Voet (ryv)andAnkita Raval 8458cc1867 [IMP] stock, mrp, repair: improve the insufficient quantity wizards
Improve the inherited wizards of 'stock.warn.insufficient.qty' by adding
some piece of information about the quantity involved. Also
change titles to integrated the related product into.

task-2144636

Co-authored-by: Ankita Raval <anr@odoo.com>
2020-01-24 10:47:43 +00:00
Rémy Voet (ryv)andAnkita Raval 106c583a10 [IMP] stock, mrp: add actions to unreserve
Add action to unreserve on the stock.picking and
on the mrp.production tree views.

task-2144636

Co-authored-by: Ankita Raval <anr@odoo.com>
2020-01-24 09:16:12 +00:00
Ankita Raval 3df9b446d0 [IMP] purchase: hide by default company/min_qty in product supplier infos
In this commit, on the product form, in purchase tab, the quantity
and the company fields of the vendor pricelist should be set
with optional = hide.

taks-2144636
2020-01-24 09:16:12 +00:00
Rémy Voet (ryv) b0d22b5752 [IMP] purchase_mrp: link MO<->MO<->PO in case of MTO
In case of MTO (+buy) on products used in a MO,
add the link between the MO source and the PO generated.
Also add links between MO's when MTO+manufacturing.

task-1913392

closes odoo/odoo#43366

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-01-24 12:04:47 +00:00
Rémy Voet (ryv) e1b3a17c3b [IMP] sale_mrp: link SO<->MO in case of MTO
In case of MTO+Mufacturing on product in a confirmed sale order,
add a stat button to the MO generated by this SO. Also add the inverse,
from MO to SO source document.

task-1913392
2020-01-23 15:00:01 +00:00
Rémy Voet (ryv) 5a1645a8f8 [ADD] sale_purchase_stock: link between PO<->SO in case of MTO
In order to improve the navigation between of SO and PO in the case of
MTO, add a direct link between PO<->SO. When the SO is confirmed
(with storable product(s) with MTO + buy),
PO is/are generated, in this case, add a stat button on each model form
to avoid to manually search the related SO with the source field (name).

task-1913392
2020-01-23 14:59:57 +00:00
Priyanka Kakadiya 46386f3868 [IMP] hr_holidays: do not show time in calendar
Task 2058477

closes odoo/odoo#36497

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-01-24 12:39:05 +00:00
Priyanka KakadiyaandMohammed Shekha 8e48ba3eb5 [IMP] web: show start time of regular event in calendar
With this commit, the start time of single day events is displayed
in the calendar view, in month mode. This only applies to non allday
events. This can be disabled by setting (already existing) option
'hide_time' to true on the calendar arch.

task-2058477

Co-authored-by: Mohammed Shekha <msh@odoo.com>
2020-01-24 12:38:47 +00:00
Mohammed Shekha 9dfb1262a5 [IMP] web: do not set text-muted on boolean_toggle click
currently if boolean_toggle widget is inside listview and if it is clicked and
set to false then listview row text set to text-muted, we want to remove this
behaviour as it is inconsistent and breaks any decoration-xxx set on the
treeview.

task-2179066

closes odoo/odoo#43754

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-01-22 12:35:04 +00:00
jerome hanke (jhk) 79e6d9f93f [FIX] purchase_requisition: currency updated on blanket order vendor change
Steps to reproduce:
- install contacts and purchase
- go to purchase > configuration > settings > activate "purchase agreements"
- go to general settings and activate multi-currency
- go to contacts > select a contact > edit > sale & purchase > change the currency
- go to purchase > purchase agreements > create
- change the agreement to a blanket order > add your modified contact as the vendor

Previous behavior:
the currency is not updated

Current behavior:
the currency is updated on vendor change

opw-2177431

closes odoo/odoo#43877

X-original-commit: 764135630949eb01cb2b3a4a19d6ec5b1bd39400
Signed-off-by: mightyjol <jhk-odoo@users.noreply.github.com>
2020-01-23 19:10:57 +00:00
oco-odoo e5720203fc [FIX] l10n_ch: QR codes: use EUR ISR reference instead of CHF when the payment account is not in CHF
closes odoo/odoo#43868

X-original-commit: 6d69a72dd297f99c5e43ec50ab174df9ae9daca5
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-01-23 16:12:19 +00:00
Bertus Kruger 177cec0241 [FIX] stock: correct typo in error message
closes odoo/odoo#43863

X-original-commit: fd33eb4eb20d3d2985656333c3711bba34fb8dc5
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-01-24 07:34:34 +00:00
Odoo's Mergebot d065a38acb [FW][IMP] core: reporting of browser logs / errors during setup
Improve handling of JS logging in headless runner in order to avoid losing logs
and errors e.g. the issue fixed by odoo/odoo#41231 passed because it occurred
during module loading, which happens during initial page loading (browser_js >
navigate_to > _websocket_wait_event), which ignored logs (and exceptions though
here it's a console.error log), and as a result reported no failure (and would
simply miss that specific test as well as every test following it).

This requires additional modifications as we have a fair amount of silent
failures (exceptions or logging.error calls) at the moment:

- downgrade one error to a warning (which becomes an info at the python level)
- cleanup some synthetic / mock errors to better match what comes over RPC (and avoid transient or setup failures)
- tours which end in an action, leading to JS code executing during browser cleanup (and blowing up)
  - if the last step triggers a default (implicit) run, replace by a no-op
  - fix tours for which that does not work by either modifying the last step or adding an additional check step

closes odoo/odoo#43588

Forward-port-of: odoo/odoo#43567
Forward-port-of: odoo/odoo#41334
Related: odoo/enterprise#7813
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-01-24 09:53:34 +01:00
Antoine Vandevenne (anv) 4a19e48e4a [IMP] doc: require installation of implicit packages in install page
closes odoo/odoo#43872

X-original-commit: c08ce0ae46a78d4be517ad150ce729a61c4f226a
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2020-01-23 17:30:13 +00:00
Jason Van Malder e6fa563222 [FIX] web: fix studio child view datapoint content
Issue

    - Install Employees & Studio
    - Configuration > Check Skills Management
    - Go on an employee form
    - Remove all data in Experience, Education & Skills
    - Open Studio
    - Click in the blank space before Skills
    - Edit Form View

    Traceback

Cause

    The ORM tries to get the parent fields because the generated
    datapoint includes them. (45bc7c9)

    Normally the parent model is the same than the child model
    but not in studio.

Solution

    Merging the fields in the datapoint only if the models are the same.

OPW-2125214

closes odoo/odoo#43695

X-original-commit: d2dbc4faaad0988d71f591be7f50c94d455541b0
Related: odoo/enterprise#7849
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-01-21 18:14:23 +00:00
Arnaud Baes 13c1f4fa34 [FIX] website_crm_partner_assign: Partners images size.
Small fix on the template to ensure the size of the partners's
images will never be larger than 128px.

closes odoo/odoo#43875

X-original-commit: 4879ace6868e02703069bcf420bd77275ee381f7
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-01-23 18:23:12 +00:00
Sébastien Theys 255f7219a9 [FIX] mail: fix non deterministic issue in discuss history test
Follow up on 2f3e6e9ea8

The issue is still not fixed. Here is a new attempt.

closes odoo/odoo#43869

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-01-23 16:48:29 +00:00
Josse Colpaert 64fec81143 [FIX] base_address_city: avoid showing city and city_id field together
Before, when city_id was not set, both city and city_id
were shown, so when you created a new partner, you would
see 2 city fields in a weird way.

Now, we only show both fields when city is set, but not city_id
That way, in case you have some old partners before the installation
of the module, it will still work.

opw-2178992

closes odoo/odoo#43871

X-original-commit: 0a2cf833f9935c44d09ff7c46513dbc37c57bfe8
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-01-23 17:10:03 +00:00
shreya thakrar 289f47da14 [FIX] web: remove min-height of form sheet within a modal
We added min-height for `o_form_sheet` in form view with a commit[1] restoring
the views design (after views refactoring).

However, the min-height isn't very useful when form view is opened witin a
modal (FormViewDialog). Especially, when the form view is having only few
fields, the `o_form_sheet` container occupies unnecessary height and looks
a bit ugly.

This commit fixes the issues by setting the min-height to `0` for
`o_form_sheet` container in such cases.

[1] - https://github.com/odoo/odoo/commit/250e716c3a12#diff-01e46b3171a7282967199e5d45fca0e6R15

TaskID: 2150471
PR #41619

closes odoo/odoo#43865

X-original-commit: 144d720bdc54ce762b84b1a78aa7e517ec1c3dd2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-23 16:09:50 +00:00
fja-odoo 876a7aad0b [FIX] web_editor: fix move snippet hiding
The move snippet arrows where not hiding properly when the target was
not movable.

closes odoo/odoo#43864

X-original-commit: ab32882ff0ecaf9995e52b062b880cd8ea0b6efa
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-01-23 16:09:30 +00:00
Thibault Delavallée 4ea5514230 [CLN] crm: remove duplicated method
Probably coming from a conflict / rebase / forward port. Or several of those
keywords.

LINKS

Task ID 2180521 (add tests for crm wizards)
Task ID 2056759 (remove crm.partner.binding mixin)
Task ID 2088565 (crm onchange -> compute)
Community PR odoo/odoo#43473

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-23 14:43:50 +00:00
Thibault Delavallée 69625cac78 [IMP] crm: add tests for lost wizard
PURPOSE

As crm will soon evolve (onchange -> compute, code improvements, better
management of sales teams) cleaning and improving tests is necessary to avoid
regressions.

SPECIFICATIONS

This wizard has no tests at all. Even if it not really complex it is better
to have some tests ensuring at least marking a lead as lost with a reason
correctly updates it.

LINKS

Task ID 2180521 (add tests for crm wizards)
Task ID 2056759 (remove crm.partner.binding mixin)
Task ID 2088565 (crm onchange -> compute)
Community PR odoo/odoo#43473
2020-01-23 14:43:32 +00:00
Thibault Delavallée cb30f53636 [IMP] crm: move and improve tests about merge and merge wizard
PURPOSE

As crm will soon evolve (onchange -> compute, code improvements, better
management of sales teams) cleaning and improving tests is necessary to avoid
regressions.

SPECIFICATIONS

Improve and clean tests about leads and opportunities merge.

Some strange behaviors spotted :

  * user_id / team_id interaction is somehow unclear;
  * probability is not taken into account in confidence level, which is very
    very strange;

LINKS

Task ID 2180521 (add tests for crm wizards)
Task ID 2056759 (remove crm.partner.binding mixin)
Task ID 2088565 (crm onchange -> compute)
Community PR odoo/odoo#43473
2020-01-23 14:39:54 +00:00
Thibault Delavallée 726653fa7b [IMP] crm: add more tests about lead / opportunity convert and merge wizards
PURPOSE

As crm will soon evolve (onchange -> compute, code improvements, better
management of sales teams) cleaning and improving tests is necessary to avoid
regressions.

SPECIFICATIONS

After ff6b35f759 that added some first tests, this commit will add more tests
notably about convert wizards.

Notably

  * add tests for crm.lead2opportunity.partner wizard, notably options about
    action (do nothing, exist or create partner), as well as some corner cases
    like stage update, lost leads, ...
  * rewrite and improve tests about crm.lead2opportunity.partner.mass, aka the
    mass converted wizard that implements some random behavior on top of the
    crm.lead2opportunity.partner wizard;

Some strange behaviors spotted

  * partner action works on lost leads, but not the convert;
  * user_id / team_id / stage_id coherency is not enforced during convert
    as it relies mainly on onchanges that are not called;

LINKS

Task ID 2180521 (add tests for crm wizards)
Task ID 2056759 (remove crm.partner.binding mixin)
Task ID 2088565 (crm onchange -> compute)
Community PR odoo/odoo#43473
2020-01-23 14:34:42 +00:00
Sylvain LE GAL 1e1e511cea [FIX] call _get_product_accounts() everywhere
closes odoo/odoo#41632

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-01-23 14:29:45 +00:00
Pierre Paridans 43db60dffa [FIX] web: notebook tab headers container
This commit adds a wrapper element around the form view's notebook
tabs headers to allow the use of `overflow` and make it scrollable (e.g.
on smaller screens) without breaking the tabs' styling (e.g. the bottom
border).

This commit fixes an issue introduced by odoo/enterprise@e07aafbe6f.

closes odoo/odoo#43843

X-original-commit: 967777793cf2a7591ef3d9325497b105eb86577c
Related: odoo/enterprise#7906
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-01-23 12:42:04 +00:00
Odoo's Mergebot 28dfe206df [MERGE] sale_timesheet: Improve project overview
1)  Add the following stat buttons on the right of the Tasks one:
- (fa-tasks) Late Tasks: tasks whose deadline is exceeded (do not include tasks that
  don't have a deadline set)
- (fa-tasks) Tasks in Overtime: tasks whose Effective hours are strictly greater than
  their Planned hours (if the latter is stricly greater than 0)

2) Remove the sheet view (should be like financial reports)

3) Add an 'Other Revenues' metric under the Profitability section below 'To Invoice'
- It should represent all the revenues other than from timesheets linked to the analytic
  account of the project.
- Only visible if greater than 0

4) Allow to fold/unfold the details by SO. It should be folded by default.
Note: Although qweb views have a generic mechanism to manage fold and unfold, this standard
behavior is not used here.
It would imply refactoring the entire code preparing the template data (700+ lines of
code which are hard to read). The quick and dirty way is used for now.
(I wish good luck for the dev if it's one day necessary.)

Task 2119567

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#40852

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-23 14:35:16 +01:00
Yannick Tivisse e73e0ef3c9 [FIX] mail: Clean residual context keys on _message_track_post_template
Purpose
=======

Clean the context to get rid of residual default_* keys
that could cause issues afterward during the mail.message
generation. Example: 'default_parent_id' would refer to
the parent_id of the current record that was used during
its creation, but could refer to wrong parent message id,
leading to a traceback in case the related message_id
doesn't exist

closes odoo/odoo#43830

Taskid: 2176445
X-original-commit: 82d2d581a2590a9c782cbc71b5005a4198b70d77
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-23 10:37:05 +00:00
Thibault Francois 00aae709f1 [FIX] hr_holidays: remove default view_id from saas-12.3
The order of the view is gantt,calendar,list but if you come form the saas-12.3 the view_id will remain defined with a calendar view
So we need to erase that value to have the gantt view by default

closes odoo/odoo#43829

X-original-commit: 3415ebd5702094d6903b1f4aa550c45d8d74da32
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-23 10:35:58 +00:00