Commit Graph
134017 Commits
Author SHA1 Message Date
Goffin Simon 104f0325eb [FIX] mrp: Wrong production location in multi company
Steps to reproduce the bug:

- Let's consider two companies C1 and C2
- Let's consider two production locations L1 in C1 and L2 in C2
- Let's consider that the company of SUPERUSER is C1
- Add the field Production location in the form view of mrp.production
- Log in C2
- Create a product P with a BOM in C2 with L2 as production location
- Create a MO for P

Bug:

The production location of P was L1 instead L2

PS: related_sudo is set to True by default.

opw:2196707

closes odoo/odoo#45692

X-original-commit: aef3d1864826a939fbd9cfd9b666614169a1db0e
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-02-19 10:39:41 +00:00
Ankita Raval 933b21e2c5 [IMP] account,*: rename tag_ids to tax_ids in account.move
closes odoo/odoo#44835

Note: Many2many table name and columns name is not changed so no change in report's query
Task-id: 2028813
Related: odoo/enterprise#8261
Related: odoo/upgrade#745
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-02-19 09:09:20 +00:00
Ankita Raval d675dbaa4c [IMP] account,* : Change type field to move_type in account.move
task-id: 2028z813
2020-02-19 09:09:20 +00:00
Rémi Rahir 8f6bf2087e [IMP] website_links: performance on search_read
The widget Selectbo was performing a search_read on every field while
only using the fields id and name. This search_read has become very costly
in the latest version due to some new fields.
We now limit the search_read to the useful fields.

closes odoo/odoo#45707

X-original-commit: a4832ccdeedd777b43825e41ffb8c20937022279
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-02-19 11:59:16 +00:00
Romain Estievenart 4582f4ade3 [FIX] web_editor: add scope to apply z-index web-editor dialog on mobile
this bug was introduce by the inline z-index define inside the template 'web_editor.FieldTextHtml.fullscreen' (https://github.com/odoo/odoo/commit/912996fe902c41cafa12dcfe09713ce9857f95ab#diff-76a385e3a3e67f1b88b34afd8181f732R13)

This was breaking the z-index web-editor dialog (using inside mass-mailing), so a first fix using a new z-index was made for the web-editor dialog (https://github.com/odoo/odoo/commit/65c8d33c2922bd90e2755cff0a6751c8b3b130d8)

But we a missing a scope to identifiable a web-editor dialog was missing. So this commit add a class to allow target only the web_editor dialog.

Task ID: 2198649

closes odoo/odoo#45702

X-original-commit: 441a5fa5a67f25398744ea18860eebdc4d17dddb
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-02-19 11:21:39 +00:00
Thibault Delavallée e3a87d3511 [IMP] crm: add tests for convert wizards
PURPOSE

As CRM is going to be updated (onchange -> compute, code improvements, better
management of sales teams) cleaning and improving code is a necessary first
step.

SPECIFICATIONS

Add tests. Amazing. Notably about matching partner / duplicate based on email
as there is some weird behavior.

closes odoo/odoo#45477

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-19 11:43:53 +00:00
Xavier-Do 7e9918dbe3 [FIX] core: improve get_files performances
On a standard odoo install, `MigrationManager._get_files` represent
more than 4% of an install. This is because the legacy
odoo/base/maintenance/migration path was added to upgrade.__path__
once by module, making the get_filed check 574^2 os.path.exists.

This commit adds a check on initialize_sys_path to call it only once,
and merge legacy path with upgrade-path management in order to benefit
of the `up not in upgrade.__path__` check. This second part of the fix
will also remove the local dir from the upgrades paths.

A further improvement would be to fix MigrationManager in order to skip
_get_file work on a fresh install, (wip by rco-odoo)

closes odoo/odoo#45699

X-original-commit: 497330a695ed52a33f9c9b9c27b149446de0db29
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-02-19 11:15:09 +00:00
fw-bot 047e222373 [FIX] hr_contract: Avoid error when changing template contract stage
Before this commit:
When we change a contract to stage 'open', we write this contract
on employee. But it causes error when it's a template contract
(without employee).

After this commit:
When we change a contract to stage 'open', we write this contract
on employee only if contract has an employee.

[FIX] hr_contract: Allow overlapping in template contract

Before this commit:
We check for all contract that there are no overlapping for a
same employee.

After this commit:
We check that there are no overlapping for contract with
employee.

[FIX] hr_payroll, hr_holidays: Avoid some constrains with company time off

Before this commit:
We can't create company (or team) time off if you have 2 or more
template contract in your database.
We can't create mutliple company or team time off that overlaps.

After this commit:
We can create company (or team) time off if you have 2 or more
template contract in your database.
If a time off is set across multiple contract, print those contracts
in error message.
We can create multiple company or team time off that overlaps.

closes odoo/odoo#45696

Taskid: 2196185
X-original-commit: 3fdada6f8f19ae7123d9b35b3e7c557d072c1bc0
Related: odoo/enterprise#8553
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2020-02-19 11:04:40 +00:00
Odoo's Mergebot 3184a911e7 [MERGE] (im/website)_livechat : set session as inactive after closing it
PURPOSE

If a visitor closes the livechat window, he is redirected on rating / feedback
/ send_transcript screen but he cannot go back to the conversation unless he
reloads the whole page.

Conversation should be considered as inactive after the first click on X.

SPECIFICATIONS

This merge holds two main commits

  * move close livechat session to base livechat module in order to be able
    to flag the livechat as inactive when the visitor leave the conversation;
  * set livechat inactive _onCloseChatWindow: closes the conversation (set
    as livechat inactive and send the 'has left conversation' message) at
    first time the visitor closes the conversation;

See sub commits for more details.

LINKS

Task ID: 2120210
Community PR odoo/odoo#39939
Upgrade odoo/upgrade#772

Related: odoo/upgrade#772
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-19 13:10:08 +01:00
Laurent Smet a7009100a6 [FIX] account: Fix traceback when creating a new currency.
Introduced by:
https://github.com/odoo/odoo/commit/31e1322b40ab33bf81d4c000f2b2a3f3eb8d0958

closes odoo/odoo#45688

X-original-commit: 12b17a20586c6b3c1069879557f5a169d5d85667
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-02-19 10:25:00 +00:00
jbm-odoo 1f4cc66683 [FIX] hr_presence: Remove unused view and model
closes odoo/odoo#45677

X-original-commit: 9506581eb221ed709acaabcb5544e1cf6effb7f1
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2020-02-19 09:02:56 +00:00
Goffin Simon 146d241988 [FIX] sale, sale_expense, sale_timesheet: Re-Invoice Expenses not visible
Steps to reproduce the bug:

- The field expense_policy in the product.product form view was not visible before saving

PS: The default value was always set to False.

opw:2194236

closes odoo/odoo#45594

X-original-commit: 7068ae7ec740525bbf5702ad1e78e8e6b0d551e0
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-02-18 10:02:06 +00:00
jerome hanke (jhk) 45aa0aeaf5 [FIX] mail: onchange on activity_type does not erases note by default
Steps to reproduce:
- install crm
- go to any lead and schedule an activity in the mail thread
- select "email" as activity type and type some text in the note field
- change the activity type to "call"

Previous behavior:
The text you had in the note field is erased even if there
is nothing set as a default message

Current behavior:
the note field gets erased only if there is a default message set
for the current activity type

opw-2195368

closes odoo/odoo#45603

X-original-commit: 1445b694e6111727d93d548f2830c53180fb9aa7
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-02-18 10:47:20 +00:00
qdp-odoo e6d2b8e782 [FIX] account: allow invoices with a 0 total to be saved.
fixes #44687

closes odoo/odoo#45648

X-original-commit: 17fdda67e17ace6dc088aa33bddfd85aeac546bd
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-02-18 14:39:04 +00:00
qdp-odoo a2489f7c59 [REV] account: reverse entry when account move line contains 0 in credit or debit
This reverts commit db691dbebf because the appropriate solution was to filter lines with 0 debit and credit during the reverse_move before the reconciliation (which apparently has already been done by another patch).

This patch, however, was causing the followup report to show lines on a receivable account with a partner and 0 balance with 0 way to remove them.

X-original-commit: 6a5271b7f4109a4f2a20378698fbe479d73ed9cb
2020-02-18 14:39:03 +00:00
Paul Morelle 8ec5ab0078 [FIX] doc: gantt view no longer support date_delay
Use date_stop instead, and remove the instruction to remove the computed
field.

closes odoo/odoo#45669

X-original-commit: 3650adbac52d19ecc6265d90babeb6fc270d3ac2
Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2020-02-18 19:20:14 +00:00
Paul Morelle 67b114da55 [FIX] doc: add missing tag in documentation exercise
The diff was truncated earlier because the amount of lines has not been
incremented.

X-original-commit: ea4dc2e0f266e26d9596a8128b2e3a1fe6a325a4
2020-02-18 19:20:14 +00:00
Toufik Ben Jaa 9fa2db1369 [FIX] website_blog: avoid crash when redirected on /blog
- When browsing the blogs, in some cases the code need
    to fix the URL to properly slugify the tags.

    When so, the code crashes since it is trying to maniapulate
    a `werkzeug.wrappers.Response` as if it was a `dict`.
    To avoid this, we directly return the `werkzeug.wrappers.Response`
    instead of trying to modify it.

closes odoo/odoo#45658

X-original-commit: d26ba7e4b71138a324bbb729f406cbad562881e7
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-02-18 16:29:50 +00:00
William Henrotin 57ce142653 [FIX] mrp: adjust procure method for additional moves
Commit c883ed1087 let the possibility to
add additional stock moves in a confirmed production. The issue is those
move don't get the production group and their procure method is set
(and never changed) to make_to_stock.
This commit call adjust_procure_method before confirming additional
moves.

closes odoo/odoo#45660

X-original-commit: 96cc10fa79a120172b3cde88d50ba2fda5e75ab5
Signed-off-by: William Henrotin <Whenrow@users.noreply.github.com>
2020-02-18 16:43:06 +00:00
Odoo's Mergebot b97d33db4e [FW][MERGE][FIX] (website_)event(_question/_track): provide fixes related to 13.2 event upgrades
Purpose
=======

Fix kanban state default value and display in community.

Fix question answers not correctly parsed from frontend.

Fix sale availability ACLs issue when having tickets.

Do not group the event tracks by location.

See sub commits for more details.

Task 2188857
PR #44545

closes odoo/odoo#45655

Forward-port-of: odoo/odoo#44545
Related: odoo/enterprise#8533
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-18 17:55:18 +01:00
Debauche Stéphane 50d1ac6263 [FIX] website_event_sale: reset sale when buying free tickets
When we buy a ticket on website, a sale order is automatically created and
confirmed if the ticket is free. When we buy a second ticket we will edit the
old SO, but we can't, because the SO was confirmed.

Solution
========

In `_create_attendees_from_registration_post`, reset the sale information.

Task ID 2188857
PR #44545

X-original-commit: d0e80ffdcc3a1ca2d872df66e1aee336f1777378
2020-02-18 15:59:13 +00:00
Debauche Stéphane 33630da5f1 [FIX] website_event_track: remove default group by location for tracks
Because it is counter intuitive for track managers.

Task 2188857
PR #44545

X-original-commit: 4fcbb83a067782b13da9c858628e90d869928345
2020-02-18 15:59:13 +00:00
Debauche Stéphane 62257ed5f2 [FIX] event_sale: compute sale_available using superuser
Indeed this field is notably based on tickets availability. Reading tickets
products is not necessarily granted to everyone. People reading events should
be able to know if the sale is available or not independently of their access
on product model. Let us therefore use a compute sudo.

Task 2188857
PR #44545

X-original-commit: cfabf12ef888a9dac48cbb19763740e2c65225d5
2020-02-18 15:59:12 +00:00
Debauche Stéphane 3721f49d4e [FIX] website_event(_questions): correctly parse frontend question answers
When user register to an event from website, they can answer questions
specific to a given registration or to all registrations. However they
are not correctly parsed and not saved.

Task 2188857
PR #44545

X-original-commit: e27d9b5c4f234f6ce64456c2f52e7cfb0331332f
2020-02-18 15:59:12 +00:00
Debauche Stéphane 9b55dfcc35 [FIX] event: fix and provide a default value to kanban state
In the event form view, when only community is installed, kanban state
is not on the right part of the form.

Moreover it should have a default value.

Task 2188857
PR #44545

X-original-commit: 1813f064bdcbc09131197484ed3c075dcba8bcb7
2020-02-18 15:59:12 +00:00
Patrick Hoste 71206f42f7 [IMP] event: improve event tree view
PURPOSE

Update tree view to add optional fields to make it easier to read.

SPECIFICATION

Modify the event_views files to add some fields (optional or not)
It add some more informations about the seats, the tracks and sponsors
and if the event is online or not.

LINKS

Task ID : 2192652
PR : #44938

Related: odoo/upgrade#801
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-18 14:14:46 +00:00
Patrick Hoste 1de3d44013 [IMP] event: remove seats_min and default_registration_min from event model
PURPOSE

This field is deprecated. Since its usage was to trigger a warning when
trying to confirm an event and confirming an event is not done anymore,
it has become obsolete.

SPECIFICATION

remove seats_min field and usage from event.event
remove default_registration_min field and usage from event.type

LINKS

Task ID : 2192652
PR : #44938
2020-02-18 14:14:46 +00:00
Katherine Zaoral 62516ae5ff [FW][FIX] l10n_latam_invoice_document: proper validate vendor bills
Formerly the vendor bills, customer invoices and regular journal items were
evaluated by the _check_unique_sequence_number method, but this is wrong
and also was overwritten Odoo original constraint error message.

Now the _check_unique_sequence_number evaluate the account.moves that are
not vendor bills that use documents because this kind of bills uniqueness
depends on the vendor: we can have same name of vendor bill from different
partners. This is evaluated in the already existing
_check_unique_vendor_number method

closes odoo/odoo#44813

closes odoo/odoo#45643

Original-signed-off-by: Josse Colpaert <jco@openerp.com>
X-original-commit: beaa3bbacd4bd35ed11962a7466f111e5e85f0d8
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-02-18 14:09:25 +00:00
Romain Derie 7dd70438e1 [FIX] website: list real url endpoint, not 301 url
Sitemap uses `generate()` results, which were using `_rec_name` as slugified
URL.
Routing map has endurl using slugified `display_name` which is checked against
during `dispatch()`, that will redirect 301 to that url.

For instance:
  - `/shop/product/acoustic-bloc-screens-23` is listed in sitemap while this
    URL is not the correct endpoint. Reaching this URL will 301 redirect you to
    `/shop/product/furn-6666-acoustic-bloc-screens-23`.
  - `http://localhost:8069/event/design-fair-los-angeles-1` in sitemap which
    redirect to `/event/design-fair-los-angeles-2020-02-14-2020-02-18-1`.

Sitemap should contains endurl, not 301 URL.

task-2119086

closes odoo/odoo#45642

X-original-commit: f4c60bd55920d4e24de817634032649b3c3caff0
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
2020-02-18 14:08:02 +00:00
Kirill Sudnikovich cc7f89bee7 [CLA] signature for 0311snitch
closes odoo/odoo#45632

X-original-commit: cc817f54a02c834f4c151e3191cc479ee348ecf0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-02-18 13:19:16 +00:00
Thibault Francois bd7b36aa5a [FIX] account: allow salesman to send and print posted invoice
Issue: as salesman you want to send and print the invoice of your customer
but you don't have the access to write on the invoice
and thus you don't have access to create a mail.message and
set the flag invoice_sent to True

Allow to post message on an invoice when you have read access

closes odoo/odoo#45629

X-original-commit: d23d872f885f34bbbd747471e35e6914ac79b6cf
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-02-18 13:15:04 +00:00
Nicolas Martinelli a232f56312 [FIX] point_of_sale: refund in multi-currency
- Create a POS in a currency different from the company currency
- Open a POS session
- Do a refund (negative quantity)
- Close the session

An incorrect journal entry is being created, blocking the process.

This is because the sign of `amount_currency` is changed, while it
shouldn't.

opw-2191664

closes odoo/odoo#45619

X-original-commit: 1ac17f5d05dc4dd82db4a622229ba1ca2a7f31aa
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-18 11:58:36 +00:00
Joseph Caburnay dc980e9448 [FIX] point_of_sale: anglo saxon and tax lines in different currency
The problem occurs when the pos session has currency that is different
from the company's currency. Additionally, product that is tracked in
accounting is also sold in this session.

This situation results to anglo saxon move lines that are incorrectly
converted.

The current implementation considers the value from the stock valuation
layer to be in the session's currency. However, that is not the real
case because values in the valuation layer are always in the company
currency.

With regards to tax line, the tax_base_amount is not converted to the
company's currency. It's value should always be in company's currency.

This commit fixes the behavior of pos in generating anglo saxon lines
and setting the correct tax_base_amount in the pos session's accounting
entry.

X-original-commit: 2bdbea3bbf87a921ed3b343f5146a519f10e0add
2020-02-18 11:58:36 +00:00
Nicolas Martinelli 38151f42c6 [FIX] hr_recruitment: strip emails
- Create 2 applications with the following emails:
  'test@test.com'
  'test@test.com   '

The 'Applications' stat button doesn't match the 2 applications.

Since `_compute_application_count` uses a `read_group` for performance
reason, we choose to strip the value at create and write for the sake of
simplicity.

opw-2189965

closes odoo/odoo#45613

X-original-commit: 00cfc324134b289417ba25373d472ba7cce4c78f
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-18 11:32:10 +00:00
jvm-odoo edc4c093d8 [FIX] sale, purchase: fix empty partner lang
Issue

	- Create new db with language en_CA
	- Install Sales & Purchase
	- Enable fr_CA
	- Create a product & Save
	- Edit the name & Save
	- Create a quotation or RFQ
	- Do not select partner
	- Select your product

	The description is still the old name

Cause

	We try to browse a product with an empty
	partner language

Solution

	Use odoo.tools.misc.get_lang() in order
	to fallback to a language is the partner's
	one is empty

closes #44357

OPW-2196602

closes odoo/odoo#45620

X-original-commit: 4561b6bd4c2afab8ae29ced1a9085e6878a9921d
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-02-18 12:01:58 +00:00
David Beguin 6f2865e456 [IMP] im_livechat : set livechat inactive _onCloseChatWindow
If the visitor closes the livechat window, he is redirected on rating /
feedback / send_transcript screen but he cannot go back to the conversation,
except by reloading the whole page.

Conversation should then be considered as inactive after the first click on X.

This commit close the conversation (set as livechat inactive and send the
'has left conversation' message) at first time the visitor closes the
conversation.

Task ID: 2120210
PR #39939
2020-02-12 16:06:22 +00:00
David Beguin 20a7ae2657 [REF] im_livechat, website_livechat : move close livechat session to base module
In order to be able to flag the livechat as inactive when the visitor left the
conversation, livechat_active field is moved to im_livechat module, as it is
not linked to website_visitor.

This commit is also a preparation for next one, which will implement the close
conversation right after the first click on x button in livechat window (at
visitor side). We needed the livechat_active flag to be available without
website installed.

Task ID: 2120210
PR #39939
2020-02-12 16:06:22 +00:00
Meghna Jaswani 7b9e13e091 [IMP] account: sale or purchase receipt active from account settings
Purpose:
If the user is not using receipt functionality in his organization then it's can be hidden.

Current behavior before PR:
Sale and purchase receipt by default show when the account module is instaled.

Desired behavior after PR is merged:

Now users can activate Sale or purchase receipt from accounting settings.

closes odoo/odoo#44464

Task: 2028813
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-02-03 10:32:13 +00:00
yhu-odoo dc10774d52 [FIX] stock, mrp: inter company transit chained moves
Let's say we have a chain of move
wh1 - intercomp transit -> intercomp transit - wh2

The second move will be reserved according to what the first move
brought since they are chained. This behavior resulted in rev[0] which
tries to work around the ir.rule limiting the access of stock.move and
stock.move.line records in multi-company environment.

This patch wasn't perfect since, if the first move brought a lot, the
second move will reserve this lot and it will result in another access
error since the lot will still have the company of the first move.

We fix this by implementing the following logic: receiving from another
company should behave the same as receiving from the supplier, no
reservation is applied. We fix this by marking the inter company transit
as `_should_bypass_reservation` and we break the move chain if the
pull/push rule create an intercompany chain.

[0] 6ff34073153767d449804669f31e26c04de0a670

closes odoo/odoo#45601

Task: 2160847
X-original-commit: 67b45da9d877a5a1bb9adb3ce14051e01f67045f
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-02-18 10:37:14 +00:00
Yenthe666 1477774582 [IMP] web: fix typo in datepicker
Before this commit the sentence was a bit weird as a date is not on the future but in the future. This commit resolves this.

closes odoo/odoo#45548

X-original-commit: b335c33655a707f71fbc01929f5eea2e659e7215
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-02-17 16:53:30 +00:00
Nicolas Martinelli 723d332339 [FIX] stock: MTSO with previous picking
- Set the rule 'WH: Stock → Customers (MTO)' with:
  Supply Method: Take From Stock, if unavailable, Trigger Another Rule
- Create product A
  Routes MTO, Buy
  Add 3 Units in 'Stock'
  Set a supplier
- Create a SO for 5 Units, validate => a RFQ for 5 units is created
- Create a SO for 2 Units, validate

2 Units are added to the RFQ, although there is enough in stock.

This is because we take into account the 'Forecasted Quantity' instead
of the 'Free To Use Quantity'.

closes odoo/odoo#45590

X-original-commit: 00993a136052487ea43bed0e59bb7bbc54113bac
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-18 09:38:37 +00:00
Nicolas Martinelli 0660a9c015 [FIX] mrp: MTSO as default
Set the MTSO as default for Manufacturing, similarly to `mto_pull_id`.

X-original-commit: 473e3ee607d318d624bb0117d14603af3ce4ecea
2020-02-18 09:38:36 +00:00
Nicolas Martinelli 1f68f33c97 [FIX] stock: MTSO in manufacturing
- Install MRP and Purchase
- Configure the rule 'Stock → YourCompany: Production (MTO)' with:
  Supply Method: Take From Stock, if unavailable, Trigger Another Rule
- Create a product AB with route 'Manufacture'
- Create products A & B with routes 'Buy' and 'Replenish on Order
  (MTO)', set a supplier
- Create a BOM for AB with:
  Product A: 2.0 Units
  Product B: 3.0 Units
- Create a MO for 1.0 Unit of AB, 'Mark as Todo'

No RFQ is created for A & B while there is no stock available and a
supplier is set.

This is because the 'MTSO' logic is located in `_run_pull`, which is
never called in this use case since no procurement is created.

We need to apply the same logic in `_adjust_procure_method`, which is
called at MO confirmation.

opw-2189694
opw-2194739

X-original-commit: 9ae3b3e8d2694f5560913682824fd10e60de14a4
2020-02-18 09:38:36 +00:00
Alexandre Kühn b1cee5cc66 [FIX] mail: no crash on receiving needaction on messaging not ready
Before this commit, when receiving a needaction message while messaging
was not ready (i.e. `/mail/init_messaging` not resolved), the web client
crashed with the following error message:

```
TypeError: Cannot read property 'incrementMailboxCounter' of undefined
```

This happens due to reception of needaction message incrementing counter
of mailbox Inbox, but this mailbox is only added after messaging is ready.

This commit fixes the issue by directly adding inbox mailbox on starting
the mail service.

closes odoo/odoo#45442

X-original-commit: 741acb9f48f2d3542549791a8fd7d6fb318bc862
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-02-18 10:03:01 +00:00
5676f8d411 [MERGE] website_event(_sale/question): improve event usability and frontend display
Purpose
===========

Batch of improvements based on user testing/on site implementation with the
focus of improving the flexibility and usability of Event. This way the
application should be easier to use for small SMEs that organize events such
as local sport clubs, theater company, ...

Specifications
=================

Deactivate by default some filters in /event page top bar

Invert the behavior of is_individual field and rename it accordingly

Revamp the event list in front-end
Filter by month instead of week on /event page
Improve /event/<model: event.event>/register page design

Add tracking on name, email, phone fields on event.track

Links
===========

TaskID 2162438
Community PR #44476
Upgrade PR odoo/upgrade#771

Related: odoo/upgrade#771
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: David Beguin <dbe@odoo.com>
Co-authored-by: Quentin Mourier <qmo@odoo.com>
2020-02-18 11:43:15 +01:00
qmo-odooandDavid Beguin 54dd2cdd47 [IMP] website_event_track: track event.track name, email and phone
PURPOSE

Avoid losing contact information. Example :

  I set a company that should come and speak to OXP and they have
  an email address as well as a phone number set. To prepare the webpage
  someone then sets the real speaker who is the person, not the company
  => Contact details are lost on the track and one needs to find
     the contact in the repertory to set it back

SPECIFICATIONS

Track name, email and phone of event.track.

LINKS

TaskID 2162438
Community PR odoo/odoo#44476

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Quentin Mourier <qmo@odoo.com>
2020-02-18 09:24:26 +00:00
qmo-odooandDavid Beguin b8e33b2439 [IMP] website_event: improve front-end display
This commit makes a few design improvements in the Event list in front-end
after some feedback about its usability

- Make the 'configure your registration' alter not editable (for studio)
- Display the "is online" through a "tag" design, not just text
- Remove remaining seats count
- Some display cleaning and improvements (design)
- Put the event date just below event title on event frontend list
- apply some minor design improvements in the /register page.
- Filter by month instead of weeks :
    This commit changes the date filtering in website_event.
    Before this commit, users could filter events by weeks.
    After this commit, users will be able to filter by months
    and will be able to filter events up to two months in the future.

LINKS

TaskID 2162438
Community PR odoo/odoo#44476

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Quentin Mourier <qmo@odoo.com>
2020-02-18 09:24:26 +00:00
qmo-odooandDavid Beguin f652912398 [REF] website_event_questions: inverse is_indivual field behavior and default
PURPOSE

Questions asked to attendees are usually attendee specific according to
"statistics". It makes therefore sense to have a field activating the global
question mode that is False by default.

SPECIFICATIONS

Inverse behavior of boolean 'is_individual' and rename it to 'once_per_order'.
By default it is set to False, meaning all questions are individual.

LINKS

TaskID 2162438
Community PR odoo/odoo#44476
Upgrade PR odoo/upgrade#771

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Quentin Mourier <qmo@odoo.com>
2020-02-18 09:24:26 +00:00
qmo-odooandDavid Beguin 9444d25db9 [IMP] website_event: deactivate some custom views by default
Before this commit, in the "customize" menu on /event, custom views enabling
filters by "category, country" and the "show sidebar" were activated by
default. This commit deactivates them by default.

Reason behind this change is that most people don't have enough events to
justify having those filters on by default.

LINKS

TaskID 2162438
Community PR odoo/odoo#44476

Co-Authored-By: David Beguin <dbe@odoo.com>
Co-Authored-By: Quentin Mourier <qmo@odoo.com>
2020-02-18 09:24:26 +00:00
Andrea Grazioso (agr-odoo) a3f102db49 [FIX] l10n_it_edi: allow invoice edit after edi sent
Create an invoice, validate it, sending the data to the SDI.
Now reset to draft the invoice and re-validate it.

Action will be blocked because "You can't regenerate an E-Invoice when
the first one is sent and there are no errors".
This add the possibility to modify the invoice without re-sending it as
long as the first one is still in a sent-with-no-answer state

opw-2196956

closes odoo/odoo#45580

X-original-commit: a315d7dde7ab4c1283c999c336284aeac86dbbbc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-18 08:16:57 +00:00