Commit Graph
136383 Commits
Author SHA1 Message Date
Thibault Delavallée baa4a73be0 [IMP] event_crm: avoid running rules in import mode
Purpose of this commit is to avoid running lead creation rules when importing
registration data. Indeed import is used to bootstrap databases and/or to
update records in batch. As those are not necessarily "new" customer
information creating leads on this information adds more noise than real
utility. Moreover import can run on huge batch of records and lead creation
imply some computation that would slowdown import process.

LINKS

Task ID 2166679
PR #52334
Upgrade PR odoo/upgrade#1292
2020-06-10 16:10:28 +00:00
Thibault Delavallée fbd42b33ad [ADD] test_event_full: new module for testing all event capabilities
PURPOSE

Introduce an automated tool to create leads from event registrations. Events
are a powerful source of leads as they attract attention. This leads to leads
with good quality as they mark interest while gathering contact information
which allows to follow-up.

This merge aims at automating this process by automatically creating leads
based on user-defined rules.

SPECIFICATIONS

Add a module allowing to test a complete event install: add all event
dependencies. Currently only crm rules are tested as part of the lead
generation tasks. Future commits will add notably tours using all features
of event.

LINKS

Task ID 2166679
PR #52334
Upgrade PR odoo/upgrade#1292
2020-06-10 16:10:28 +00:00
Jérémy HennecartandThibault Delavallée da1adb439e [ADD] website_event_crm_questions: create leads from attendees
PURPOSE

Introduce an automated tool to create leads from event registrations. Events
are a powerful source of leads as they attract attention. This leads to leads
with good quality as they mark interest while gathering contact information
which allows to follow-up.

This merge aims at automating this process by automatically creating leads
based on user-defined rules.

SPECIFICATIONS

Include in generated lead description answers from attendees to questions
defined using the website_event_questions module.

LINKS

Task ID 2166679
PR #52334
Upgrade PR odoo/upgrade#1292

Co-Authored-By: Jérémy Hennecart <jeh@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
2020-06-10 16:10:28 +00:00
Jérémy HennecartandThibault Delavallée d8b5d1a0c5 [ADD] website_event_crm: create leads from attendees
PURPOSE

Introduce an automated tool to create leads from event registrations. Events
are a powerful source of leads as they attract attention. This leads to leads
with good quality as they mark interest while gathering contact information
which allows to follow-up.

This merge aims at automating this process by automatically creating leads
based on user-defined rules.

SPECIFICATIONS

Display group-based option for rules as registrations can now be created by
group.

LINKS

Task ID 2166679
PR #52334
Upgrade PR odoo/upgrade#1292

Co-Authored-By: Jérémy Hennecart <jeh@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
2020-06-10 16:10:28 +00:00
Jérémy HennecartandThibault Delavallée dbad574ef9 [ADD] event_crm_sale: create leads from attendees
PURPOSE

Introduce an automated tool to create leads from event registrations. Events
are a powerful source of leads as they attract attention. This leads to leads
with good quality as they mark interest while gathering contact information
which allows to follow-up.

This merge aims at automating this process by automatically creating leads
based on user-defined rules.

SPECIFICATIONS

Ensure information updated on sale order also updates lead information.

Also display group-based option for rules as registrations can now be
grouped by sale order.

LINKS

Task ID 2166679
PR #52334
Upgrade PR odoo/upgrade#1292

Co-Authored-By: Jérémy Hennecart <jeh@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
2020-06-10 16:10:28 +00:00
Jérémy HennecartandThibault Delavallée 76129e3b44 [ADD] event_crm: create leads from attendees
PURPOSE

Introduce an automated tool to create leads from event registrations. Events
are a powerful source of leads as they attract attention. This leads to leads
with good quality as they mark interest while gathering contact information
which allows to follow-up.

This merge aims at automating this process by automatically creating leads
based on user-defined rules.

SPECIFICATIONS

Add a new module event_crm. It allows to create leads automatically based on
event registrations. This is done based on rules defined in a new model
event_lead_rule.

Add a new menu "Lead Generation" in the configuration tab of an event. It
allows to create generation rules. Those are a set of conditions to generate
a lead with some pre-filled values as the type of lead, tags or salesperson.

SPECIFICATIONS: CREATION TYPE

There are two types of lead creation:

  * per attendee: create a lead for each registration;
  * per order: create a lead for a group of registrations;

The last one is only available through interface if it is possible to register
a group of attendees in one action (when event_sale or website_event are
installed). Behavior itself is implemented directly in event_crm.

Basically a group is either a list of registrations belonging to the same
event and created in batch (website_event flow). With event_sale this
definition will be improved to be based on sale_order.

SPECIFICATIONS: CREATION TRIGGERS

There are three options to trigger lead creation. We consider basically that
lead quality increases if attendees confirmed or went to the event. Triggers
allow therefore to run rules:

  * at attendee creation;
  * at attendee confirmation;
  * at attendee venue;

This trigger defines when the rule will run.

SPECIFICATIONS: FILTERING REGISTRATIONS

When a batch of registrations matches the rule trigger we filter them based
on conditions and rules defines on event_lead_rule model. Heuristic is the
following:

  * the rule is active;
  * if a filter is set: filter registrations based on this filter. This is
    done like a search, and filter is a domain;
  * if a company is set on the rule, it must match event's company. Note
    that multi-company rules apply on event_lead_rule;
  * if an event category is set, it must match;
  * if an event is set, it must match;
  * if both event and category are set, one of them must match (OR). If none
    of those are set, it is considered as passing;

If conditions are met, leads are created with pre-filled informations defined
on the rule (type, user_id, team_id). Contact information coming from the
registrations are computed (customer, name, email, phone, mobile, contact_name).

SPECIFICATIONS: OTHER POINTS

Note that all rules matching their conditions are applied. This means more
than one lead can be created depending on the configuration. This is
intended in order to give more freedom to the user using the automatic
lead generation.

Once a lead is created for an event registration, a stat button on the event
is available to show the number of leads generated for this event and to
be able to find them in one click.

Additionally on the lead form, a stat button will be display to show the
registrations linked to this lead. On registrations a stat button is also
displayed to find the leads created from it or from its group.

Most of code has been written to run in batch, in case multiples rules have
to run on a set of new registrations. Tests are added to ensure behavior.

LINKS

Task ID 2166679
PR #52334
Upgrade PR odoo/upgrade#1292

Co-Authored-By: Jérémy Hennecart <jeh@odoo.com>
Co-Authored-By: Thibault Delavallée <tde@odoo.com>
2020-06-10 16:10:28 +00:00
Jeremy Hennecart 65c0ea615b [FIX] event_sale: correctly create registrations in batch
Just some code improvements allowing more batch creation.

LINKS

Task ID 2166679
PR #52334
2020-06-10 16:10:28 +00:00
Jeremy Hennecart f79b4dce36 [FIX] event_sale: do not copy SO information when copying a registration
When duplicating a registration its SO and SO line should not be copied as
it may impact a done or ongoing SO with payments already done.

LINKS

Task ID 2166679
PR #52334
2020-06-10 16:10:28 +00:00
Jeremy Hennecart 3f650c0f85 [IMP] event(_sale): slightly improve event views to prepare event_crm inclusion
Prepare event_crm link module addition by cleaning some views. Notably buttons
box has to be added directly in event and not in event_sale anymore. It allows
to add content in it independently from event_sale presence.

LINKS

Task ID 2166679
PR #52334
2020-06-10 16:09:59 +00:00
Odoo's Mergebot 291f56d2a4 [MERGE] event_*: improve attendees views and registration desk management
PURPOSE

Introduce a clearer way of handling registrations for single / multiple events
occurring at the same time and place by

  * improve attendees kanban view, notably by better supporting mono and multi
    event (hide unnecessary information);
  * introducing a Registration Desk menu item to manage multi-event mode;

SPECIFICATIONS

Improve attendees kanban view, notably due to the following issues

  * event_ticket_id as char field is hard to recognize. Notably with attendees
    with same ticket directly in the kanban view;
  * missing explicit icon/button of the event registration state;

Handle mono-event (coming from an event) / multi-event (global attendees
view) modes.

Replace "event_ticket_id" text by colored badge (random color on each
"event.event_ticket_id.id"). Move this field directly into event as now
tickets are supported in event, not only with event_sale.

Add button or text linked to the registration state on top-right of card.

Introduce a computed "payment_status" selection field, allowing to display
status of a registration, based on its SO and ``is_paid```field. It is better
fro UX and display. It is not stored as currently stored fields are sufficient
for current requirement. Add it to the kanban view.

Prepare barcode improvements by improving _get_registration_summary returned
data dict, adding some information to display in event_barcode.

Mobile specific: put button as big buttons on the right of the card, ensure
all cards are displayed using same height and display correct.

LINKS

Task ID #2214290
Community PR #47511
Enterprise PR odoo/enterprise#9190

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-06-10 17:35:07 +02:00
Nasreddin Boulif 885437ee21 [IMP] event: add payment status in barcode / attendee kanban view
PURPOSE

Introduce a clearer way of handling registrations for multiple events occurring
at the same time and place by

  * improve attendess kanban view;
  * introducing a Registration Desk menu item;

SPECIFICATIONS

Introduce a computed "payment_status" selection field, allowing to display
status of a registration, based on its SO and ``is_paid```field. It is better
fro UX and display. It is not stored as currently stored fields are sufficient
for current requirement.

Add it to the kanban view.

Prepare barcode improvements by improving _get_registration_summary returned
data dict, adding some information to display in event_barcode. Reorganize
registrations actions, and prepare a generic one leading to attendees kanban
view for registration desk.

LINKS

Task ID #2214290
Community PR odoo/odoo#47511
Enterprise PR odoo/enterprise#9190
2020-06-10 14:55:48 +00:00
Nasreddin Boulif d169b5b509 [IMP] event: improve attendees kanban view
PURPOSE

Introduce a clearer way of handling registrations for single / multiple events
occurring at the same time and place by

  * improve attendees kanban view, notably by better supporting mono and multi
    event (hide unnecessary information);
  * introducing a Registration Desk menu item to manage multi-event mode;

SPECIFICATIONS

Improve attendees kanban view, notably due to the following issues

  * event_ticket_id as char field is hard to recognize. Notably with attendees
    with same ticket directly in the kanban view;
  * missing explicit icon/button of the event registration state;

Handle mono-event (coming from an event) / multi-event (global attendees
view) modes.

Replace "event_ticket_id" text by colored badge (random color on each
"event.event_ticket_id.id"). Move this field directly into event as now
tickets are supported in event, not only with event_sale.

Add button or text linked to the registration state.

Kanban card structure is therefore

    -----------------------
    Attendee Name
    Event Name (if in multi mode)
    Booked by partner_id.display_name                      ICON/BUTTON
    Ticket in a tag format
    -----------------------

Buttons and icons, if registrations is

  * canceled (nothing to do in Kanban, open the form view)  => Canceled text
  * unconfirmed and is awaiting confirmation => Attended text
  * confirmed and is awaiting attendance confirmation => Button
  * done, end of the flow => Icon

Mobile specific: put button as big buttons on the right of the card, ensure
all cards are displayed using same height and display correct.

LINKS

Task ID #2214290
PR #47511
2020-06-10 14:55:48 +00:00
Hardik Prajapati e1e9e8c780 [IMP] web: replace property field icon with tooltip
PURPOSE
The purpose of this task is to improve the interface by removing the
fa-building icon which is automatically appended by the property field
(i.e. company-dependent) and, instead, indicates that a field has
company-specific values in the tooltip of the field.

closes odoo/odoo#52313

Taskid: 2266519
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-06-10 12:25:42 +00:00
Josse Colpaert 023351b71e [FIX] l10n_multilang: method for loading translations was renamed
A method was written to copy translations from the template objects
(chart template) to the instantiated chart of accounts when installing
a multilang coa.  (e.g. to have the translations on the accounts, taxes, ...)

The problem was that to call this functionality, this module inherited
 a method, that was renamed in the meantime.  The consequence being that
this method was never called.

We renamed the method correctly here.

closes odoo/odoo#52769

X-original-commit: bb31ce3bc6c0c7e1e101d93924eccea995206733
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-06-10 12:02:12 +00:00
Mathieu Duckerts-Antoine a758f8f307 [FIX] web: don't forget initial registry entries
The entries comming from the optional parameter 'mapping' passed at the
instantiation of a registry were never considered when returning the
registry keys or entries. This is no longer the case.

closes odoo/odoo#52768

X-original-commit: e094ddd0ffaf3357e64ca5941ffc2e0454c24ab7
Signed-off-by: Géry Debongnie (ged) <ged@openerp.com>
2020-06-10 11:57:54 +00:00
Laurent Smet 4f825e437a [FIX] account: Fix broken 'test_invoice_taxes' in l10n builds
closes odoo/odoo#52745

X-original-commit: dfcef56d3b48c04cd52c932f520d23db4ab62f05
Related: odoo/enterprise#11041
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-06-10 07:11:22 +00:00
Laurent Smet 49352afae0 [FIX] account: Fix broken 'test_01_portal_attachment' in l10n builds
X-original-commit: 695bd89ccc925e058b8cfd2b699e209ef6114c58
2020-06-10 07:11:22 +00:00
Laurent Smet c82f66e1f2 [FIX] account: Fix broken 'test_account_move_partner_count' in l10n builds
X-original-commit: ae832baba5278682b50332fda449c9cb0333724f
2020-06-10 07:11:21 +00:00
Laurent Smet 77fb1da2a1 [FIX] account: Fix broken 'test_account_onboarding' in l10n builds
X-original-commit: be0e9dc2df8ab6580c81cf9726eb48be07440c6f
2020-06-10 07:11:19 +00:00
oco-odoo dbe537a3f8 [IMP] account: tax report: add the possibility to use a different country than the company's for the tax report
Some companies have their office in a country, and sell and pay taxes in another one. Before this commit, they couldn't use Odoo's tax report, as the country set on the res.company than the one to be used with their taxes. It is now possible to do that, using a config parameter.

closes odoo/odoo#52734

X-original-commit: 1728dfadeac252f5cd26d7770d044ae5f06a3352
Related: odoo/enterprise#11039
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-06-09 16:42:01 +00:00
Samuel Degueldre c058f19bfa [IMP] website_sale: let users create and edit custom product ribbons
Previously, there was only one static "Sale" ribbon. Users might want to
have many types of ribbons, for different levels of sales, or to
indicate that a product is sold out. This commit lets the user create
custom ribbons and use them on prodcuts on the shop page. Additionally,
setting a ribbon on a product used to require a reload, this is no
longer the case. All ribbon modifications are stored in a cache and the
RPCs to put them into effect are only done on save.

task-1981170
Part of odoo/odoo#47574

Related: odoo/upgrade#1079
Related: odoo/design-themes#219
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-06-10 11:44:33 +00:00
Samuel Degueldre 016ed1a00f [IMP] website_sale: make "Image full" a global option
Previously, the "Image full" option was on a per product basis. This is
very strange, because in most cases you either want all of your product
images to take up the entire card space, or none of them. This commit
makes the option into a global option for the shop page, so it can be
toggled for all products at once.

task-1981170
Part of odoo/odoo#47574
2020-06-10 11:44:33 +00:00
Goffin Simon 592a0f6533 [FIX] hr_expense: doesn't post if journal.post_at == 'bank_rec'
The field post_at doen't exist any more.

opw:2262459

closes odoo/odoo#52763

Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-06-10 11:18:28 +00:00
Josse Colpaert 4bbc666cae [IMP] account: put payment reference in invoice mail
Before, only when you had installed the Belgian
structured communication module, when you sent an
invoice by mail then only the structured communication
would be added in the mail.

But it should be visible all the time when
you have a payment reference.

closes odoo/odoo#52618

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-06-08 14:05:36 +00:00
yhu-odoo 85f3c08039 [IMP] purchase: set scheduled date to the last minute of that day
When set scheduled date on PO line, set it to be the last minute of
that day to correctly decide the late of the receipt.

Task 2265912
PR #52693

Related: odoo/enterprise#11034
Related: odoo/upgrade#1323
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-06-09 14:22:51 +00:00
yhu-odoo f48aad5944 [IMP] purchase: add reminder mail tests
Test the reminder mail can be correctly send.

Task 2265912
PR #52693
2020-06-09 13:59:27 +00:00
Fabien Pinckaers ccfc54113d [IMP] purchase: Improve reminder mail usability
Some change to imporve reminder mail usability:

1. Scheduled date on POL of the PO form now is always editable.
2. Improve tooltip for the reminder email
3. don't show number of days when reminder email not checked on
   both PO and partner form.
4. only show "confirm receipt date" button in debug model
5. In the mail, format date by partner.lang
6. Add button to send preview reminder mail
7. On default, receipt_reminder_email on res.partner is False
8. merge expected_date with date_planned (done by FP)

Task 2265912
PR #52693
2020-06-09 13:59:10 +00:00
yhu-odoo d3d0fd7c59 [IMP] purchase_stock: improve usability of on-time delivery rate
Change how we show on-time delivery rate on the purchase form to
imporve usability.

Task 2265912
PR #52693
2020-06-09 13:56:11 +00:00
Nicolas Martinelli aa8588e305 [FIX] point_of_sale: close session with accountg rights
- Create a user with only Point Of Sale User rights
- As this user, open a POS session, create a POS order
- Validate and Close the session

An `AccessError` is raised because the user has no Accounting access
rights.

A POS user should be allowed to close a POS session, as it was the case
in 12.0.

opw-2251699

closes odoo/odoo#52710

X-original-commit: bc3aec38a092c7117dd8de8f6c975cdfad04b05d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-06-10 09:18:43 +00:00
Nicolas Martinelli e3b22264d8 [FIX] point_of_sale: mix of sale and refund
- Set rounding policy to 'Round Globally'
- Create a Tax T
  Amount: 21.0%
  Different tax tags for invoice and credit notes
  Set any account Repartition Line
  Advanced Options => Included in Price
- Create a Product P1
  Sales Price: 11.8
  Customer Taxes: T
- Create a Product P2
  Sales Price: 15.3
  Customer Taxes: T
- Create a new POS Session
- Create a POS order:
  P1, Quantity: -6, Discount: 5%
  P2, Quantity: 6, Discount: 5%
- Validate and close the session

A difference of 0.01 prevents from closing the session.

The error arises because the tax tags are different for an invoice and a
refund. In the following:
https://github.com/odoo/odoo/blob/1a9e147639012cc847099e69fc964f3669a36cbb/addons/point_of_sale/models/pos_session.py#L394

Both lines have different `tag_ids`, therefore their amount is not
summed when closing the session. On the other hand, the POS UI is not
aware of the `tag_ids`, so it sums then round the amounts.

The situation is quite unusual: from SO or Invoices, it is possible to
create either an invoice or a refund, but not a mixed object as the POS
is doing. Moreover, if a user invoices the POS order, there is no
problem to close the session since a regular invoice is created and tax
amounts are summed.

We consider a refund if all lines have negative quantities. We only do
it in 'Round Globally' configuration to avoid impacting non-problematic
use cases.

opw-2254211

closes odoo/odoo#52704

X-original-commit: 5f25be8eef9a9efc18a995f2c6405d08a657ac96
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-06-09 12:46:18 +00:00
Katherine Zaoral d1c38bbf0f [FIX] l10n_ar: Show proper message when trying to use a use_document journal when is not expected
We found an error by trying to post journals entries from an expense with a use_document journals.
Add new constraint that only let the user to create invoices in use documents journals, it can not create account.move of type entry

closes odoo/odoo#52690

X-original-commit: 82bbf3784e3bdf684eef25c53bf3235ebc2b7237
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-06-09 11:12:54 +00:00
Yannick Tivisse 0215a52252 [IMP] survey: Extract code to allow inheritance
closes odoo/odoo#52636

Taskid: 2186462
Related: odoo/enterprise#10951
Related: odoo/upgrade#1314
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-06-10 09:03:06 +00:00
Hiral Bhavsar d46610ccb2 [IMP] mail: few improvements on activity widget
PURPOSE

Display the activity type through the icon of the widget and change the place to
display to whom the activity is assigned (if it is not assigned to the current
user).

SPECIFICATION

Display the deadline with a prefix as responsible if the activity assigned to
another user than the current one (uid).
Add a new 'activity_type_icon' field to the mail mixin to get the 'icon' of the
type (fa-phone, fa-users, etc...) and for the list_activity widget, display it
as an icon instead of the default 'fa-clock-o' icon.

LINKS

PR https://github.com/odoo/odoo/pull/52252
Task-2267579

closes odoo/odoo#52252

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-06-10 05:23:34 +00:00
qsm-odoo bae8636124 [FIX] website: restore bg color compatibility for s_media_list
[1] removed the associated bg color of media list items as it was now
defined directly on the XML of the snippet. This was however enough to
break the style of old-db snippets. As the s_media_list snippet was just
refactored to need a 001 version, in the same Odoo version where the
mentioned bug was introduced, this commit can just restore the
background color associated for 000 versions.

[1]: https://github.com/odoo/odoo/commit/5953c4df6b9c08519f64a65c1cf5d5558d59f7d4#diff-62db7349afa5503cc8308e815d41db5dL10

closes odoo/odoo#49697

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-06-10 08:53:09 +00:00
Cocographique 6aeda4ed72 [FIX] website: correct linguistic errors in "Table of Content" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 7523d0477f [IMP] website: clean "countdown" snippet end message
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 2a21271d41 [IMP] website: shorten default text in "showcase" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 6d3fba5913 [FIX] website: remove unnecessary line breaks in snippets
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 642f497e52 [FIX] website: remove uneditable margin in "Carousel" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 408678cd54 [IMP] website: improve images of "Media List" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographiqueandqsm-odoo ba719b9589 [IMP] website: improve edition and options of "Media List" snippet
Part of #49697
task-2210730

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-06-10 08:35:39 +00:00
Cocographiqueandqsm-odoo c9477d820b [IMP] website: improve "Products catalog" snippet
Part of #49697
task-2210730

Co-authored-by: qsm-odoo <qsm@odoo.com>
2020-06-10 08:35:39 +00:00
Cocographique d6cdf19610 [IMP] website: improve spacing and alignment in "call to action" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique e042aff778 [FIX] website: remove unnecessary colors in "features grid" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 75892e2b48 [FIX] website: correct linguistic errors in "company team" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 4d7cf4db68 [FIX] website: correct linguistic errors in "features grid" snippet
Part of #49697
task-2210730
2020-06-10 08:35:39 +00:00
Cocographique 3b19d413ed [FIX] website: correct linguistic errors in "text block" snippet
Part of #49697
task-2210730
2020-06-10 08:35:38 +00:00
Nicolas Martinelli 6aebf5d359 [FIX] product: import pricelist
When importing a file to populate a pricelist applying to a product
category, it is necessary to add a leading space to ` Product Category`
name to match with `2_product_category`.

We can simply remove it.

opw-2271033

closes odoo/odoo#52722

X-original-commit: 11809ee1a12df6b967f03591adb6d11579e3e947
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-06-09 14:38:21 +00:00
Dhruv Patel 3288304f59 [IMP] web,*: make notification title optional
*odoo_referral,portal

Currently, it is not possible to have one line notification,
when you are not passing the title parameter as an option when
generating the notification,then it will display the blank div
with the default button icon only. so it is not possible to have
one-line notifications since the title is mandatory.

So the purpose of the task is to make the title optional, allowing
for more minimalistic notification.

Also removed some unnecessary titles from the notification and
some stying change.

This commit also increase the autoclose delay of non sticky
notifications, from 2.5s to 4s.

task : 2264749

closes odoo/odoo#52229

Related: odoo/enterprise#10981
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Co-authored-by: Dhruv Patel <dhp@odoo.com>
2020-06-10 08:36:05 +00:00
svs-odoo 6c44424cd9 [FIX] stock: wrong company_id domain
Commit 6c4447ef59 set a new domain on stock rule `company_id` but
it was wrongly written. This commit make it syntactically correct.

closes odoo/odoo#52743

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-06-09 15:47:22 +00:00