Commit Graph
137659 Commits
Author SHA1 Message Date
Anousone Phaysomphot 73b5dfd64a [IMP] website: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Engage with visitors to convert them into leads”
“Use royalty-free photos”
“Search Engine Optimization (SEO)”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: b78921d41ca1af3e56a4d874381c30d766c986fc
2020-08-12 12:23:02 +00:00
Anousone Phaysomphot 4c7ede7c50 [IMP] stock: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Speed up inventory operations with barcodes”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: d679b6f2807b937c1765f20b8a4fb796aec821a7
2020-08-12 12:23:02 +00:00
Anousone Phaysomphot da920542ab [IMP] sale_(expense, management): improve digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Odoo supports configurable products”
“Sell or buy products in bulk with matrixes”

Remove sale_expense tips.

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 15398990a1b162fef3e2280d9c4a82de9f61491f
2020-08-12 12:23:01 +00:00
Anousone Phaysomphot d1d11b33a6 [IMP] purchase: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“How to keep late receipts under control?”
“Never miss a purchase order”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 9cab3aea9a06e442f37329d350e9ecec41ca4911
2020-08-12 12:23:01 +00:00
Anousone Phaysomphot 950f999dd6 [IMP] project: improve digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATION

“Customize tasks and stages according to the project”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: bd2cd2ca4e4fd1fa99d6a97b8af291363e4b1d84
2020-08-12 12:23:00 +00:00
Anousone Phaysomphot a2d3cc7d07 [IMP] mrp: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Use tablets in shop to control manufacturing”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 40100145e5bc8b2588b04b849a2c2cc306e126d3
2020-08-12 12:23:00 +00:00
Anousone Phaysomphot 91a3760dc7 [IMP] hr_recruitment: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIO

“Let candidates apply by email”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 5c6c52a8773b1994c9616900d9736cea500776fd
2020-08-12 12:23:00 +00:00
Anousone Phaysomphot 356d915096 [IMP] hr_expense: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Snap pictures of your receipts with the remote app”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 48bc75d340fa3a6d3c98bdd4b9f978036109f403
2020-08-12 12:22:59 +00:00
Anousone Phaysomphot bc1d6159e7 [IMP] im_livechat: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Use canned responses to chat faster”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: fd8ee90adc5c759d591345a1676f01fc63c51f38
2020-08-12 12:22:59 +00:00
Anousone Phaysomphot ac00b8030f [IMP] crm: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“Did you know Odoo has built-in lead mining?”
“Opportunity win rate is predicted with AI”
“Manage your pipeline”
“Do not waste time recording user's data”
“Turn a selection of opportunities into a map”

See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 93c7aa19397ae7a25e88e760f44d24a0b4f0dd9a
2020-08-12 12:22:59 +00:00
Anousone Phaysomphot 1b67e2ed17 [IMP] account: add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS

“No need to print, put in an envelop and post your invoices”
See code for specifications.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 58bcc8c3c509df9e3774369ac1a626d528eba598
2020-08-12 12:22:58 +00:00
Thibault Delavallée 797fde628b [IMP] digest: allow to customize sending
Used in external tools.

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 6e2a50c06beae8433753f49f0acf07fdede3b7fc
2020-08-12 12:22:58 +00:00
Anousone Phaysomphot fd8709515c [IMP] digest: improve digest layout and add new digest tips
PURPOSE

Review the tips and digest layout design to make sure they have a WOW effect
and increase trial conversion/retention.

SPECIFICATIONS: LAYOUT

Besides changing the tips, a cleaning of digest layout was performed. Emails
were reported to look not neat in Outlook and somewhat random in mail.com or
gmail.com.

Most recent HTML CSS cannot be used to make HTML emails because each email
provider renders emails its own way. This means a given email may renders
differently in gmail.com and outlook.

The layout of the email was composed of several levels of embedded tables
which means huge maintenance effort. So it was totally rewritten with divs
and CSS, but some properties are not taken into account.

A lot of page component improvements were done. It consisted in replacing most
of the style attribute in tags with CSS classes and ids. This step is
especially useful for tip formatting because before, if a style modification
was needed, it had to be performed on each tip individually.

SPECIFICATIONS: TIPS

“Speed up your workflow with shortcuts”
“Click on an avatar to chat with a user”
“A calculator in Odoo”
“How to ping users in internal notes?”
“Knowledge is power”

LINKS

Task ID-2274264
COM PR: odoo/odoo#53580
ENT PR: odoo/enterprise#1139

X-original-commit: 04aa36da30c107e482935b1673374c9302e4cf6a
2020-08-12 12:22:57 +00:00
Julien Mougenot d9bbf1db4b [FIX] web: Prevent field badge from overflowing
Before this commit, the field badge could overflow from its boundaries
and have part of its pill/text hidden.

Now, the "overflow" mixin has been applied and the badge is properly
contained.

closes odoo/odoo#55806

X-original-commit: f4b672bfcf21c7c7f0b6071a8dd18bd6e966266b
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Julien Mougenot (jum) <jum@odoo.com>
2020-08-12 11:40:29 +00:00
Jeremy Kersten 5a006327b4 [FIX] website_sale: fix tb on dashboard when no sale access
Before this commit, if you don't have the sale access right, when you arrive on
main website menu, the dashboard try to load some utms data and will fail with
a traceback.

Now we don't render utm graph it you don't have the sale access right

This commit closes odoo/odoo#54695

closes odoo/odoo#55801

X-original-commit: 8123bbc622dc21100828b1ab0bbe3cb4367b24b1
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-08-12 10:47:20 +00:00
Nicolas (vin) 41f119d532 [IMP] account: Misc. improvements
Miscellaneous changes aiming to improve the user experience in the accounting module,
mainly in the journal model and its form view.

Also aim to improve the bank account creation wizard.

Task ID: #2250349

closes odoo/odoo#54494

Related: odoo/upgrade#1546
Related: odoo/enterprise#11862
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-08-11 12:41:13 +00:00
Xavier Dubuc 7386a2b1ac [FIX] mail: fix activity mark done popover buttons alignment
task-2280166

closes odoo/odoo#55802

X-original-commit: e6eda62f8355de0adcc5f323347526d4124b68e2
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-12 11:02:49 +00:00
8718002968 [IMP] *: sample data in reporting views
The present commit allows to display sample data in the reporting views and effectively
enable them in several graph views. Moreover, many action helpers have been added
across all applications. With this, we hope to facilitate the onboarding of the new users.

Task IDs: 2282196, 2311486

closes odoo/odoo#54453

Related: odoo/enterprise#11835
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Mahendrasinh Barad <mba@odoo.com>
Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-12 14:05:09 +02:00
Yas-Elak 694be51f58 [FIX] l10n_in: Andhra Pradesh state code in india changed
opw-2312139
The Andhra Pradesh state code change from 28 to 37
Source :https://ddvat.gov.in/docs/List%20of%20State%20Code.pdf

closes odoo/odoo#55793

X-original-commit: dceec1a565d15514d58b9792f3e9632680509042
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2020-08-12 10:02:35 +00:00
Barad Mahendra a9215e25f2 [IMP] *: add action helper messages
The purpose of this commit is to add many action helper messages.

TaskID: 2311486
2020-08-12 09:57:09 +00:00
Barad Mahendra 63f239163a [IMP] *: set sample="1" on various graph archs
The purpose of this commit is to enable sample data in various
graph views.

TaskID: 2311486
2020-08-12 09:57:09 +00:00
Mathieu Duckerts-Antoine e3a2bb6e09 [IMP] doc: update doc on view attribute 'sample'
The attribute 'sample' is now also available for the reporting views
(the cohort, dashboard, graph, and pivot views). Here, we simply extend
the existing doc on the attribute.

Task ID: 2282196
2020-08-12 09:55:38 +00:00
Jeremy Kersten 84362314cb [FIX] website: handle 404 publisher only for notFound exception
Before this commit we cehck first if user was publisher before to check if the
exception was a 404 NotFound.

What's means that we make this check (1 query sql) most of the time for no
reason, and worst case, when the exception crashes the cursor, this check will
reraise a new exception because isPublisher check is done with a closed cursor.

closes odoo/odoo#55789

X-original-commit: 8afa25a9ca3b165033ab664ce3185c453fb2dd85
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-08-12 09:43:15 +00:00
Aaron Bohy d0bf6192d2 [IMP] web: sample data: generate better activities
The SampleServer picks a random value for selection fields. As a
consequence, field 'activity_exception_decoration' is always set,
either to 'warning' or 'danger'. When this field is set, widget
'ListActivity' (set on 'activity_ids') displays 'Warning', whatever
the value of 'activity_ids'. This means that with sample data, the
next activity field always displays "Warning", which is not great.

This special case has been handled in web, as it is the first (and
only) one. In the future, if we have to implement several special
cases like that, we'll setup a proper hook to allow external
modules to define them from the outside.

Task 2316726

closes odoo/odoo#55703

Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
2020-08-12 10:07:32 +00:00
Didier d761a73ad0 [IMP] website_slides: improve archive management
PURPOSE

Archiving a course should also archive its content, and unpublish it as it
should not be accessible from outside. Improve archive / publish management
between a course and its slides.

SPECIFICATIONS

Show the content of an archived course having archived slides. When slides and
course are archived its content should still be displayed. This is done using
an active test in context of field.

Propagate channel archive to content. Also unpublish archived slides.

LINKS

Continuity/IMP of task-2170708
Task-2225598

closes odoo/odoo#52233

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-08-12 10:26:55 +00:00
Arnold Moyaux cccba611d6 [FIX] test_main_flows: enable MTO route for main flow tests
Enable MTO route at the start of main flow tour since it's used
by it. Also fix a small bug when the form view is open from a
create edit where the route are hidden.

closes odoo/odoo#55790

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-12 09:45:52 +00:00
Mathieu Duckerts-AntoineandAaron Bohy ae0d79f5c2 [IMP] web: sample data in dashboard view
A previous commit has paved the way for displaying sample data in the
reporting views. The present commit brings the required changes in
community to have sample data in dashboard views.

Task ID: 2282196

Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-12 08:52:20 +00:00
Aaron BohyandMathieu Duckerts-Antoine e219aac56a [IMP] web: sample data in pivot view
A previous commit has paved the way for displaying sample data in the
reporting views. The present commit brings the required changes to have
sample data in pivot views.

Task ID: 2282196

Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-12 08:52:20 +00:00
Mathieu Duckerts-AntoineandAaron Bohy ae58021255 [IMP] web: sample data in graph view
A previous commit has paved the way for displaying sample data in the
reporting views. The present commit brings the required changes to have
sample data in graph views.

Task ID: 2282196

Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-12 08:52:20 +00:00
Mathieu Duckerts-AntoineandAaron Bohy fd6182443f [IMP] web: sample data in reporting views (preparatory work)
The present commit brings the global changes necessary to have sample
data in the reporting views. This includes several modifications/
fixes of the sample server (many of them for better visual results).

Task ID: 2282196

Co-authored-by: Aaron Bohy <aab@odoo.com>
Co-authored-by: Mathieu Duckerts-Antoine <dam@odoo.com>
2020-08-12 08:52:20 +00:00
Aaron Bohy 06b8af3212 [REF] web,purchase: SampleServer: mock registry
This commit changes the API of the SampleServer's mock
registry s.t. one can register a mocked version of a method,
whatever the model. The former API required a specific
model to be specified, and only applied on this model.

However, in order to enable the sample data feature on the
cohort view, the 'get_cohort_data' method needs to be
mocked, whatever the concerned model.

One can now register mocked methods for a specific
model only (with key 'model/method') or for every
models (with key 'method').

Task ID: 2282196
2020-08-12 08:52:20 +00:00
Aaron Bohy f3ee2e0cec [IMP] web: no content helper style for sample mode
Task ID: 2282196
2020-08-12 08:52:20 +00:00
Baptiste Vergote 90e0abb413 [FIX] membership: fix state computing for non paid invoice
Having a non paid membership for last year and being associate with
someone having a non paid membership was dispalying an 'old' membership
state instead if a 'non' membership.

Assumption:
If an associate member is added, take the state of the associate member
(tooltip of associate member).
In case the associate member is a 'non member', it's stupid to associate
with someone that is paying or have paid as it won't consider the state of
the current paid member, the link has to be made on the other side:
the 'non' paying will be associate with the 'paid'.

Create membership for
        a/ 2019 (1jan to 31dec)
           > For the calculation of the 'old' state
        b/ 2020 (1jan to 31dec)
           > For the calculation of the 'paid' state

Create few res.partner:
AA: No associate.
        2019 - Paid
        2020 - Paid
        >> Paid member
        (= ok)

CC Case 1:
Associate with AA
        2019 - Invoiced (but not paid)
        2020 - None
        >> Paid member due to association with AA
        (= ok)

CC Case 2:
Not associate:
		2019 - Invoiced (but not paid)
        2020 - None
        >> Before fix: Old member
        (= nok)
        >> After fix: Non member
        (= ok) As he never paid and not linked to someone that paid.

DD: Associate with AA
        2019 - Invoiced not paid
        2020 - Paid
        >> Paid member (with or without association with AA)
        (= ok)

EE Case 1:
Not associate:
        2019 - Paid
        2020 - None
        >> Old member
        (= ok)

Case 2:
Associate with DD
        2019 - Invoiced (not paid)
        2020 - None
        >> Paid member (due to association with DD)
        (= ok)

Case 3:
Associate with CC
        2019 - Invoiced (not paid)
        2020 - None
        >> Before fix: Old member (due to none having a current 2020 invoiced)
        (= nok it should take the state of CC)
        >> After fix: Non member (as CC is not a member)

opw-2287050

closes odoo/odoo#55773

X-original-commit: 5e7b7b0a645bcff175bf8d2483eae5ffd4aaf89b
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
2020-08-12 07:25:28 +00:00
Swapnesh Shah b37e4c97f9 [FIX] hr_attendance: correct datetime format in name_get
closes odoo/odoo#55764

X-original-commit: 88a489ba3e9e9c75bb86638294abe375faefd8b4
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-11 14:58:08 +00:00
Swapnesh Shah 8f8ec48f85 [FIX] hr_attendance: correct datetime format on warning
Before this Commit, Datetime on warning was not formatted based on User's lang.

With this commit, we use `format_datetime` to correctly format Datetime.

X-original-commit: b1bc2ba4a986bf7bce242496f822f9891937c9cf
2020-08-11 14:58:06 +00:00
Kevin Baptiste 1b62bd9508 [IMP] project: add recurring tasks
Some interventions are done on a regular basis (e.g. maintenance of
fire alarms, safety inspections). Having tasks auto-generate would
facilitate the process and would ensure that the next intervention
isn't missed/forgotten.

closes odoo/odoo#55517

Taskid: 2172156
Related: odoo/enterprise#12246
Related: odoo/upgrade#1604
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-08-12 08:39:32 +00:00
wan 0dd4876762 [FIX] l10n_in: remove call to deprecated method post
Commit
https://github.com/odoo/odoo/commit/82dc0cb7b91ae59beae7e1c865b670afc5958b31
deprecated that method.

closes odoo/odoo#55747

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-08-11 12:01:52 +00:00
Julien Mougenot c00e76b67c [FIX] web: Filter with domain disables category counters
Before this commit, the search panel was subject to some inconsistencies
when dealing with a category having enabled counters and with a filter
defining a "domain" attribute. Indeed, the counters could be in an
incorrect state if the right filters/categories were not loaded first,
with no simple way in doing so.

The search panel being complex enough as it is, we decided to disable
all categories' counters in the presence of a filter having a "domain"
attribute regardless of said domain.

closes odoo/odoo#55734

X-original-commit: e78f777bd8ccb314b85451cbc8d1dd9109997d7a
Related: odoo/enterprise#12341
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-11 10:12:15 +00:00
qsm-odoo 2f0bf44c7a [IMP] website: review parallax option UI
Instead of two select:

Parallax: none/fixed/very slow/slow/...
Direction: Bottom to top/top to bottom

We now have:

Parallax: none/fixed/bottom to top/top to bottom
Intensity: slider

Part of https://github.com/odoo/odoo/pull/47313
task-46147

closes odoo/odoo#47313

Related: odoo/design-themes#335
Related: odoo/upgrade#1553
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-08-10 14:27:00 +00:00
qsm-odoo f563b0c782 [IMP] web_editor: allow min, max and step param on range widget
Part of https://github.com/odoo/odoo/pull/47313
task-46147
2020-08-10 14:27:00 +00:00
Benjamin Vray 5523e5aa14 [IMP] website: add a direction option for the parallax
Add a setting direction for the parallax. "Top to Bottom" or "Bottom to
top". The new one was actually a specific theme option that we lost
somewhere between Odoo 8.0 and Odoo 13.0. This is now standard.

Part of https://github.com/odoo/odoo/pull/47313
task-46147
2020-08-10 14:27:00 +00:00
qsm-odoo 42e1d4ca60 [IMP] website, *: enable the parallax option for all snippets
*: web_editor, website_blog

Unfortunately, this feature revealed a new batch of flaws in the
editor widgets system so some hacks were made to make it work. We will
always have the time to improve the pure technical side later.

This commit also separates the notion of color filter from the notion
of parallax. A color filter can now be applied independantly, when
there is either a background image or a background video. Applying a
color filter on top of a background video is actually a new feature.
Applying a color filter on top of a background image is actually now
achievable by two different ways: this new color filter layer or by
applying the color transformation on the image itself via the related
option. Depending on the user case, both could make sense at the same
time, but more importantly: having a CSS color filter is useful for
using those for default Odoo content (e.g. like the current contact us
page where we use a cover banner with an image with a black filter on
top of it: doing that without CSS color filter would mean to alter the
image directly which would not be ok when the user changes the image).
Also, sometimes you want the unfiltered image on a page and the exact
same one but filtered on another (for example: forum images).

Note: this commit also "fixes" an issue: the optimization feature for
images when parallax was enabled was not available before.

Part of https://github.com/odoo/odoo/pull/47313
task-46147
2020-08-10 14:27:00 +00:00
yhu-odoo c531cb0591 [FIX] stock, mrp, purchase: improvement and fix bugs
In stock:
1. remove string of action_show_details button, only show icon
2. late filer have been megered with planning issues filer,
update the name. (also in mrp)
3. add width to json_lead_days_popover field to show it properly
4. change inventory adjustment empty screen image.

In purchase:
1. in reminder mail, show "undefined" when no date. This will
only be shown in preview. When no date, we won't send reminder mail to
the vendor.
2. remove old book icon for document in setting.
3. check if there is date_planned when craete a confirm date url
4. RFQs late filter now show all late RFQs with in state "draft",
"sent", and "to approve".
5. improve the the words in KIP and empty screen and list view

Task 2298950
PR #55155

closes odoo/odoo#55740

Related: odoo/enterprise#12344
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2020-08-11 12:22:22 +00:00
yhu-odoo 48c2c1eb9f [FIX] web_tour: clear _transitionEndTimer before destory the tip widget
Before this commit, when we doing the tour. If we move the mouse fast
enough. We may trigger the tip_consumed event before its
_transitionEndTimer call its callback to update the position, and a
bubble will be left there.

In this commit, we clear the _transitionEndTimer timeout before we
destory the widget to prevent the issue.

Task 2298950
PR #55155
2020-08-11 12:19:24 +00:00
yhu-odoo 2cd1aec3d0 [FIX] purchase_stock: set propagate_date according to buy rule
Before this commit, when we manually create a PO line, the
propagate_date will always be false. So the change on scheduled date
will never pass to corresponding move.

After this commit, when create a PO line, if no propagate_date for it,
we find if the product has a route with a buy rule. If yes, use the
setting on its first buy rule, if no, set the default to be true.

Task 2298950
PR #55155
2020-08-11 12:19:08 +00:00
Michael Mattiello (mcm) a5cca2cda3 [IMP] web: add smart date input on date field
This commit adds smart date inputs for date and datetime fields.

The goal of smart date input is to provide the user some shortcuts
when setting dates.

The rule is [+-]\d+[dwmy]?
So we can enter inputs like:
  +3  to have today + 3 days
  -2w to have today - 2 weeks
  +1y to have today + 1 year
  +5m to have today + 5 months
  -4d to have today - 4 days

closes odoo/odoo#55602

Task: 2270347
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-08-11 14:15:43 +00:00
Swapnesh Shah 6184070923 [IMP] point_of_sale: correct warning message
Followup on 7416340e0ff96bdabb0578f9c1eccd79baf83e17

Before this commit, The warning on deleting Bank statement was referring to only Open Point of Sale session, while we are checking for any linked Session on Bank statement.

Now we show a warning of Linked Point of Sale session.

closes odoo/odoo#53360

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-06-20 20:49:18 +00:00
Romeo Fragomeli 8e2ff15b61 [FIX] website_event_track_online: avoid 404 for PWA manifest
Before this commit, the browser didn't send cookies for manifest
and the server didn't have the session ID to get the db name for the
following request: "/event/manifest.webmanifest"

After this commit, we force the browser to send cookies for the manifest.

> The request for the manifest is made without credentials
> (even if it's on the same domain), thus if the manifest requires
> credentials, you must include crossorigin="use-credentials" in the
> manifest tag.

Ref: https://web.dev/add-manifest/

Steps to reproduce:
* Open Chrome Mobile
* Go to the Event (Front End)
* Inspect with DevTool (the manifest's request don't have cookies) -> BUG

closes odoo/odoo#55762

X-original-commit: 00039aa46f9bcd3998de1e31646b8d15927fda06
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-08-11 14:36:27 +00:00
Susana da31f3dd40 [IMP] l10n_cl: change l10n_cl icon
closes odoo/odoo#55767

Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-08-11 15:40:13 +00:00
Xavier Dubuc 8e9e917bde [FIX] mail: fix activity box title alignment
task-2280179

closes odoo/odoo#55763

X-original-commit: a0a585da947dc3d26d5311317099c2469df9e13b
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-08-11 14:40:25 +00:00