Commit Graph
137504 Commits
Author SHA1 Message Date
xO-Tx a2ed3bda2e [IMP] website: add mobile visibility option on columns
Allow the user to indicate if a column should be visible or not on
mobile viewport.

task-2308828

closes odoo/odoo#55195

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-07 09:16:32 +00:00
Patrick Hoste f8e804a377 [REF] website_slides: remove unused template
PURPOSE

Remove an unused template that was never called. Let us clean it.

LINKS

Task ID-2241513 (eLearning onboarding and testing)
PR #55567

closes odoo/odoo#55583

X-original-commit: 0f160586afdf139781049fd95c8c56e80c5522da
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-06 15:07:37 +00:00
Patrick Hoste 8c0bc4f4b8 [FIX] web: fix image widget when record name is ..
PURPOSE

Before this commit, when you used the 'image' widget when the record name was
``..`` (double dots) it couldn't retrieve the image since the double dots was
decoded as the parent directory shortcut. After this commit, the double dots
will be replaced by -- with the downside to loose the true record name.

SPECIFICATIONS

Replace the .. (double dots) with -- in the filename.

Using .. may seem like a strange use case but if you actually try to find
a partner called ".." in a production database, you might be surprised ...

LINKS

Task ID-2241513 (eLearning onboarding and testing)
PR #55567

X-original-commit: dcb7a924c36cd3f3aeef891ddd8830bd66322025
2020-08-06 15:07:37 +00:00
Patrick Hoste 15d2611003 [FIX] portal_rating: fix rating_avg calculation
PURPOSE

The rating_avg calculation wasn't correct. It divides by 100 instead of
multiplying by 100.

Followup of e4a4ffb974

LINKS

Task ID-2241513 (eLearning onboarding and testing)
PR #55567

X-original-commit: 35e286b9295d692bbeadea3e65708de4376924db
2020-08-06 15:07:36 +00:00
Laurent Smet 71aa83beed [FIX] account: Fix traceback when refunding invoice with tax on_payment
- Create an invoice using a tax exigible on_payment.
- Refund the invoice with 'Full refund'.
=> Traceback: The lines are already reconciled.

Explanation:
Odoo tried to reconcile all lines having a reconcile account, including the one set on taxes.
- The first reconciliation is made on the receivable account triggering the cash basis entries that will be reconcile with the tax account.
- The second reconciliation fails because the account has been reconciled to the cash basis entries.

closes odoo/odoo#55594

X-original-commit: 01f2a4c3d95b4ea762ef34ae56ee717a9614cb1a
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-06 21:28:00 +00:00
Martin Trigaux 7742f0b42b [FIX] tools: skip inexistant model
When trying to generate translation for a model that is not present in
the registry (leftover of migration?), the code used to return
self.browse(), expecting an empty recordset.

self was however a TranslationModuleReader that has no browse method
return empty recordset with no model specified

closes odoo/odoo#55574

X-original-commit: c004f00bdec83b7c56664425011db53db85da53a
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-06 14:16:08 +00:00
Xavier Dubuc c9e25aab34 [FIX] mail: allow folded chat windows to be shifted
task-2313414

closes odoo/odoo#55593

X-original-commit: 609dab84c6085af1ab27ee142c6ee674d7d321e9
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-06 21:27:15 +00:00
Jorge Luis Juarez 9637de2f9e [CLA] signature for JorgeJuarezM
closes odoo/odoo#55505

X-original-commit: 3183a68002ce490eb2c821e8c7e0923b64cd2a18
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-06 07:18:23 +00:00
Sébastien Theys 9216bdcb6f [FIX] mail: clean up JS relations by storing records
Remove the support and the conversion from record to localId and back from
localId to record.

Part of task-2308312

closes odoo/odoo#55481

X-original-commit: fc5e8be4e65518770a281f0dffae07854d20073a
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-05 15:09:34 +00:00
Alexandre Kühn 9432d54705 [FIX] mail: redirect to origin thread
Before this commit, redirection to non-channel/non-partner origin
thread was opening the form view of partner with matching id with
origin thread.

This happened because such redirections used hard-coded model
'res.partner' instead of the actual origin thread model.

task-2312993

closes odoo/odoo#55463

X-original-commit: 773cb5ddfd4c63fb9387623494d344e20520acba
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-08-05 12:51:29 +00:00
Sébastien Theys 6f9d97dbfa [FIX] mail: ensure ChatWindowManager is re-rendering after init
This fix non-appearing chat windows if messaging becomes initialized after
ChatWindowManager was first mounted.

closes odoo/odoo#55592

X-original-commit: 96f5bfb9da21668eadaa7bbe81d10d0bfd4f4483
Related: odoo/enterprise#12286
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-06 20:48:20 +00:00
Didier (did) 4366b88d60 [FIX] mail: hide rating button in chatter
Before this commit, the rating buttons were displayed inside the
chatter an could be used to "rate" from there. Intend is to display
these buttons only on email: the message in chatter should not have
these buttons.

This commit fixes the problem similarly to what has been done in
13.3. Note that this solution is quite poor, because it could remove
content from other messages that inadvertently hit this CSS selector,
but at least it works for all existing rating messages.

task-2282414

closes odoo/odoo#55591

X-original-commit: 4474adef45be3289728edc289ecc71c38abcf1b8
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-06 19:22:26 +00:00
Sébastien Theys bab2093109 [FIX] mail: process result of init messaging asynchronously
Part of task-2308312

closes odoo/odoo#55562

X-original-commit: bdc2a9f516562c854837248e7d0898e5cfc8dec1
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-06 13:27:38 +00:00
jvm-odoo 7b51aaa1ca [FIX] purchase: fix bill ref replaced by PO ref when using auto complete
Issue

	- Accounting & Purchase
	- Create a PO for wood corner
	- Create a bill for wood corner, add a ref
	  and auto complete with the previous PO

	The ref is replaced by the PO's one

Cause

	In purchase account_invoice _onchange_purchase_auto_complete
	we update all the bill values with the PO values including
	the PO ref (empty or not)

Solution

	Exclude the ref of fields to be updated

OPW-2313418

closes odoo/odoo#55560

X-original-commit: ae0c3b600403a21a196e51ce88fa6b25990f2b64
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-08-06 13:11:22 +00:00
Andrea Grazioso (agr-odoo) feafc67280 [FIX] report: Font size decrease when adding too much content
From the Sale app create a new Quotation with a long customer
reference. Click on "Save" and then Print.

In the generated report the fields relative to the order details are not
correctly displayed: the general font size is scaled down to make the
text fit the page which is not the correct behavior.
The font size should remain fixed and all the element
should be visible, eventually spanning over multiple lines.

This is due to the broken bootstrap support of QtWebKit, used by
wkhtmltopdf to generate pdf reports.
In particular the new flexbox style introduced in the library is not
supported and every element based on it will be ill-displayed.

The solution is to fall back to the subset of supported features to
implement a different solution, which keep everything on one line but
avoid the font resizing and every possible overflow.

opw-2261573

closes odoo/odoo#55555

X-original-commit: 2dd3ed327aad6fecdcfd4b53c4338bf47e44401b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-08-06 12:29:29 +00:00
Mark Robinson 1f87150da2 [CLA] signature for Mark Robinson
closes odoo/odoo#55540

X-original-commit: cfde4bc8b7f0f7edcae6f33ed2ce6569fcc46ca0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-06 10:45:44 +00:00
wan b13f40c83e [FIX] account: use context_today instead of today
The problem of using fields.Date.today() instead of
fields.Date.context_today() arose with the recent changes in the
account.move._post() method used in the POS tests, around 1 am.

This commit changes all occurences of today to context_today.

closes odoo/odoo#55511

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-06 10:07:28 +00:00
Jorge Pinna Puissant 09bfca4d0c [FIX] hr_timesheet: wrong uom factor in widget
- Install hr_timesheet and sales;
- Create a product, set it as a service product with units of
  measurement in days.
- Set the product as a task will be created from SO;
- Add a timesheet for one day to a task in a project (8 hours for
  instance);
- The smart button on the sales order shows the time logged for that
  project.

Before this commit, when the timesheet encoding unit is 'Hours', the
smart button shows the correct logged time (8 hours). But, when the
timesheet encoding unit is changed to 'Days', the samrt button shows
0.125 Days instead of 1 Day. This occurs because the uom used to create
the uom factor for the widget is not the Timesheet encoding unit.

opw-2301510

closes odoo/odoo#55544

X-original-commit: 2a7ec79c6a4563b608a4525ebccdea5978799caa
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2020-08-06 11:00:12 +00:00
Jeremy Kersten 7e8a1f7a06 [FIX] tools: LRU doesn't have keys() method anymore
Since commit 1b30a78b, LRU is now based on OrderedDict and keys can be found
on dictionnary 'd' directly.

closes odoo/odoo#55541

X-original-commit: 3f093da75765d66ed1e2d828e8b41ed05d936d0b
Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-08-06 10:54:07 +00:00
Laurent Smet d6141b0777 [REF] account: Make 'test_portal_attachment' independant to any demo data
--task: 2290120

closes odoo/odoo#55091

Related: odoo/enterprise#12083
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-06 11:22:13 +00:00
Laurent Smet e2f81f182d [REF] account: Make the render report tour independant to any demo data
--task: 2290120
2020-08-06 11:22:06 +00:00
Laurent Smet 34d53ebc87 [REF] account: Add generic 'AccountTestInvoicingHttpCommon' class
Thanks to this setup, we will be able to run the tours independently to any demo data.
To do so, the HttpSavepointCase is born to do the same as HttpCase but with a setUpClass.

--task: 2290120
2020-08-06 11:20:27 +00:00
jbm-odoo 9dc3057e8e [ADD] calendar_microsoft: Synchronize Microsoft calendar with Odoo
TaskID 2223219

closes odoo/odoo#54936

Related: odoo/upgrade#1557
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-05 13:47:42 +00:00
qsm-odoo 78ef2ec813 [FIX] website: restore sub-headings edition toggling
Since [1], the sub-headings edition was not possible anymore in the
'options' tab of the editor panel. This is because the visibility of
rows is now automatic, depending of the visibility of the inner widgets.
The custom code for that row visibility, controlled by the user, was
thus not working anymore.

Note: this fix solves the problem with big hacks. Better code will
handle foldable zones generically.

[1]: https://github.com/odoo/odoo/commit/8d57f21d7df2033f462ead60fcb5abba4546213e

Part of https://github.com/odoo/odoo/pull/55529

closes odoo/odoo#55529

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-06 09:46:48 +00:00
qsm-odoo 6a258db1e9 [IMP] website, *: review the 'options' tab of editor panel
*: web_editor

This will more probably change again in the future but this is a first
step towards a hierarchized 'options' tab for the editor panel.

Part of https://github.com/odoo/odoo/pull/55529
2020-08-06 09:42:48 +00:00
Nicolas Martinelli 88fa6f774b [FIX] account: domain on product
- Create a product P which cannot be sold (purchase only)
- Create a customer invoice

The product can be select on the invoice.

The `sale_ok` (as well as the `purchase_ok`) field is not taken into
account in the domain.

The solution is a bit hacky but has the advantage to be safe in regards
to customizations.

opw-2308897

closes odoo/odoo#55442

X-original-commit: 88b0b664606bb42acf26165e2b7fdda44a15e0a7
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-08-05 09:06:12 +00:00
Loan (lse) cfc066c323 [FIX] website_sale: Wrong terms and conditions in created SO
To reproduce (V12) using a fresh database with demo data:
 1. Install eCommerce and Sales
 2. Change Mitchell Admin settings so that he can see the 3 companies
 3. Go into Settings and set a distinct "Terms and Conditions" text for each companies
 4. Go the Website > Configuration, set "My website" to "Company_1" and save
 5. Go to the website shop and buy any items
 6. Find its corresponding Sale order (should be on Company_1)
=> "Terms and Conditions" used in the SO is the one of "YourCompany"

Analysis:
The terms and conditions are not specified in the SO creation,
so it runs the default value code to determine its value.
However the default code just ask to use the OdooBot company "Terms and Conditions".
https://github.com/odoo/odoo/blob/b6bf91d26b8fb45997b266c16be620d834a97cc7/addons/sale/models/sale.py#L121

OPW-2297114

closes odoo/odoo#55424

X-original-commit: 60565b5cd42da080e36fee5a94bcf8eafd15934d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-08-04 16:32:08 +00:00
Anh Thao Pham (pta) 87be1ab6c4 [FIX] snailmail: allow to configure timeout for snailmail
When sending a letter with a PDF containing pictures, it could happen that the default timeout of 15s is too short.

Parameter "snailmail.timeout" has been added to allow configuration of this timeout.
Also a default value of 30s has been set instead of 15s.

opw-2276125

closes odoo/odoo#55415

X-original-commit: 796373ae674248cb96c576ccb968d7f19a732317
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-08-04 15:23:16 +00:00
Bruno Zanotti (ADHOC) 44fb324f7a [CLA] add new member to Adhoc CLA
closes odoo/odoo#55527

X-original-commit: ac8d173064f033136f33272a8724e937e73b1b85
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-06 09:34:00 +00:00
Nasreddin (bon) cc1e7dce25 [FIX] mail: User following task can't add another follower
Issue

	- Login as Mitchell Admin
	- In Projects module, Create a new project
	- Set Visibility to 'Invited employees'
	- Create new task and assign it to Mitchell Admin
	- Edit the task and add Marc Demo as follower
	- Login as Marc Demo
	- Go to the task previously created
	- Add an other follower

	IrRule Error

Solution

	Use sudo() to find all followers of a document.

opw-2303443

closes odoo/odoo#55521

X-original-commit: e0d064ffe4013ed727bdc780a3d0a7c6b16e6e9c
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Signed-off-by: bon-odoo <nboulif@users.noreply.github.com>
2020-08-06 08:54:18 +00:00
Martin Trigaux 7879179204 [I18N] base: export source terms
Some module description had changed without updating the .pot

closes odoo/odoo#55503

X-original-commit: ae3c28fe189468e91872971c397e62bad30e28f0
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-08-06 07:09:15 +00:00
jvm-odoo 5bccaaad87 [FIX] web: fix autocomplete over datepicker
Issue

	- Sales > Create a quotation
	- Click on quotation date or start
	  writing in it

	On chrome, if addresses autocomplete is enable
	and have data to show, a dropdown will overflow
	on the datepicker

Cause

	This is mainly a chrome issue and the only way
	to solve it without a fix is to disable the
	autocomplete totally which is not really a
	solution since we want the autocomplete on
	adresses

Solution

	Add the autocomplete off on datepicker field

OPW-2308278

closes odoo/odoo#55470

X-original-commit: b40fef968ab000870574ae45ba482288cdf94ad1
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-08-05 13:51:32 +00:00
Nidhi Patel d5cd02fcbb [FIX] web: Fix the skiped focus on radio
Currently, when form view is opened in edit mode and if you proceed
through the tab(keyboard) then focus is skiped on radio field.
For Ex: in project when you procceed through the tab it will skip the
visibility field radio.

The issue occurs because the radio is inherited from the selection
field and in selection field the focus is set on 'select' while
there is no method to set the focus in radio and radio does not have
'select' element it has 'input'

So in this commit, override the method getFocusableElement in radio
widget and set the focus on 'input' instead of 'select'.

closes odoo/odoo#52073

Taskid: 2252798
Closes: #52073
Related: odoo/upgrade#1430
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-05 12:56:25 +00:00
Nidhi Patel 4cc8fe2a98 [IMP] sale_timesheet: Invoicing wizard improvements
Purpose of this task is, the invoicing wizard is being able to
define a period with a start and an end date would allow a bit
more flexibility.

Currently, the invoicing wizard allows to invoice timesheets
up to a certain date.It is links all timesheets before or equals
this date in the sale order are invoiced.

In this commit, we add  another date field so that the user can
define a period with a start and an end date and rename the
'invoice timesheets up to' field into 'Timesheets Period'. Also,
use widget 'Daterange'  in both fields and update tooltips
accordingly this fields. By default we leave this two field empty.

After this commit behaviour of invoicing wizard:
 -If these fields are empty, include all timesheets without
  distinction in the invoice
 -If these fields are set, only include the timesheets that fall
  within this period in the invoice
 -If applicable, only include approved timesheets

TaskId:2252798
Closes: #52073
2020-08-05 12:56:25 +00:00
Nisha patel e249d2b434 [FIX] fleet: Fix model_count and category in the fleet
Currently, in Configuration > Service Type > Add a new service type.
The category field is mandatory but it does not appear on list view.

So in this commit, display the mandatory category field on list view

Currently, in Configuration > Manufacturers. The count of Models is
always 0 because the it's compute stored field without the depends
so not computed each time.

So in this commit, fix the count of models by adding a correct trigger

closes odoo/odoo#55475

Taskid: 2296851
Closes: #54515
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-05 14:27:54 +00:00
Joseph Caburnay 9ea0aca6ea [IMP] point_of_sale,pos_*: top bar improvements and ticket list
The following changes are made in this task:

1. Remove order tabs and replace with ticket list.
2. Top bar color change.
3. Search bar in the product screen is moved in the top bar.
4. List of sub-categories are now in the same line as the category
breadcrumbs.

closes odoo/odoo#55100

Task-id: 2276678
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-08-05 13:35:08 +00:00
Kevin Baptiste 71f719a61e [IMP] resource: move unavailable intervals on resource.calendar
The method `_get_unavailable_intervals` was only available on
`resource.resource`. It's now moved to the `resource.calendar`.

closes odoo/odoo#51311

Taskid: 2253893
Related: odoo/enterprise#10616
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-07-02 06:48:45 +00:00
Kevin Baptiste d24de2554e [IMP] hr,hr_attendance,hr_contract,hr_holidays,hr_presence: update employees presence icons
Make the employee presence icons more descriptive.
Allow to quickly filter the Presence Reports based on the user status.

closes odoo/odoo#54527

Taskid: 2246447
Related: odoo/upgrade#1488
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-05 12:22:29 +00:00
Moisés López b6489f2763 [IMP] base_automation: Return early if there are not base.automation to process
Installing base_automation module the methods: create, write, unlink and compute_field
are patched.
So, they will be used  for all models.
It is important to save resources as possible.

The patched methods in base.automation read the original data
before to change so run all base.automation records.

But What about if there are not base.automation records?
So, we can save an extra read for all models

The same to pre-filter and post-filter
It adds a return early in order to skip this extra task when it will be useless.

closes odoo/odoo#52134

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2020-05-29 07:23:28 +00:00
Thibault Delavallée cfbbc229d8 [IMP] test_mail_full: add mass_mailing test, notably for preview / browser view
Purpose of this commit is to add some mass mailing tests in test mail full
(with all community mailing capabilities installed). In this commit we notably
tests unsubscribe and view URLs computation in sent emails, as well as
the invisible preview block for email clients.

Task ID-2239327
Task ID-2239327
PR #49886

Related: odoo/enterprise#10091
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-05 13:55:04 +00:00
Thibault Delavallée c1865706b0 [FIX] test_mail_full, test_mass_mailing: fix some tool methods
Small improvements / fixes in tool methods used in python unit tests.

Task ID-2239327
Task ID-2239327
PR #49886
2020-08-05 13:55:04 +00:00
std-odoo ed4846dd9d [IMP] mass_mailing: add preview block for mailings
PURPOSE

When displaying an email in a list the mail client (gmail, outlook...) computes
a preview based on the content. This preview is generally not well computed as
it contains a lot of garbage and tags while it should contain only relevant
text.

SPECIFICATIONS

To build this preview, all mail clients read the content of the email.
The only way to be able to customize the preview is to add an invisible
HTML element at the beginning of the email with the wanted preview text.

We add at the end of the preview `&zwnj;` (zero-width non-joiner) to
fill the end of the preview in order to not have the beginning of the
mail at the end of the preview. It doesn't work with simple space as
the mail clients trim each HTML element content.

Task ID-2172125
PR #49886
2020-08-05 13:55:04 +00:00
Sébastien Mottet (oms) ac0579263b [IMP] mass_mailing: add 'view in browser' link in mailings
PURPOSE

Add a block that allows recipients to check the email in a browser in case
their mail service provider does not render it well or to see it full screen.

SPECIFICATIONS

A thumbnail has been added in the snippet thumbnails list of the mail editor.
It allows to add an header snippet. This snippet contains a link allowing the
recipient to see the mail in its browser instead of its mail client.

Add a route to display a mailing content. This route should be recipient
dependent as mailings could contain jinja markers. Using the same access token
and check as unsubscribe route this public route allows to display a mailing
content directly rendered for a given customer.

_get_unsubscribe_url method is moved from mail_mail to mailing as it does
not really belong to the mail model. Indeed it is mailing dependent.

A view URL leading to the view in browser route is added. It is managed like
the unsubscribe url: magically avoid shortening, magically rewrite when
sending email.

Task ID-2239327
PR #49886
2020-08-05 13:55:04 +00:00
william 0809601d6d [IMP] account: do not pollute test_reconciliation with unlink log
By deleting the res.currency.rate in the setUpClass, we do not pollute
the log with the unlink info, and the test is a little bit faster.

closes odoo/odoo#48651

Related: odoo/upgrade#1502
Related: odoo/enterprise#9559
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-05 11:57:10 +00:00
william 0ea9254c81 [IMP] account: fusion wizards for automatic entries
Task 2227389

The wizards for creating Accrual Entries and Transfer Entries are quite
similar. We are merging them as they share code and business logic.

Entries in the future should not be posted for both wizards, but set to
be auto posted instead.
2020-08-05 11:57:10 +00:00
william 82dc0cb7b9 [IMP] account: soft post entries in the future
Add an easy way to not post the entries in the future when calling
post() on it, but rather set it to be auto-posted at accounting date.
This is useful when we are creating a lot of entries in batch and some
might be in the future, some in the past, and we don't want to separate
that in two batch every time. (asset, accrual, transfer,... )
2020-08-05 11:57:10 +00:00
william 276ba8e90c [FIX] account: do not store account internal type on aml
It was removed here https://github.com/odoo/odoo/pull/32303 but readded
later. We still don't want it for the same reasons.
Having it on related (non stored) is enough.
2020-08-05 11:57:09 +00:00
Nicolas Lempereur 2b4981ec1f [FIX] website_profile: _prepare_user_value edit tl ok
In courses home page, we use _prepare_user_value to get values from
search strings as render values.

But for example this cause an issue in case of edit_translations, it
has no value but if present is set to `{'edit_translations': True}` in
context.

But _prepare_user_value will set it to context as:

  {'edit_translations': ''}

Which make translation not work on page that used
`_prepare_user_value(kw)` to get values for rendering.

opw-2305816
closes #55444

closes odoo/odoo#55457

X-original-commit: 11c5daae47b50c26ceebe8feb736352b7a27a85b
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-08-05 11:13:09 +00:00
Didier (did) c69f2c9a3d [FIX] mail: tab cycling between chat window
Before this commit, cycling between chat window in LTR language clycled in the
wrong direction.
This commit also handle the RTL language cycling.

task-2279706

closes odoo/odoo#55456

X-original-commit: 638720f9d72616f2e921a475a5fdfd2ad9a2ab8b
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-05 11:04:12 +00:00
Thibault Delavallée fd62fa16ad [FIX] link_tracker, mass_mailing: make convert_link work in batch
In this commit we correctly use mailing variable inside a loop
on self to enable multi-mode on convert_links method.

We also update link_tracker shortening methods docstrings. We
add some explanation, notably about parameters. A variable is
fixed to better indicate parameter content (html -> content).

closes odoo/odoo#55452

X-original-commit: 3e1633d5b3590ec5657b851c21cbae059944d964
Related: odoo/enterprise#12218
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-05 10:39:09 +00:00