Commit Graph
132940 Commits
Author SHA1 Message Date
Jason Van Malder abc6dbdc76 [FIX] web_editor: fix summernote text drop on firefox
Issue

    - Have firefox
    - Go to any chatter
    - Open full editor
    - Write some "test" words with line breaks
    - Select one of your "test" words
    - Drag & drop it somewhere else in the editor

    Welcome on test.com! (redirected)

Cause

    Summernote doesn't preventDefault on drop event, so firefox
    think we want to go to another URL.

Solution

    Add the preventDefault manually.

    This reveals another issue which is solved by importing
    this PR's code https://github.com/summernote/summernote/pull/3327
    (with adaptation for our dinosaurus version)

OPW-2158112

closes odoo/odoo#42759

X-original-commit: 197145ac19fd65dcfbcbae81c8b5dd54025185a4
Signed-off-by: Jason Van Malder <jvm-odoo@users.noreply.github.com>
2020-01-06 13:11:10 +00:00
Tiffany Chang (tic) 76723b98c1 [IMP] doc: add missing kanban attributes
Adding missing attribute values of 'create', 'edit', 'delete' to kanban
view documentation.

closes odoo/odoo#42456

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-03 10:34:54 +00:00
Tiffany Chang (tic) 7d93929d65 [IMP] crm: prohibit calendar lead creation
Currently the 2 CRM calendars (Pipeline and Leads) only display leads
when they have a linked activity. Therefore creating new leads within a
calendar view was confusing since users could not see the new leads
without switching to another view (note that new leads could not have
activities linked to them under current design and expecting users to
know to add an activity to a new lead to immediately view it in the
calendar view is unreasonable.)

This commit makes it so users can no longer add new leads to calendar
views in crm module. Current behavior of being able to edit leads
already in calendar is untouched.

Part of
Task: 2126530
2020-01-03 10:34:54 +00:00
Tiffany Chang (tic) 3e37ec8844 [IMP] web: add 'create' attribute to calendar view
Previously it was always possible to create within the calendar view.
For some modules this did not make sense and lead to confusing behavior,
for example: a new model instance created in the calendar view that was
not viewable in the calendar view, but was viewable in other views. By
adding a 'create' attribute (to be used in view xml), we allow users to
choose whether or not they want a calendar view to be able to create.

Note that this change does not affect the edit ability of calendar views
for existing instances.

Part of
Task: 2126530
2020-01-03 10:34:54 +00:00
Laurent Mignon (ACSONE)andAaron Bohy ae7f574e54 [FIX] web: calendar: allow to use fields.Reference
Before this change, fields.Reference displayed into the popover of
a calendar view was always empty. This was because the popover view
generated from a double click on an element in the calendar view
creates its own recordModel in JS and the function to create this
record did not handle the reference field case.

This commit detects if a reference field is defined into the record
and adds the necessary processing to process its value and creates
the corresponding dataPoint.

opw 2151635
Closes #41262

closes odoo/odoo#42707

Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
2020-01-03 15:46:17 +00:00
Xavier Morel a2a1e294d7 [IMP] core: deprecate returning domains from onchanges
* add a runtime warning when an onchange method contains the string
  'domain'
* add a lint test to forbid the string 'domain' in onchange methods,
  this is easy to defeat (e.g. `dict(domain=...)`) and can have false
  positives (literal `'domain'` strings for reasons other than an
  onchange result) but overall it seems to work nicely
* implemented as a non-pylint test as pylint takes ages to run. While
  at it, remove the long-disabled and long-useless
  PEP3110TokenChecker (checks for `except Exception, a` which is a
  syntax error in P3)

Task 2115472

closes odoo/odoo#41918

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-01-06 10:35:52 +00:00
Xavier Morel b0d690ee7c [FIX] hr_timesheet: re-remove onchange-with-domain
Had been removed in 6c4ac28f33 but
re-introduced in 15e41f59c7 likely due
to an improper conflict resolution.

Task 2115472
2020-01-06 10:35:46 +00:00
Simon Lejeune 68be60fc82 [REV] stock: add hierarchical view for stock locations
This reverts commit d39a51259e93b84184379a1fc9b824dad94e5ea5.

This view was technically clean and useful to detect configuration
issues (wrong view_location_id for example) but was not liked by our big
boss because "a group by parent_id does the same thing".

task-2166904

closes odoo/odoo#42734

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-01-03 15:12:01 +00:00
Rémy Voet (ryv) 9a5608aee7 [REM] mrp: remove unused fields of workorder
Remove color and capacity fields of mpr.workorder unused
and coming from commit : 2ddc35a530 .

closes odoo/odoo#42498

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-12-30 15:05:24 +00:00
Jigar Vaghela 4ac4a924d6 [FIX] l10n_in: Update HSN query
The credit notes must be included in GSTR-1 report.

opw-2161465

closes odoo/odoo#42733

X-original-commit: 8b956b60e55ef24c552925cae0f0ae8fadd07c5d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-06 08:26:28 +00:00
Thibault DelavalléeandAurélien Warnon 5f4fa56856 [FIX] base(_address_extended): correctly fix cache miss bug when creating company
Without this flush, partner computed fields are not computed when creating
the company, leading to a cache miss. It is due to the quite complex model
introduced in base_address_extended with multiple related / computed / inverse
fields.

How to reproduce
  * have base_address_extended installed;
  * create a company with address bits (street_name, street_number,
    street_number2);
  * encounter a nice cache miss bug (partner<ID>.street_number):

Original task ID 2068145
PR odoo/odoo#42701

closes odoo/odoo#42722

X-original-commit: 69ea928828fca06c9b0f589e23ca3c0d4c387ab0
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Thibault Delavallée <tde@odoo.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2020-01-03 17:29:11 +00:00
Thibault DelavalléeandAurélien Warnon 8a1010ba48 [REV] base(_address_extended): revert 44221cffac
This commit reverts commit 44221cffac called "[FIX] base_address_extended:
Fix cache miss bug" .

Indeed it fixes the cache miss bug but introduces another one which completely
breaks address encoding.

How to reproduce
  * create a company with address bits (street_name, street_number,
    street_number2);
  * update one of those fields, e.g. street_number2;
  * other fields are emptied once saved, e.g. street_name and street_number are
    False;
  * both company and its partner records are now incorrect;

This is probably due to the unique inverse method introduced by the reverted
patch that sends only the updated value to the inverse method, leading to
other values being reset.

Original task ID 2068145
PR odoo/odoo#42701

X-original-commit: 3f4862ee8c9193719abd8e6dd647e6584f232103
Co-authored-by: Thibault Delavallée <tde@odoo.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2020-01-03 17:29:10 +00:00
Goffin Simon 65ae1848d7 [FIX] lunch: The lunch mail template is not using the correct language
Steps to reproduce the bug:

- Creante a vendor V with a lang in French
- Set lang English on your user U
- Log with U
- Create a lunch.order.line for V
- Click on Lunch: Order meals

Bug:

The email was sent in the lang of U instead of V.

opw:2155628

closes odoo/odoo#42543

X-original-commit: 8708ef16608dd8b6cdcad066e31f70f6262af205
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2019-12-31 14:35:59 +00:00
Goffin Simon 23c860a54c [FIX] purchase_stock: Unable to set default value for field "Delivery to" in RFQ
Steps to reproduce the bug:

- Let's consider the current user U logged in company C
- Let's consider two operation types OT1 and OT2 with code = 'incoming' and  warehouse_id.company_id = C
- Let's define OT2 as default value for field picking_type_id in model 'purchase.order'
- Try to create a new RFQ

Bug:

The default picking_type_id was OT1 instead of OT2

opw:2124083

closes odoo/odoo#41700

X-original-commit: d49abf3c8f21ccd56c12f9835520deaf715ffcc0
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-11 09:25:39 +00:00
Laurent Smet dbda45f305 [IMP] account: Sort account.account by code & company
Tests about financial reports could be not determinist because the tests are made
using two companies having the same chart of accounts.

closes odoo/odoo#42226

Related: odoo/enterprise#6432
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-01-03 13:00:03 +00:00
Laurent Smet 5dc37da885 [IMP] tools: Don't shadow ZeroDivisionError with ValueError in safe_eval
If a division by zero occurs, I expect a ZeroDivisionError instead of a TypeError.
2020-01-03 13:00:03 +00:00
Victor Feyens 28af3fe369 [FIX] sale: do not show external button when no product is set
closes odoo/odoo#42695

X-original-commit: 1852db48a187e3011af5b396b23346a664924f56
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-01-03 14:09:49 +00:00
Swapnesh Shah f13fdbb699 [IMP] hr: Improve model description
Fixes https://github.com/odoo/odoo/issues/42559

closes odoo/odoo#42648

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-02 17:53:36 +00:00
Damien Bouvy 0ed8e525bd [FIX] payment: No error logged if no real error in transaction
Before this commit, trying to put a transaction in a state
where it was already in was causing an error.

For example: Putting a transaction in'Done' when it was
already in'Done' caused an error
'Only draft/authorized transaction can be posted.'

Now, we just log a note that the transaction is
already in the good state and pass over.

closes odoo/odoo#41701

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-12-31 09:19:34 +00:00
Damien Bouvy 525d363b56 [FIX] payment_stripe: better error handling
In some cases, Stripe will return the result of a transaction with
a faulty HTTP Status (e.g. 4XX statuses) - not because the request
was malformed, but because the payment failed. It is a bit unfortunate
that Stripe would not differentiate between payment status and request
validity, but that's the state of things.

This commit ensures that such a response will be logged correctly, by
making the call to `raise_for_status` conditionnal on the response object's
status code and internal structure, forwarding the response's json to the
validation flow if the status is in the 4XX range and a `code` key is
found in the response, as described in https://stripe.com/docs/error-codes

While testing this fix, it became apparent that some error message
processing in the frontend was not correctly handled as well - instead
of purely rejecting the promise, a failed payment should still send its
payload to the backend, to allow the server to put the transaction in
the correct state according to the response.
2019-12-31 09:19:34 +00:00
Victor Feyens aca2b71919 [FIX] sale_margin: cost computation on empty line
Onchanges can be triggered after computes and therefore, we could have a line with an uom
but without product, leading to a conversion from "no uom" to the order line uom, which isn't
accepted.

closes odoo/odoo#42691

X-original-commit: 1bc9963cfc19a4bc5896a647423f81274936db00
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-01-03 12:55:07 +00:00
jerome hanke (jhk) 9179923f85 [FIX] stock: kanban view of stock picking is not draggable
Steps to reproduce:
-install purchase
-install inventory
-go to purchase > control > incomig products
-activate kanban view and group by picking

Previous behavior:
clicking create allows for quick creation and all cards are
draggable, which creates inconsistency on the moves

Current behavior:
quick creation is not allowed and kanban cards are not draggable

opw-2165106
closes https://github.com/odoo/odoo/issues/36043

closes odoo/odoo#42683

X-original-commit: f0ba4c9278a8ab0ca051592790c6dbf3150a10d7
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-03 11:51:58 +00:00
Aaron Bohy 1e3f688256 [FIX] web: form: fix broken layout with o_td_label
Rev. bc131c0cfb aimed to handle the case of several
(conditional and exclusive) <label> tags for a same field.
The idea was to wrap those <label> tags into a div with
className 'o_td_label' (typically set by the framework), and
let the framework move it to the td wrapping the div.

However, it causes an css issue (only in community), as the
presence of two o_td_label classnames (one on the td, and
one on the div), produces two right borders.

This commit fixes the issue by removing the classname on
the div (we simply 'transfer' it to the td).

Closes #42589

closes odoo/odoo#42667

X-original-commit: f71979a681d95d98db19a80feb59fdf684ec361f
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-01-03 09:18:09 +00:00
Lucas Perais (lpe) 56f32b1dab [FIX] account: date makes test crash
Before this commit, the corrected test crashed when the current
date was before the arbitrary dates of the test
because the wrong exchange rate was taken

After this commit, the test passes

closes odoo/odoo#42671

X-original-commit: 5867e9bf0cc745d7b1b3dcf76bc94567e859cff7
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-01-03 10:10:40 +00:00
Jason Van Malder 43bdb4c6d8 [FIX] hr_skills: fix remove quick create skills from form view
Issue

    - Install Employee
    - Settings > Enable skills management
    - Go on employee form view
    - In languages, click on add
    - Quick create a skill & save
    - Save the form

    ValidationError "The skill %s and skill type %s doesn't match"

Cause

    You should not quick create a skill, you should edit the skill
    type, add your skill and then select it.

Solution

    Disabling skill quick create because it's misleading

OPW-2163059

closes odoo/odoo#42642

X-original-commit: 29a37ef574726cf7616ed6237e56626ba3c380a5
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-03 07:17:22 +00:00
jerome hanke (jhk) c8841c8eca [FIX] account: default date_format on res_lang lookup
Steps to reproduce:
-install accounting
-go to accounting > accounting > assets
-create a deprecable asset (account moves for deprecations
are set automatically)
-change your user's language to blank
-try to post one of the automatically created deprecations line

Previous behavior:
you get a traceback error
"TypeError: strftime() argument 1 must be str, not bool"

Current behavior:
you get the intended error message

opw-2162318

closes odoo/odoo#42641

X-original-commit: 6cd38a64893428db5c2b30e85b09a34b90aa8f4f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-02 17:33:37 +00:00
jerome hanke (jhk) a45c1b53cc [FIX] mail: next activity due date type is required
Steps to reproduce:
-install base_automation and contacts
-go to settings > technical > automated actions
-create an automated action on new contact creation
-set your action to "create next activity"
-leave the activity due type to blank
-trigger the automated action by creating a new contact

Previous behavior:
you get a traceback error
"TypeError: __init__() keywords must be strings"

Current behavior:
the field is required when activity_date_deadline_range is not 0
and does not allow a blank type

opw-2159755

closes odoo/odoo#42503

X-original-commit: 04dff5ad6c5935f899c7946cb1924afaea9e547c
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-30 15:16:34 +00:00
Swapnesh Shah 545e21da3c [IMP] mail: Remove unused method
Method was added at cf505c3 but not used, missing cleanup according to
xdo-odoo

closes odoo/odoo#42443

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-01-03 09:59:49 +00:00
tanghulu0608 28b2995a41 [FIX] doc: correct the doc string of the read_group
The orderby specification is a string, not a list
Using a list as a orderby clause produces an error in the construction
of the group by query

closes odoo/odoo#42451

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-01-02 07:58:32 +00:00
Swapnesh Shah 847b05fb19 [FIX] website_slides_survey: create certificates with scoring by default
Follow up on https://github.com/odoo/odoo/commit/6e5b211f4efd2f29b8bf582465284527e38bc763
Certificate field is not sufficient, scoring type should be set by default
to avoid creating non certificates without knowing it.

closes odoo/odoo#42640

X-original-commit: 1edfa69a4c95deca5192f28f162f2f0b8322bb8f
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-03 08:35:33 +00:00
Thibault Delavallée a868d1ba48 [FIX] crm: correctly call probabilities computation
This commit fixes 9ac5f42cd0c381bdddfd196721983057bab7028b by correctly calling the probabilities
computation method. It was a backport of a master fix and methods names are
slightly different.

closes odoo/odoo#42643

X-original-commit: 2e41f129ee39786c8259af792635e3b0f3dbfa3d
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-02 17:34:44 +00:00
Yuzifu 30e495a241 [FIX] mail: allow to translate the title
Of the rename conversation dialog

closes odoo/odoo#42630

X-original-commit: f9479456c0924c12c098edaebc2013418c09590c
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-01-02 16:53:02 +00:00
Yuzifu 74dff2a2e9 [CLA[ sign the Odoo CLA
X-original-commit: deeab8eec3a851f7cf33252a916d4aca420d5578
2020-01-02 16:53:01 +00:00
Kevin Baptiste b40f43d52f [IMP] lunch: store company_id of lunch.supplier
For performance reasons, the company_id of a lunch supplier is now
stored.

In a multi-company environment, the multi-company ir.rule was loading
*all* the suppliers in order to check their related company_id.

closes odoo/odoo#42631

Taskid: 2152319
X-original-commit: 0a73eeb0d3163c2c47fb2d25da024ed4a16824ff
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-01-02 16:54:25 +00:00
Iván Todorovich 7869979591 [FIX] *: use sudo() to call set_onboarding_step_done
This method makes a write on res.company but many people do not have
access to the company

closes odoo/odoo#42644

X-original-commit: 130f08f13b49a529c1da0e1dc603c62337842f45
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-01-02 17:38:05 +00:00
Arnold Moyaux ea340afafa [FIX] mrp_subcontracting: cancel a PO should cancel delivery
When subcontracting a product via a purchase order and not a simple
receipt. Then the cancelation of the receipt will not only cancel
the receipt of the finished product but not the delivery for the
components.

It happens because button_cancel on purchase order will call
_action_cancel the stock.move linked to purchase order line. It will
not call action_cancel on the stock.picking. However the part
responsible for the cancelation of components delivery is in the
stock.picking action_cancel method.

Move the stock.picking action_cancel logic in the stock.move
_action_cancel method since it's always call for both usecase.

Fixes #42551

closes odoo/odoo#42653

X-original-commit: 841305f271411c3a67af271ac09da9ce0922f100
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-01-02 18:11:33 +00:00
Luis González 858c9ec394 [FIX] website_sale: Don't overwrite address behavior on partner
When the ecommerce module is installed, the partner field's context is overwritten, which causes some features to be lost, e.g. showing the customer address.

This commit fixes the above by merging the content of both contexts.

closes odoo/odoo#42650

X-original-commit: a7027a184f6e76d3580844c29f1b8639b847356d
Signed-off-by: Luis González [Vauxoo] <luisg123v@users.noreply.github.com>
2020-01-02 18:06:37 +00:00
Adrien Dieudonne 67721931f9 [FIX] web: avoid horizontal scroll on kanban mobile
Steps to reproduce:
1. Open 'Project' on mobile
2. You can scroll x while the content fit the screen.

This issue occured because of negative margins on
'o_kanban_manage_toggle_button' class.
In general, using negative margins should be avoided.

So in this commit we simply avoid to have negative margins by
removing unwanted borders. It keeps the same design.

Similar issue:
https://github.com/odoo/enterprise/commit/805ab4d4a329c0fdf7d1cade6c5d7e8428f3a634

closes odoo/odoo#42518

X-original-commit: 38702215e6dff4e562a389ec03cdeb8683cd111c
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-12-30 18:04:57 +00:00
Nicolas Martinelli 021cab27e4 [FIX] account: fix test for 2020
When an invoice is duplicated, the `invoice_date` is not carried over.
If the field is not set, it will be set at posting at the current date.

closes odoo/odoo#42622

X-original-commit: 135d3db7b9b222be198e91235657bbef77d2f69b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-01-02 15:50:57 +00:00
Simon Lejeune 28a3430de1 [REF] stock_account, mrp_account: valuation layer and not admin user
missing bit from rev[0] and [1]

[0] 7ef11e3
[1] d6c8c34ef6539dad110f1e502eaee2c03d968797

closes odoo/odoo#42621

X-original-commit: 5096e724643ca77568ce2f09a40b138561f4c20f
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-01-02 15:48:56 +00:00
Ankita Raval 6f0985bae1 [FIX] Product: Search with Reference in product move
Before commit:
-when we search in product move with reference its not working because
 the Reference filter is made based on picking_id in place of reference
 field.

After commit:
-we made a reference filter based on reference field so when we search in
 product move with reference its working.

closes odoo/odoo#42620

Task-id: 2165919
X-original-commit: 7f1141687d4cede2a600f49441ac2ecd0f123c89
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-01-02 15:48:16 +00:00
Jorge Pinna Puissant 1f4c65ef3e [FIX] l10n_it_edi: sent certified email without catchall and bounce
Before this commit, when the domain alias was set (e.g. my_domain.com),
the reply-to and the reply-path were filled with default values using
this domain (e.g. reply-to : catchall@my_domain.com and reply-path:
Return-Path: bounce+number@my_domain.com)

Now, both are filled with the sender email.

Fine-tuning of 66c5053

opw-2127407
opw-2161942

closes odoo/odoo#42619

X-original-commit: 417d69c6ec45310ae22d40adfa70080188a1b1f5
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-01-02 15:44:15 +00:00
Swapnesh Shah eb04e1c9ad [IMP] website_slides: use float_time widget on total_time
In this commit we use the float_time widget on total_time field in order to
achieve an amazing wow onboarding back2basics effect.

closes odoo/odoo#42360

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-02 15:37:09 +00:00
Swapnesh Shah 32695d2747 [FIX] sms: do not add 'preview' action for SMS templates in dropdown menu
'Template Preview' action shouldn't be accessible through the action dropdown
as it is linked to a given template and accessible directly from the
template form view. Having it available in dropdown makes no sense.

closes odoo/odoo#42353

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-02 15:29:43 +00:00
nje-odoo 92472fbf9c [IMP] lunch : make field translatable.
Now we can translate name and description field in lunch.product object
and we want that translation in kanban view of 'lunch.product.report'.

So we set related field in 'lunch.product.report' and remove those fields
from init().

Due to related field it will affect on performace of lunch.product.report
kanban view loading.

Task-2068989
closes odoo/odoo#41206

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-31 12:17:26 +00:00
David Beguin 5b62f6e0b6 [IMP] website_livechat : enable chat request on all livechat enabled pages
Before this commit, only the tracked page can start the chat request at visitor
side. Which is a bit sad as the operator can send the visitor a chat request
but if the visitor goes on a non tracked page but has the opportunity to start
a livechat, the chat request won't reach the visitor.

This commit refactor the way a chat request is sent to the client side.
Instead of looking for a opened chat request on every page request,
the chat request information (if any opened) is added to the channel info
that are given to the Livechat button widget.

If the widget receives chat request infos, the widget set himself, before
starting, the cookie of the livechat session using the chat request
informations. Then, the conversation (from chat request) is automatically
loaded as any other opened chat session.

Task ID: 2081550
PR #40274

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-02 15:14:47 +00:00
Tiffany Chang (tic) 12eb45301f [IMP] website_slides_survey: add survey course visibility
Previously there was no way to view when a survey (specifically a
certification survey) was being used by a course from the survey
app. We handle 2 cases for when a survey is currently assigned to
a course:

1. A survey is assigned to 1 course => survey form stat button visible to bring user
   directly to corresponding course form.
2. A survey is assigned to more than 1 course (unlikely, but currently possible) =>
   survey form stat button visible to show user a list of corresponding courses where
   each list entry can be clicked on to view corresponding course form.

Note: we do not cover viewing courses a survey was previously assigned to as this would
   be currently be unreasonable to track.

closes odoo/odoo#42336

Task: 2153743
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-02 14:47:04 +00:00
Vishnu Thuletiya acc063f870 [FIX] web: my profile opens in background on mobile
Purpose of the task is, in mobile view when you click on my profile button it
open profile in back ground and menu(burger menu) will stay open.

so close the burger menu in mobile when clicks on my Profile or Preferences.

Task: 2152160
Closes: #41899
Enterprise PR: https://github.com/odoo/enterprise/pull/7275

Related: odoo/enterprise#7275
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-17 05:00:47 +00:00
Barad Mahendra 5af891c490 [IMP] hr_expense: add upload button on expenses kanban view
Purpose of the task is to improve the mobile user experience of
the Expenses app by adding the upload button to the Expenses
kanban view.

Task ID: 2152155

closes odoo/odoo#41839

Closes: #41839
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-12-31 04:36:00 +00:00
Patrick Hoste 40d2f95a8d [IMP] website_sale_slides: add buy button to documentation courses
Currently if slides officers or managers define documentation courses as
on payment there is no easy way for customers to buy it.

In this commit we add a button on the frontend to allow the end user to buy
a documentation course like a training course. This button is displayed
only for on payment documentation courses, leaving other documentation courses
displayed untouched.

Task ID : 2125086
PR : odoo/odoo#40679

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-01-02 15:12:48 +00:00