Commit Graph
134041 Commits
Author SHA1 Message Date
mreficent 3dffce34bf [IMP] fields: log warning for ignored selection
When a field is related, defining a selection or selection_add will
have no effect and the paramater is ignored.

Log a warning and fix all fields badly definied

Closes odoo/odoo#45716

closes odoo/odoo#45832

Related: odoo/enterprise#8613
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-02-20 14:58:33 +00:00
Adrien Dieudonne 62c9227fda [FIX] web: document layout configuration: style not scoped
Commit 9a482fc introduced change for the document layout preview:
all "td" tag included in clearfix were in display: flex;
Because of this some styles were broken in form views on mobile.

We could have only put this rule in the right scope but
we preferred to fix this correctly.

Steps to reproduce:
- Go to Settings
- General Settings
- Click on Configure Document Layout

Related to task-ID: 2184243

closes odoo/odoo#45830

X-original-commit: 0206ee8f8a3652ae0eeb5aa78a94b92bd6e84921
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-02-20 14:47:04 +00:00
Laurent Smet ffbb32209a [FIX] point_of_sale: Fix js compute_all taxes
The compute_all JS-side hasn't be updated since recent changes in the tax computation introduced by:
https://github.com/odoo/odoo/commit/9b7d14c6b3caba5cde0b98bfaf8aaf887fc94abd

closes odoo/odoo#45801

X-original-commit: d9601cceab365276e43634260be29e2f23749020
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-02-20 11:11:38 +00:00
Victor Feyens d3bbe14c8d [IMP] product: improve creation performance.
The default product category and uom should be fixed on generic 
undeletable records (in data files).

And by caching those default values, we can gain up to 20% time when 
creating products without providing uom and categories.

Also remove the unnecessary defaults on the compute fields, which do the 
same as the compute (and have no use because it is a non stored field).

closes odoo/odoo#45791

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-02-20 14:51:13 +00:00
Victor Feyens 5ccdc1540d [IMP] base: no use of default AND compute for non stored fields. 2020-02-20 14:51:13 +00:00
Victor Feyens 2d688510d1 [IMP] product: do not allow the deletion of the main product category 2020-02-20 14:51:13 +00:00
Victor Feyens 6d94f02ea1 [IMP] sales_team: member_ids search performance.
Each search on member_ids will trigger a ref call (one exists query each
time), whereas we could just directly use the appropriate share field on
res_users.
2020-02-20 14:51:13 +00:00
Victor Feyens f823d1b847 [IMP] sales_team: _get_default_team_id performance.
Avoid using member_ids in the search domain as it does another database
query for each call.  Use the information already in cache instead.
2020-02-20 14:51:13 +00:00
Aurélien Warnon 774d43c49f [REF] survey: clean useless .decode('utf-8') calls
This commit cleans some useless .decode('utf-8') calls when we return rendered
templates results in the survey controllers.

The http module is capable of handling that type of results and the calls were
not necessary / added complexity.

Task '2187328'

closes odoo/odoo#44540

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-04 07:37:26 +00:00
Michael Mattiello (mcm) 16c41832a3 [IMP] web: owl_compatibility warn only if debug=assets
Before this commit ComponentAdapter warned on every update and render.
This can make a lot of noises when we use some adpaters.

After this commit ComponentAdapter will warn only in debug=assets mode.

closes odoo/odoo#45583

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-02-18 08:56:41 +00:00
Joseph Caburnay 2c383aae48 [IMP] web: custom_hooks: useListener able to pass options to addEventListener
addEventListener supports an `options` argument, which can
be useful to listen on events during the capture phase

This commit allows to pass these options to the hook useListener

closes odoo/odoo#45478

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-02-20 12:33:54 +00:00
Odoo's Mergebot 85f6290b68 [IMP] survey, website_livechat: remove header, footer and livechat button from survey layout
Purpose
=======

Lighten the survey layout. It should be free of website footer and header.
Also, livechat button should not appear on survey pages.

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

Survey Layout inherits from web.frontend_layout, mainly to be able to use all the
styles rules defined in it and keep consistency between other frontend pages and survey.

Instead of inheriting another layout, this PR sets no_footer and no_header to True
for all survey layout. The idea is to show only the survey itself without having
other web/website object in the layout.

Also, to avoid having the livechat button displayed on survey layout, 'no_livechat' template variable
has been introduced. The livechat button will be displayed on all layout inheriting from frontend_layout (that is extended in website_livechat to add that livechat button) only if 'no_livechat'
is False. By default, this variable is not set so will be considered as False.
In survey layout, no_livechat is set to True.

Links
=====

Task ID: 2195185

closes odoo/odoo#45112

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-02-20 16:12:24 +01:00
Jorge Pinna Puissant bdef3505bd [FIX] sale: avoid adding account_id into section lines
- create a SO with a section;
- create an invoice from the SO.

Before this commit, an SQL constraint was raised : 'Forbidden unit
price, account and quantity on non-accountable invoice line'. This error
occurs, because the default_get function adds a default account_id to
all the lines (including section lines) if a journal_id is passed in the
context. The journal_id is added in the context since : 03353118d3176463fbf779471cc272d31fb11b2e

Now, the default_get function only adds a default account_id if the line
is not a section line or a note line. This avoids the SQL constraint to
be raised, and the invoice is correctly created.

opw-2199356
opw-2199017
opw-2198781
opw-2198650

closes odoo/odoo#45809

X-original-commit: d71830f5d9f9a717194aaa8ec993d99739fe09e7
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-20 12:22:50 +00:00
Rémy Voet (ryv) 59dfbc0829 [FIX] mrp: fix count mo in sale order form
In case of MTO+Manufacture, a sale order have a count of
manufacturing order created from it :

1. create SO with MFG+MTO product with quantity of 5.
2. confirm it. MO will be created for 5 Nos.
3. increase it to 7 . another MO created for 2 Nos.
4. there are 2 MO created based on 1 SO.

It was due that new stock move was merge, and the
'created_production_id' info was lost during the merge (keep only
the original one). To fix, avoid merging stock move with distinct
'created_production_id' (done by override
'_prepare_merge_moves_distinct_fields' and
'_prepare_merge_move_sort_method' methods ).

task-2199568

closes odoo/odoo#45800

X-original-commit: 1fb32cfd17122b625d211a7d22ec319fba35e87f
Signed-off-by: Rémy Voet <ryv-odoo@users.noreply.github.com>
2020-02-20 11:11:17 +00:00
oco-odoo 4b629c7243 [FIX] account, hr_expense: incorrect forward-port
Incorrect forward-port of e09798098679f made in 51d49517a8b5af2d1c85d9c6.

closes odoo/odoo#45775

X-original-commit: 099d0d6785b85dd67ef091fdaef084713fafb3c0
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-02-20 08:55:15 +00:00
Damien Bouvy ced9ed6bd8 [FIX] sale: demo installation order
The product demo file marks a lot of product as 'invoice on delivery'
(the default is invoice on order), but the invoice status and amount to
invoice on order lines is _not_ recomputed when the product's invoice
policy changes (this is a conscious choice, as it would trigger
recomputation on past orders).

This means that the demo for products must be loaded _before_ the orders
demo, otherwise the computation for what is to invoice or not will seem
to make no sense on a demo db (even though the computation is in fact
correct): a lot of orders where marked as 'to invoice' while the
products where not delivered; invoice those and the system will again
mark them as 'to invoice' and will immediately want to generate a
refund...

closes odoo/odoo#45778

X-original-commit: e10f473fa2aba411755b76a0c1af7ff107cde5de
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-02-20 09:00:29 +00:00
jvm-odoo 4822e6875e [FIX] sale, purchase: fix payment_term_id default value
Issue

	- Install Sale and/or Purchase
	- Create new order
	- Debugger > Set Defaults
	- Set default value for payment terms
	- Quit and re-create

	Default value is not filled

Cause

	The default value is set but it's overridden
	by a onchange

Solution

	Remove the override who puts the value to False

OPW-2197940

closes odoo/odoo#45776

X-original-commit: 4d03e6dd81fab2aa12e3205106fd59758c6c90f6
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-02-20 08:59:12 +00:00
qsm-odoo fde1c40e4d [FIX] website_forum: restore "best answer" color
The button which allows to indicate that an answer is correct is
supposed to turn green once the answer is validated. This was not the
case anymore since the link button was missing its href. Indeed BS4
forces those links to "color: inherit".

closes odoo/odoo#45769

X-original-commit: ee2fb7c05c9065c9d349682e60376566b96f1c1f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-20 08:28:04 +00:00
Cedric Snauwaert 07d5ea3779 [FIX] http.py: remove try except in JsonRequest.dispatch()
The idea is to make the dispatching and error-handling consistent for
JsonRequest and HTTPRequest.

In 8809c77f60 we introduced a way for
request-specific error-handling, but JsonRequest.dispatch() was
still catching all errors internally, instead of letting them bubble
up to ir_http._handle_exception()

By removing the internal try except in JsonRequest.dispatch(), we do not
change the behavior much as there are only a couple of "if" in
ir_http._handle_exception() before returning to the request-specific
handle_exception. However we give the opportunity to modules to
customize exception handling even for JsonRPC, the same way it is
possible for HTTP requests.

Here is a simple pseudo code of the flow

ir_http.dispatch():
	try:
		request.dispatch()
	catch Exception as e:
		ir_http._handle_exception(e)

ir_http.handle_exception(e)
	request._handle_exception(e)

closes odoo/odoo#45639

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2020-02-18 14:50:57 +00:00
Raphael Collet 60b0f6da34 [FIX] core: avoid invalidation of field 'ir.ui.view.arch' when setting it
This fixes the following issue.  Set the field `arch` on a view; this
automatically writes on `arch_db`, which is a translated field.  If some
translations are discarded, a call to `unlink()` invalidates the whole
cache.  And then things go wrong: when `arch_db` is validated, the field
`arch` is missing from cache, and the ORM sets it to `None` because the
field is still protected by the initial write!

Fix the issue by avoiding the call to `unlink()`, and do it in SQL
instead.

closes odoo/odoo#45740

X-original-commit: e7679152ee480a51ef2b6d208ae7a05b2ef61941
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2020-02-19 17:42:16 +00:00
Samuel Degueldre b293ccc7c3 [IMP] website, web_editor: option to add columns on snippet without any
In the previous snippet cleanup, a lot of superfluous row > col were
removed in favour of having the bare content directly in the section,
this streamlines the interface and prevents having many useless UI
elements.

At the same time however, there are some snippets on which you might
want columns so that you can pull the content off-center and give the
block a background color independently of its containing section
(namely: the cover, title and text-block snippets)

this commit adds an option to add columns on those snippets (and remove
those columns completely if they're no longer wanted)

task-2120360

closes odoo/odoo#45712

X-original-commit: a44bfc4f7bba16d700650ecc2369fa1445ecbfb9
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-02-19 14:48:55 +00:00
Anang Aji Rahmawan 06d98c2031 [FIX] account: fix long memo text is not wrapped correctly
closes odoo/odoo#45706

X-original-commit: 2cae50a70505b5a93f7fabb6623a135bda163781
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-02-19 11:54:41 +00:00
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