Commit Graph
137761 Commits
Author SHA1 Message Date
qsm-odooandstefanorigano c8afa7f6bb [IMP] web_editor, *: add caret icon to dropdowns & colorpicker modal
*: website

Part of https://github.com/odoo/odoo/pull/55959
task-2157252

Co-authored-by: stefanorigano (SRI) <sri@odoo.com>
2020-08-14 19:19:48 +00:00
stefanorigano (SRI) 2143b8a6b7 [IMP] web_editor: refine overlay handlers design and behavior
Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:48 +00:00
stefanorigano (SRI) 0431c49790 [IMP] web_editor: allow 'we-button-group' to increase its size
Allow 'we-button-group' to increase its size when it's the only option
inside an option field.

Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
stefanorigano (SRI) aa69ba54e8 [IMP] web_editor, *: make general adaptations of the editor UI
*: website

Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
stefanorigano (SRI) 5f48af4570 [IMP] web_editor: increase font-size/spacing of the editor UI
11px was set as default font-size when achieving 5 or 6 edition levels
in the sidebar was the norm. Thanks to the snippet's cleanup, resulting
in a reduced number of editable elements, we can now increase the
default fon-size and, consequentially, all general spacings.

Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
stefanorigano (SRI) ab3ebfb96d [IMP] web_editor, *: review 'options' tab specific components design
*: website

Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
stefanorigano (SRI) 4cfe66cebd [IMP] web_editor: review colorpicker selected color visibility
Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
stefanorigano (SRI)andqsm-odoo fdbcf87228 [IMP] web, web_editor: review colorpicker design
Part of https://github.com/odoo/odoo/pull/55959
task-2157252

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-14 19:19:47 +00:00
stefanorigano (SRI)andqsm-odoo 95cbf79325 [FIX] web_editor: properly toggle the disabled prop of the "Style" tab
Part of https://github.com/odoo/odoo/pull/55959
task-2157252

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-14 19:19:47 +00:00
stefanorigano (SRI) 93176bf3d7 [REF] web_editor, website: allow reusing tabs design
Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
stefanorigano (SRI)andqsm-odoo 5bcdcbceaa [IMP] web_editor, website: review snippets library design
Especially review disabled, hover, install and custom snippet states.

Part of https://github.com/odoo/odoo/pull/55959
task-2157252

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-14 19:19:47 +00:00
stefanorigano (SRI) f3e3e25938 [IMP] web_editor: review we-customizeblock-options border
Part of https://github.com/odoo/odoo/pull/55959
task-2157252
2020-08-14 19:19:47 +00:00
oco-odoo 8bab3d8f52 [FIX] account: fix bad forward port of https://github.com/odoo/odoo/commit/e8ce2693d77e8a69c62d1e714013a30dbb093979
closes odoo/odoo#55958

X-original-commit: 68d58a5d6730f82cc1ed8b570511b3eb038be9ec
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-14 17:09:08 +00:00
Benjamin Vrayandqsm-odoo e41622e16e [IMP] base, *: add a field image flag on the lang model
*: website

Add a field image flag on the lang model because when a language has
no country (like the arabic) we cannot use the country flag as a lang
flag. By default we use this new field and as fallback we use the
country image. We also add an arabic flag image in the website data.

Part of https://github.com/odoo/odoo/pull/55300
task-2203383

closes odoo/odoo#55300

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-14 17:40:58 +00:00
Benjamin Vrayandqsm-odoo 745ef9de97 [IMP] website, web, portal: new options language selector in footer
Add an option to display the language selection inline or with a
dropdown. Add an option to choose if language labels are flags, text
or both.

Part of https://github.com/odoo/odoo/pull/55300
task-2203383

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-14 17:40:58 +00:00
704bcc5527 [IMP] portal, *: move language switcher to portal
*: base, http_routing, website

Make the language switcher available on portal without website
installed.

Part of https://github.com/odoo/odoo/pull/55300
task-2203383

Co-authored-by: Jeremy Kersten <jke@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-08-14 17:40:58 +00:00
Romain Estievenart 0b2f2b5d96 [IMP] website_event_track_online: Allow to close the PWA install bar
On mobile device, the event PWA display an install bar to ask the user
to install the event app.

This commit allows to close it without having to install it.

closes odoo/odoo#55919

closes odoo/odoo#55952

X-original-commit: 1f7b2910a75f149f1398bba147f5e10d53448adf
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-08-14 15:18:36 +00:00
Romain Estievenart 71b44f15dd [FIX] im_livechat, website_event_track_online: avoid overlapping banners
On mobile devices, when you go for the first time inside the event
public page the PWA install bar and the livechat tooltip are displayed
at same area. Because of this it's was difficult to click on the
"install" button.

X-original-commit: 6705c6b6fe0360f95b4a499a9141f876648b7202
2020-08-14 15:18:35 +00:00
Francois (fge) c06bb52f57 [IMP]hr_recruitment: Back2Basic - Improve Recruitment usability
Added a new tour for the module hr_recruitment

Hr.job:
Form view:
- Using a notebook view for increased clarity
Kanban view:
- Added a toggle button to publish/unpublish a job offer.
- In the menu, added the « Create Interview Form » button to create an interview form.

Hr.applicant:
Generale:
- Use of the "Applicant: Acknowledgement" template by default when an application is moved to the "First Interview" stage.
Form view:
- Possibility to consult an interview after this one and not before
- The "CREATE EMPLOYEE" button no longer directly creates an employee. The employee will be created if the "SAVE" button is pressed.

Hr.employee:
Generale:
- Added of two new certifications.
And some other minor style and name changes.

closes odoo/odoo#55928

Related: odoo/enterprise#12420
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-14 14:51:41 +00:00
Mithilesh Rao 05c1cb6977 [IMP] product,*_*: Improve the product and contact list view
* stock, website_sale, base

Purpose fo the task is to improve the product list view and
contact list view.

So in this commit, we have Updated the list view of the product
updated decoration, string apply the monetory widget on cost
and sales price.
Also on contact list view make the user_id field as optiona show
instead of hide.

TaskID: 2309699
Related Enterprise: https://github.com/odoo/enterprise/pull/12288

closes odoo/odoo#55451

Closes: #55451
Related: odoo/enterprise#12288
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-14 10:37:01 +00:00
Baptiste Vergote 8de815e8fc [FIX] hr_employee: company_id required
On the dashboard of Time Off (calendar view), the banner displaying
the remaining leaves is not shown as _get_contextual_employee_id
of hr_leave_type.py is returning False due to the missing required
on the company_id of hr.employee.

A fix was made in 2bd5e9a but missing the part that the employee_id
is not required. Confirmed by YTI

close opw-2252479

closes odoo/odoo#53109

Related: odoo/upgrade#1596
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-12 10:36:50 +00:00
Odoo's Mergebot 084567e347 [FW][MERGE] website_event_jitsi, _*: improve chat room management and provide some fixes
PURPOSE

Provide some fixes after internal test deployment of event online features.
Notably: chat room management and track list.

See sub commits for more details.

UPDATE

Templates
  * website_event_meet.meeting_room_card
  * website_event_meet.community_aside
  * website_event_meet.meeting_room_main
  * website_event_track_session.event_track_content
  * website_event_track_session.event_track_aside_other_track

Views
  * website_event_meet.event_meeting_room_view_tree
  * website_event_track_online.event_sponsor_view_tree
  * website_event_track_exhibitor.event_sponsor_view_tree

SPECIFICATIONS: TRACKS LIST

It allows to better know who the speaker is. This is done through a related
on the speaker function and partner_name fields. It allows to display a
sentence like "Director at Azure Interior", which gives information on both
its position and its company.

SPECIFICATIONS: CHAT ROOMS

Clean code managing chat rooms: handle most of its management in chat room
mixin. It allows to lessen custom code in website_event_meet.

Improve sanitize heuristic of chat rooms by avoiding name collision. If a
room with a given name already exists, simply increment a counter as suffix.

Improve copy management: when copying from the chat.room.mixin on a record
with a room set, simply propagate an updated room name. As room_id itself
is not kept but a new one is create, it will create a new room with a name
avoiding collisions.

Allow multi edit for event meeting rooms and exhibitors. It allows notably
to publish by batch, and to set exhibitors as having chat rooms by batch.

Give default values for max participants count when creating exhibitors so
that required field has a default value. Otherwise people forgot it and have
to come back on form view to set it. This is due to default value coming
from mixin not being propagated to the form view.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55887

closes odoo/odoo#55949

Forward-port-of: odoo/odoo#55887
Forward-port-of: odoo/odoo#55941
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-14 18:03:00 +02:00
Thibault Delavallée d8dc8901be [FW][IMP] website_event_meet: improve meeting room model
SPECIFICATIONS

Slightly improve meeting room model

  * set chat room as required. Meeting rooms without chat room make no sense;
  * allow to translate room summary. As this is displayed in frontend having
    it translated makes sense;
  * improve label of reached participants, allowing notably to display it
    nicely in backend;

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55887
X-original-commit 54bd8281cf94ddee77073cf5d6356d847d08d024
2020-08-14 14:53:38 +00:00
Thibault Delavallée c18b614420 [FW][IMP] website_jitsi, website_event(_room/_track_sponsor): improve room management
PURPOSE

Ease chat room management, especially when dealing with meeting rooms and
exhibitors in backend: multi edit, avoid name collision, better support of
copy with room names, ...

SPECIFICATIONS

Clean code managing chat rooms: handle most of its management in chat room
mixin. It allows to lessen custom code in website_event_meet.

Improve sanitize heuristic of chat rooms by avoiding name collision. If a
room with a given name already exists, simply increment a counter as suffix.

Improve copy management: when copying from the chat.room.mixin on a record
with a room set, simply propagate an updated room name. As room_id itself
is not kept but a new one is create, it will create a new room with a name
avoiding collisions.

Allow multi edit for event meeting rooms and exhibitors. It allows notably
to publish by batch, and to set exhibitors as having chat rooms by batch.

Give default values for max participants count when creating exhibitors so
that required field has a default value. Otherwise people forgot it and have
to come back on form view to set it. This is due to default value coming
from mixin not being propagated to the form view.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55887
X-original-commit d35d6295ae1b50e9ecb4e57c5e7fb6cdd52c8b27
2020-08-14 14:53:38 +00:00
Thibault Delavallée 0b3fbfcb38 [FW][IMP] website_event_track(_session): display speaker function in its bio
It allows to better know who the speaker is. This is done through a related
on the speaker function and partner_name fields. It allows to display a
sentence like "Director at Azure Interior", which gives information on both
its position and its company.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #558877
X-original-commit 69cf94cec0913db4132ae96d2bc82be4f465d6db
2020-08-14 14:53:38 +00:00
Aymane (ayt)andAurélien Warnon 62bda18d1a [IMP] crm,website_crm_partner_assign: small view improvements
This commit adds a few minor improvements to crm views:
- Add the crm.team currency on opportunity amounts on the crm.team kanban view
- Slightly reorganize "My Activities" view for increased usability
- Remove the "alias_user_id" field in the crm.team form view because it's a
  related technical field that is not supposed to be modified there.

Task #2314894

closes odoo/odoo#55940

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2020-08-14 13:32:01 +00:00
Nicolas LempereurandMathieu Duckerts-Antoine 7cf8f6f40e [FIX] web: pivot non-persistant on null value
In pivot view, a cell data is determined by his row/column key which
are the value chain of field values to get to that row/column.

If you had a grouping with value in a cell and then close the grouping,
you could somehow get the old value back wrongly on next grouping
operations.

This happened because:

- the key was computed based on the value (eg. for relational field the
  record ID) but without the field name.

- succeeding read_group only fill existing values.

eg. If on pivot view we had a salesperson with same ID as product
category, if we closed salesperson grouping then opened product
category grouping, we could possibly get the cell value to the product
category that has the same ID as the salesperson.

With this changeset, we clear the cell data corresponding to a grouping
that has been closed.

Added test without the fix would fail by displaying data of a previous
read_group that should have been cleared inbetween.

opw-2262306
closes #55129

closes odoo/odoo#55936

X-original-commit: f1df73adca4955561814d4b8e90a62d7d50c1c33
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-14 12:31:50 +00:00
Odoo's Mergebot 43769580f5 [FW][MERGE] website_event_online_*: provide frontend fixes and improvements
PURPOSE

Provide fixes for event online modules after internal testing.

SPECIFICATIONS

Those fixes mainly target front-end display of tracks, exhibitors
and community leaderboard. Purpose is to make display nicer and
better looking notably in mobile.

See sub commits for more details.

Impacted templates
  * website_event_track_online.agenda_main
  * website_event_track_online.agenda_main_track
  * website_event_track_exhibitor.exhibitor_aside
  * website_event_track_session.tracks_display_list
  * website_event_track_session.event_track_aside_other_track
  * website_event_meet_quiz.community_leaderboard_small
  * website_event_meet_quiz.visitor_quiz_points_card
  * website_event_track_quiz.top3_visitor_card
  * website_event_track_quiz.all_visitor_card

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

closes odoo/odoo#55933

Forward-port-of: odoo/odoo#55634
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-14 18:02:38 +02:00
Thibault Delavallée f236fdfe52 [IMP] website_event_track_quiz: add visitor_track fields on views
It allows to help debugging and could also allow to change gained points in
case some tweaking is necessary.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

X-original-commit: 6d81690ff77dfbae74128cc2cbd875b2b3074823
2020-08-14 12:06:11 +00:00
David Beguin 48a5ea290a [FIX] website_event_meet_quiz: redesign leaderboard in community page
Make it looking nice in mobile (and desktop). Also remove some unnecessary
complexity in DOM.

Display leaderboard even if only one or two visitors had points. It is
better for onboarding purpose.

Display 'You' only in if the visitor is you AND if visitor.name is empty.
This allows to display 'You' instead of 'Website Visitor #123' but still
display your complete name if you are logged in or if you have a registration.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

X-original-commit: d767c998f2d269ec0f23a6e96874b47f78fd87f8
2020-08-14 12:06:11 +00:00
David Beguin ed89738ba6 [FIX] website_event_track_exhibitors: improve display of suggested exhibitors
SPECIFICATIONS

Do not hide closed exhibitors, as we may feel there is nothing to show outside
of classic opening hours. Instead simply put open exhibitors on top of list.

Improve display of exhibitor line: put badge below country to gain space
for the exhibitor's name. Also apply the color of ribbon like done in sponsor
card view, to better distinguish sponsor levels in badges.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

X-original-commit: 421247a1d6127349989b38e596cc197565800c7d
2020-08-14 12:06:11 +00:00
David Beguin d01fc5e55c [FIX] website_event_track_session: show only day when track is not today in "Other Tracks" list
Purpose is to gain space and avoid having long date strings with timezone and
all unrelevant details.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

X-original-commit: 2e67ba9f16dc4614e94027820408699dc3dabed5
2020-08-14 12:06:10 +00:00
David Beguin 07f2eab889 [FIX] website_event_track_online: make agenda card more mobile-friendly
SPECIFICATIONS

Currently agenda does not display well on mobile. This commit improves display
of card in order to have a cleaner display.

When displaying tags, track name, reminder, speaker name: ensure that mobile
uses more vertical space than horizontal one, leading to a better result.

Fix: remove fa-user if no speaker on agenda card

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

X-original-commit: d8b35ece9e3627953700c281057fbf09f973cdd0
2020-08-14 12:06:10 +00:00
David Beguin 6382b00a70 [FIX] website_event_track_(online, session): improve date display in agenda and track list
Make day date header in track list and agenda looks the same. Also improve
typography to have a nicely looking responsive date.

LINKS

Coming from internal feedback while deploying online support
Task ID-2314778
PR #55634

X-original-commit: 78b12324c720c13ac75b0cb830b2ebf1f286483f
2020-08-14 12:06:10 +00:00
Romeo Fragomeli 2dffd1c8f0 [FIX] website_event_track_online: PWA not working with multi-lang
Before this commit, the PWA didn't work when the language was specified
in the URL like in "/fr_FR/event".
Note that it worked fine for the default language.
The reason is that we were out of the scope.

After this commit, we build the scope dynamically depending on the
language entered in the URL.

Steps to reproduce:
- Configure a second lang to the website
- Go to website
- Choose another language than the default one. (e.g. "French - BE")
- Go to the event page
=> Bug due to /fr_BE in the URL

closes odoo/odoo#55924

X-original-commit: 27a3837df5ecb9a0eada49ceddecfa447be1833d
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-08-14 09:55:14 +00:00
Benjamin Frantzen (bfr) 847a228230 [FIX] account_edi_facturx: account_move changed to account.move in a self.env
closes odoo/odoo#55920

X-original-commit: 867372bfb106031ced0b2d16da03efd868aef5bb
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: bfr-o <bfr-o@users.noreply.github.com>
2020-08-14 09:19:13 +00:00
Romeo Fragomeli 404928f02d [FIX] test_main_flows: mobile: use the search view to find the customer
The main flow tour has been disabled in error by the runbot team.
Unfortunately, some issue occured after after its reactivation
on the runbot.
This is probably due because some data has been added and the
customer no longer appears in the suggestions.

To fix this, we open the search view to find it.

closes odoo/odoo#55914

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-08-14 08:02:37 +00:00
Barad Mahendra afe918c58e [IMP] base: Improve the search panel for module.
Purpose of the task is to improve the searchpanel of module and
display only those category which has parent ctagory is false.

So in this commit,
 - Display only those category which has parent_id is False
 - But count the number from child category as well as parent category
does not contains the module
 - always visible those category even module count is 0

TaskID: 2240257
Related Enterprise: https://github.com/odoo/enterprise/pull/12413
Closes:55907

closes odoo/odoo#55907

Related: odoo/enterprise#12413
Related: odoo/upgrade#1626
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-14 07:38:58 +00:00
Barad Mahendra 00a7f3aaad [IMP] various: Reseuence the module and module category
The purpose of this task is to improve the UI of the 'Apps', by
improving the clarity of the kanban, sequencing the apps and
simplifying the app categories in the searchpanel

So in this commit, Added the new sequences for ir.module.module
and ir.module.category records.

TaskID: 2240257
Related Enterprise: https://github.com/odoo/enterprise/pull/12413
Closes: #55907
2020-08-14 07:38:58 +00:00
Mathieu Duckerts-AntoineandAaron Bohy 3da3ae1178 [FIX] web: pivot: avoid to toggle invalid measure
Before this commit, click on the divider in the menu 'Measures' of the
pivot control panel would cause a crash. The present commit fixes that
situation.
We also bring another small correction: the menu won't close if one
clicks on the measure list but not exactly on a menu item or the
divider.

closes odoo/odoo#55902

X-original-commit: aad9f3fd7499ef8b660cc25fea840a34d70f75a6
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-14 07:52:49 +00:00
Nasreddin (bon) a137f22363 [FIX] web_editor: Multi-company error when adding image to task description
Issue

	- Select "My Company (Chicago)" as current company
	- Open "Projects" module
	- Create a new Task
	- Edit description, upload a new Image and add it to description.

	Multi-company error "Write" on project.task .
	In frontend, can optimize uploaded picture.

Causes

	Wrong "allowed_company_ids" value in context.

Solution

	Remove allowed companies from context to avoid allowed_company_ids
	which may erroneously restrict based on website.

opw-2304511

closes odoo/odoo#55897

X-original-commit: 8f6506a57853040d065569fdd60f9d94be8e26e1
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-08-13 16:22:18 +00:00
qsm-odoo c5fee9d009 [FIX] web_editor, *: restore custom snippets thumbnails
*: website

Since [1], the thumbnails of the saved snippets were not right anymore,
all fallbacking to the default image. This is because snippets thumbs
now use svg files instead of png and the snippet saving feature did not
allow it. This commit fixes that and makes the feature more robust.

- Allow to use any original thumbnail, and not only for website app.
- Remove useless defaut image, a fallback for when the feature is broken
  is useless.
- Identify snippets by key instead of by main class (possible since
  the new `data-snippet` attribute on snippets).

[1]: https://github.com/odoo/odoo/commit/b7fe2bdae2f45372c0d538767a226a413b806f3f

closes odoo/odoo#55896

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-13 15:44:48 +00:00
Yannick Tivisse 4afdebbb7e [FIX] hr_holidays: Fix undeterministic crashing tests
The tests in hr_holidays/tests/test_company_leave.py seem like they randomly fail if the default value for
date_to is computed on a different second than the date_from (it's a dict of fields so not ordered).

Cfr https://runbot.odoo.com/runbot/build/3727451 2020-07-30 08:28:32 vs 2020-07-30 08:28:31
for which date_from > date_to.

I imagine the call to leave._onchange_request_parameters() is meant to fix it, but it occurs after
the create() which is flushed immediately, so it's too late and the date_from/date_to SQL constraint
still triggers.

It could happen for real production usage too, so we might want to do something about that outside of tests.
Options include:

1/ making the date_from/date_to fields writeable computed fields, with the compute method setting
   better defaults on both fields at once
2/ alternatively, remove the default=fields.Datetime.now and override default_get instead for
   deterministic defaults on both fields at once

The second solution seemed to be the better one.

closes odoo/odoo#55880

Taskid: 2312029
X-original-commit: 6908ea471dd18182f83c81046f0000a00898fb66
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-14 09:29:30 +00:00
Nikunj Ladava ee28ab8132 [ADD] l10n_ec: added module dependency
added l10n_latam_base, l10n_latam_invoice_document
modules as a dependency of l10n_ec

task- 2316911

closes odoo/odoo#55839

Related: odoo/upgrade#1629
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-14 10:02:09 +00:00
Katherine Zaoral 8793d40211 [FIX] l10n_ar: be able to install demo data
For some reason odoo is not copying the expense_currency_exchange_account_id
and income_currency_exchange_account_id from the partner chart template.

In order to avoid errors in the demo we explicitly define this accounts in
the exempt and responsable inscripto chart templates.

closes odoo/odoo#55831

Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-12 21:30:48 +00:00
Victor Feyens fdb23e282b [IMP] *: wrong any() usage
Replace wrong usages of any(list|recordset), by any(generator)
to speed up computations, avoiding list creations and/or looping twice on a recordset
for nothing.

any([generator]) => any(generator)
any(filtered) => any(generator)

closes odoo/odoo#55768

Related: odoo/enterprise#12360
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-08-14 09:56:10 +00:00
Florian Gilbert 65bf6988f9 [FIX & IMP] purchase: Remove weird domain in attrs & add purchase order on account move line.
This commit removes "state = purchase" in account move attrs domain. The purchase state doesn't exist.
This commit adds a related field to purchase order in account move line.

Task ID: 2312024

closes odoo/odoo#55611

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-14 12:02:38 +00:00
william 98b64be59f [IMP] account: misc improvements of reconciliation models
Task 2292368
Bundle
https://runbot.odoo.com/runbot/bundle/master-reconcile-model-boost-wan-60105

* Search in Notes and References, not only in the statement's
communication.
* Activate the partner mapping for Suggest Counterpart models
* Always show the Amount Matching field
* Do not block the deletion of models with a partner mapping
* Allow to archive models
* Add a button to get back to Processing state from Validated state on
bank statements.

closes odoo/odoo#55031

Related: odoo/upgrade#1619
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2020-08-13 13:10:33 +00:00
william d23f91b80f [FIX] account: partner mapping and model order
Because we used the same variable to compute the partner, it was
overriden once we went through a model with a partner mapping, and kept
for models with lesser priority.

Also remove the key param to sort the recocniliation models. We want the
models to be sorted according like in the list view, and that is exactly
what the .sorted() function does without params. (no need to worry about
changing it if we change the _order)
2020-08-13 12:53:47 +00:00
william 733f1f8887 [FIX] account: previous statement at the same date
Lets assume we have these records
```json
{
    'id': 1,
    'journal_id': 1,
    'date': '2020-01-01',

},
{
    'id': 2,
    'journal_id': 1,
    'date': '2020-01-01',

}
```

with the domain
```
[('date', '<=', st.date),
 ('journal_id', '=', st.journal_id.id),
 ('id', '!=', st.id)]
```
in the compute method of `previous_statement_id`, the previous
statement of 1 will be 2 and vice versa.

A solution is to change the declaration of the field from Date to
Datetime
2020-08-13 12:53:47 +00:00