Commit Graph
136175 Commits
Author SHA1 Message Date
qsm-odoo d345bc4df7 [IMP] website: reorganise secondary_variables.scss file
Future changes will require a different order of the code in that file.
This commit only reorganises the file to make future code review easier.

Part of https://github.com/odoo/odoo/pull/52211
Related to task-2197038

closes odoo/odoo#52211

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-05-31 13:37:25 +00:00
qsm-odoo 930b1d00d4 [FIX] web_editor: render custom option XML before we-row processing
Using we-row inside custom XML was not working.

Part of https://github.com/odoo/odoo/pull/52211
Related to task-2197038
2020-05-31 13:37:18 +00:00
qsm-odoo 5c16c86cd5 [IMP] web_editor: allow left-panel select to have custom active labels
Instead of the text of the selected option displayed as label, we may
want another text (especially if the choice has long text). This can
be defined on buttons with 'data-select-label'.

Part of https://github.com/odoo/odoo/pull/52211
Related to task-2197038
2020-05-31 13:37:03 +00:00
qsm-odoo a5d59de84b [IMP] web_editor: allow left-panel select to have an unique icon label
Part of https://github.com/odoo/odoo/pull/52211
Related to task-2197038
2020-05-31 13:36:53 +00:00
qsm-odoo 3d20d36bad [FIX] web_editor: make a test more robust
Don't know how this test worked before but it will stop working with
next updates. This just make it more robust using the same trick as
other tests: wait for the colorpicker to be opened before actually
using it.

Part of https://github.com/odoo/odoo/pull/52211
Related to task-2197038
2020-05-31 13:36:45 +00:00
qsm-odoo 43557ecbc7 [IMP] web_editor, website: add loading effect in left panel editor
The goal is to reduce loadings as much as possible but there will
always be some. So that loadings do not appear as bugs and give users
some feedback that they are ongoing, this commit adds a loading effect
during the loading of some actions.

Part of https://github.com/odoo/odoo/pull/52211
Related to task-2197038
2020-05-31 13:36:25 +00:00
william fef6e133a0 [FIX] account: do not install l10n_generic_coa if another is installed
The module l10n_generic_coa was installed in every single case when
loading a new db from the console because the country is US by default.
If we have a `-i l10n_*`, we dont need to install another CoA based on
the country.
The fact that it is installed was messing with the demo data because we
were searching for a type of account not necessary present in the CoA
installed on the company.

closes odoo/odoo#52190

X-original-commit: d3ad353c86f7b148946f9e36457f6b002cc118c1
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
2020-05-29 15:24:37 +00:00
jev-odoo af949fc27d [FIX] stock: correctly apply scheduled_date
Inverse fields are stored in a `set` and `set` is not ordered. It depends on the memory address of its elements which change each time the registry is rebuilt.

Inverse `_set_move_ids_without_package` set the .move_lines on the record
Inverse `_set_scheduled_date` set the scheduled_date on the move_lines

If `_set_scheduled_date` is called first, then the record doesn't contain any move_lines, the scheduled date is ignored and set to default (now)

This fix ensures that if a scheduled_date is set, it is applied after `_set_move_ids_without_package`.

OPW-2212391

closes odoo/odoo#52173

X-original-commit: 7f59fc89afd403534cc7ab9d06c2c6b458666a03
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-05-29 13:24:42 +00:00
Romeo Fragomeli 16fabc8227 [REF] web: allow override tooltip options
Before this commit, the options of the tooltip where set inline.

After this commit, the options are returned by a function.
This allow us to adapt these options in another module.

Task ID: 2152124

closes odoo/odoo#52170

Related: odoo/enterprise#10864
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2020-05-29 13:31:31 +00:00
Damien Bouvy ba93b4a243 [IMP] payment: ir rules in payment module for invoicing users
Security rules are added in the sale module for transactions and tokens,
but it is entirely possible to have the payment module without those,
and preventing invcoicing users from accessing transactions is
functionnaly stupid - they are often required to check payment statuses,
references, etc.

closes odoo/odoo#52139

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-05-28 14:32:58 +00:00
Swapnesh Shah 6252906aa5 [REF] crm: remove unused view and action
Actuin `relate_partner_opportunities` and its window views is not used anymore
in codebase. It can be removed, allowing some cleaning.

closes odoo/odoo#46676

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-05-29 13:14:32 +00:00
Nicolas Lempereur a10440358b [FIX] sale_quotation_builder: have template option description
The quotation template edition allows to save and use the description
of an optional product.

But when a quotation template is set, the description of optional
product is lost so we the optional product description was never used.

opw-2260457
closes #52133

closes odoo/odoo#52167

X-original-commit: 81d13f4097e7fca9fbb623839a2c90b04bd9ec29
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2020-05-29 12:33:09 +00:00
Laurent Stukkens (LTU) 0ce05c540d [FIX] website_sale: prevent search bar bug
Issue

	When pressing UP or DOWN arrow in search bar with empty text a traceback
	occurs.

Step to Reproduce

	- Install website_sale "eCommerce" application
	- Go to Website
	- Go to Shop
	- Click in Search Bar
	- Press Up or Down Key

Cause

	When no text is entered in the search bar, the $menu is undefined
	so trying to access children causes the error

Solution

	Test that $menu is defined prior to try accessing its children

task id-2252923

closes odoo/odoo#52161

Forward-port-of: #51920
X-original-commit: 30785e68852fa3cd18be11fcbaad4e886d01301c
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-05-29 11:16:08 +00:00
Odoo's Mergebot 6c05781d98 [FIX] project: Allow sub-tasks configuration per project
Enabling sub tasks is done through the general settings
but it should be possible to disable/enable it on specific projects.
The current implementation does not allow that since the field
enabling the feature is a readonly, user dependent field.

Task 2192763

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#49917

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-05-29 15:10:13 +02:00
David Beguin 7c23ac03ea [FIX] survey: fix timer position
Purpose
=======

When switching from questions to questions, if the next question's content
takes more or less vertical space than previous question, the timer moves
because the whole screen content adapts to the question size.

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

Set the timer at the upper right of the screen.
So that it won't move at each question change, no matter the question size.

Task ID: 2232973

closes odoo/odoo#49195

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-05-29 09:55:40 +00:00
Odoo's Mergebot f867a7ddc2 Master 2154703 l10n be edi bfr
[IMP] uniformized way to import/export EDI documents

In details, this is achieved by
 - Adding a generic framework module to import/export EDI documents
 - Adapting existing EDI modules to it
 - Fix PyPDF2 to manage multiple embedded files
 - Adding E-FFF standard in a separated module (belgian EDI export)
 - Fix UBL move line price import.

Task ID 2154703

closes odoo/odoo#49011

Related: odoo/upgrade#1108
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-05-29 14:30:57 +02:00
Jérémy Hennecart c15f9efed0 [IMP] mass_mailing: add email marketing tour
PURPOSE

Improve the Email Marketing tour and onboarding to create a "wow effect" when
users test the app.

SPECIFICATIONS

Create a tour for mass_mailing to let user visit Odoo Email Marketing through
a simple mailing creation flow.

This require the following functional changes

  * by default, if user chooses to contact mailing lists and there is a single
    mailing list available, add it as default value for chosen list;
  * create a master mailing list data containing the admin user so that he can
    easily follow the tour and test the mailing application;

LINKS

Task ID 2194876
Community PR odoo/odoo#48259
Upgrade PR odoo/upgrade#983

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-05-29 09:48:40 +00:00
fja-odoo ad828f4042 [IMP] website: use groups_id for visibility
visibility_group was used for visibility, we now use the groups_id field.
groups_id is a M2M field while visibility_group was a M2O field resulting
in an issue to display the M2M field in the frontend. We decided to
allow editing the groups as a M2O in the frontend. If there is more
than one group the user will have to go through the backend to edit.

task-2264580

closes odoo/odoo#51846

Related: odoo/upgrade#1260
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-05-29 08:22:34 +00:00
Odoo's Mergebot 0ab08fe86d [MERGE] event, mass_mailing(_sms): Improve list view and update widget
Purpose

Update the Marketing Apps list views to the new Framework possibilities.

Specifications

Decorations like color in badges used for state with widget badge likewise,
widgets remaining_days, many2one_avatar_user, date.

LINKS

closes odoo/odoo#51447

Pr: #51447
Task-id: 2250285
Related: odoo/enterprise#10637
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-05-29 13:13:51 +02:00
jev-odoo 013831b176 [FIX] payment_stripe: Request error handling with automatic flow
PR https://github.com/odoo/odoo/pull/49964 fixed manual payment flow
but broke automatic payment flow.

This commit should allow both by raising the exception only for
manual flow, giving only an error for automatic flows.

FW-PORT of https://github.com/odoo/odoo/pull/50908/commits/46e977a21743644a2e98344e3491f0dd6fcbe892

closes odoo/odoo#52151

X-original-commit: a40089d67b66b593a09b0fa4c4cd24f6ce5fcc71
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-05-29 09:36:02 +00:00
Benjamin Frantzen (bfr) ac0381d216 [IMP] l10n_it_edi: adaptation to account_edi
- Support for account_edi workflows (only import) + fattura_pa as an account.edi.format.
- XML containing multiple invoices cannot be imported from the chatter.
2020-05-29 07:16:30 +00:00
Benjamin Frantzen (bfr) 5b5ee38139 [IMP] l10n_be_edi: adaptation to account_edi + export in EFFF
- Support for account_edi workflows + efff as an account.edi.format
- Added export to EFFF.
- Based on UBL (account_edi_ubl).

TASK ID : 2154703
2020-05-29 07:16:30 +00:00
Benjamin Frantzen (bfr) 9e3d70c3fa [ADD] account_edi_ubl: module to manage EDI in generic UBL.
- E-FFF import moved from l10n_be_edi into a generic UBL import.
- [FIX] when importing if LineExtensionAmount is set but not PriceUnit on a move line, the price was not imported.
- Added export to generic UBL 2.1.
2020-05-29 07:16:30 +00:00
Benjamin Frantzen (bfr) 913f22f73f [ADD] account_edi: generic module to manage EDI (factur-x)
- account_edi is the base module to manage EDIs. It manages the generic worflow of import/export and defines the methods for import/export that should be overridden by each types of EDI (in different modules).
- On export, the files are added as attachment and can be embeded into pdf (format specific).
- On export, the exported format are set on the journal to allow different settings based on journal (different companies, countries, etc).
- On import, depending on the import method (from message_post or upload button in invoice tree view) a new invoice is created or an existing one is updated (only allowed draft invoices with no invoice lines).
- Adapted factur-x
2020-05-29 07:16:30 +00:00
Benjamin Frantzen (bfr) 0226901ec7 [IMP] base, tools: manage multiple attachments on PDF files 2020-05-29 07:16:30 +00:00
Krupal Oza 4c24409f2f [IMP] event: Improve list view and update widget
Purpose of this commit is to update the list views of event according
to the new framework possibilities for better UX/UI.

This commit utilises the latest framework features available from task 2195254
to represent the information in better way and/or adds some useful fields

List of the tree views improved are:
- Event - event.view_event_tree

For detailed specification, you can visit pad of the task.

Task-id: 2250285
2020-05-28 12:05:44 +00:00
Krupal Oza bce4690abf [IMP] mass_mailing(_sms): Improve list view and update widget
Purpose of this commit is to update the list views of mass_mailing and
mass_mailing_sms according to the new framework possibilities for better UX/UI.

This commit utilises the latest framework features available from task 2195254
to represent the information in better way and/or adds some useful fields

List of the tree views improved are:
- Email Marketing - mass_mailing.view_mail_mass_mailing_tree
- SMS Marketing - mass_mailing_sms.mailing_mailing_view_tree_sms

For detailed specification, you can visit pad of the task.

Task-id: 2250285
2020-05-28 12:05:44 +00:00
Mohammed Shekha ed2f14784d [IMP] web: cursor pointer on hover graph legend
Before this commit: hovering on graph legend shows cursor default
here hovering on legend should display cursor pointer, so user
can easily understand it is clickable element

After this commit, hovering on graph legend will display cursor
pointer.

task-2263703

closes odoo/odoo#52030

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-05-28 05:58:39 +00:00
Dhruv Patel bf9890f98c [FIX] web: force refresh on expired session popup button click
Currently, when the session expired then it generates the popup that
"Your odoo session expired. Please refresh the current page."
Now once you click on the "Ok" button only close the popup and user have to
manually do refresh the page.

with this commit, we have changed the text of the popup to
"Your odoo session expired. The current page is about to be refreshed." and
when user click on "Ok" button forcefully refresh the page.

Task : 2241744

closes odoo/odoo#50710

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-05-29 08:00:01 +00:00
Aaron Bohy 042b4060bd [IMP] web: list: display adjacent buttons in same column
Adjacent buttons in the arch are now displayed in a single column
in list views (main and x2many views). As soon as there is a node
in-between (even if it is invisible="1"), the rule doesn't apply
anymore and buttons placed before/after that node are rendered in
a separated column.

Task 2261774

closes odoo/odoo#51970

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-05-29 07:40:24 +00:00
Swapnesh Shah e34689411c [IMP] sale_coupon: Add Archived filter
Before this commit, We had two filters which filters Active/Inactive record were named as Opened/Closed.

In this commit, We remove those dummy filters and add `Archived` filter like all other search views.

closes odoo/odoo#46675

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-05-28 18:52:18 +00:00
qsm-odoo b27a6f98ca [IMP] website: do not load ace editor library when opening theme tab
The ace editor library was loaded as soon as the theme tab was opened
while it is only useful for the related <head/> option in there -> we
now load it only if that option is used. This was introduced with the
feature at [1].

[1]: https://github.com/odoo/odoo/commit/560e3af48ab9327b49a8cf44a9b0416dfb5b95de

closes odoo/odoo#52124

X-original-commit: 989c256aabeaa55d7b5ecb26614cc2c2578f71e6
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-05-28 15:46:42 +00:00
qsm-odoo e2cf0a2358 [FIX] website, *: review theme tab creation + switching
*: web_editor

When clicking on the theme tab on an empty page, a scrollbar appeared
and stayed. This was because the fake `<theme/>` element was focused and
the overlay positioned randomly outside of the page.

This commit fixes that by simplifying the code and always hiding the
related overlay. This commit also makes sure the onFocus/onBlur method
of the theme options are called consistently, even though they are
probably not useful.

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

closes odoo/odoo#52114

X-original-commit: 7760898de4e14fa30db1db87dfa05276bfcaa2bb
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-05-28 14:32:25 +00:00
qsm-odoo 0c895e0bf9 [FIX] web_editor: correctly call onBlur on tab change
Before this commit, the onBlur function of snippet options was not
called if the blur occured because of a click on the 'Blocks' tab.

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

X-original-commit: 85049e2dcf68c40218bd0f4ed7401a4f979951d4
2020-05-28 14:32:25 +00:00
qsm-odoo ff2c9fc195 [IMP] web_editor: preload colorpalette dependencies on editor start
As the colorpalette has very big chances to have to be loaded when the
user enters edit mode (any click on a text will require the colorpalette
to be available), this commit makes it so the dependencies are loaded as
soon as the editor is started, without actually waiting for them until
the colorpalette are used.

This allows to make the first click on a text or on the theme tab a bit
faster to react.

closes odoo/odoo#52116

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-05-28 14:41:49 +00:00
Goffin Simon 878fcb8cc7 [FIX] stock: No sequence defined on Operations Types dropship
Steps to reproduce the bug:

- Go to settings => Purchase
- Enable Dropshipping
- Go to Inventory => Configuration => Warehouse Management => Operations Types
- Open Dropship
- Remove the sequence (field is not required)
- Go to Inventory => Master Data => Products
- Let's consider product P (Inventory tab: Check "Dropship" and "Buy" and vendor V as supplier)
- Create Quotation Q with customer C and product P
- Confirm Q (a PO has been created for V)
- Confirm PO

Bug:

A traceback was raised because the sequence was not defined on Operation Type dropship

opw:2263799

closes odoo/odoo#52115

X-original-commit: 25ae1f6900712dcf13341fdb0855e3cbe2fa98af
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-05-28 14:35:57 +00:00
Aaron Bohy c8f4098a51 [FIX] base: restore _clean_website on res.partner
Commit d5d2c5524c improved the UrlWidget s.t. it automatically
prefixes the url with 'http://' if no protocol is specified (except
for own website paths).

In addition, it removed a logic specific to model res.partner that
automatically prefixes the saved website values with 'http://'.

However, the second part should not have been done: those urls can
be displayed without UrlWidget (e.g. on the website), and in this
case, the protocol wouldn't be set, meaning that it would behave
like a relative link.

closes odoo/odoo#52113

X-original-commit: 5a8690bb64cb3dc01ee8d4f9af3a6ab91eee8b99
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-05-28 14:30:57 +00:00
Antoine Prieels 98d1c55090 [FIX] pos_six: Manual cancel and minor units
This commit fixes two bugs with pos_six:

- When the cashier manually clicked on "Cancel" or switched order,
the payment was correctly canceled, but the POS still showed the
error popup saying that the transaction was not processed
correctly.

- The TIM API manages differently rounds amounts and amounts with
decimals. Sending an amount of 1 was considered as 0.01€, while an
amount of 1.01 was considered as 1.01€. To fix this, we always sent
the amount in minor units.

closes odoo/odoo#52102

X-original-commit: a5125b92c11bd9dbf1b536e1eb1b467be446718f
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-05-28 13:59:30 +00:00
Martin Trigaux 92d6aad0e9 [I18N] l10n_ch: export source terms
It was outdated and did not contained account.tax.report.line references

Raised by opw-2261376

closes odoo/odoo#52085

X-original-commit: 81cccec510c4540126503a79d8844f14cb65bb7d
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-28 11:56:11 +00:00
Simon Lejeune 0a768b9c3f [FIX] stock: multi-steps, backorders and return
1. Activate receipt in 3 steps
2. Make a PO of 50
3. Receive 20 (pick 1), backorder
4. Receive 29 (pick 2), backorder
5. Receive 1 (pick 3)
6. Transfer to quality check location 45 (pick 4), backorder (pick 5)
7. Go to pick 5, unreserve the quantity
8. Go to pick 3, return 1 => the quantity suggested by the return wizard is 1

The return is not able to reserve the necessary quantity.

This happens because 45 units are considerd out (from pick 4), but only
1 unit is considered in (pick 3). Therefore, in the following:

https://github.com/odoo/odoo/blob/23511dffb9e3f597a7df9bb834d008f74abb07b8/addons/stock/models/stock_move.py#L1276

we have `quantity = -44.0` and `available_quantity = 5.0`, so we can't
reserve.

We count as `move_orig_ids` all the siblings coming from
`move_dest_ids`.

opw-2261473

closes odoo/odoo#52084

X-original-commit: ba89e26750baab2309cccc4ffd0b3ade804d19ce
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-05-28 11:53:14 +00:00
jvm-odoo 0ef9289238 [FIX] web: fix IE/Edge dropdown clear
Issue

	- Have IE 11 or not chromium-based Edge
	- Install Contacts
	- Add a salesperson on any contact
	- Save
	- Try to remove the salesperson with
	  the cross icon on the input
	- Save

	The value comes back

Cause

	We do not handle this feature in dropdowns

Solution

	Remove the dropdown cross icon

OPW-2262749

closes odoo/odoo#52083

X-original-commit: cdb072372bfaa3cdc85e7b6d79ad848e8d071e00
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-05-28 11:34:36 +00:00
Josse Colpaert 468f1b60d0 [FIX] l10n_nl: BTW af te dragen verlegd has wrong sign for 5b line
Original fix pr 50432.  It forgot the BTW verlegd itself.

closes odoo/odoo#52067

Task-id: 2230389
X-original-commit: 4f06fe0d364c84226d3b57b82681b76eb8aaa5fb
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-05-28 09:55:30 +00:00
Josse Colpaert 567b2ecb7e [IMP] l10n_it_edi: install it by default
As without configuration of mail servers,
the only thing it does, is making sure we
can export/import FatturaPA invoices.

closes odoo/odoo#52066

X-original-commit: 19072db87e20ac13221b7a39ac9e8ca25a87b172
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-05-28 09:54:01 +00:00
fw-bot 3349940157 [FIX] l10n_ch: make QR-bill and ISR generation disjoint
QR-bills could only be generated for ISR-compliant invoices, which is wrong and would have caused issues in the future, as ISR will slowly disappear.

Furthermore, doing it this way avoids raising an error after commit 719f087 , when trying to print an ISR-compliant invoice if the module hadn't been updated (it used to raise because the QR-bill report didn't exist, and it tried generating it).

closes odoo/odoo#51858

Forward-port-of: #51340
Forward-port-of: #50744
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-05-28 11:43:30 +00:00
Lucas Lefèvre be7773353e [FIX] sale_timesheet: Consider NULL as a False value
A NULL value in the database column is considered as
a False value for boolean fields in Odoo.
Hence the sql constraint should reflect this semantic.
Otherwise, the constraint might not be applicable when
installing the sale_timesheet module.

Task 2192763
2020-05-26 12:09:51 +02:00
Lucas Lefèvre a96e167169 [REF] sale_timesheet: Remove unused method
This compute method is not used by any field.
2020-05-26 12:09:51 +02:00
Lucas Lefèvre 0f01bb70fe [FIX] project: Allow sub-tasks configuration per project
Enabling sub tasks is done through the general settings
but it should be possible to disable/enable it on specific projects.
The current implementation does not allow that since the field
enabling the feature is a readonly, user dependent field.

Task 2192763
2020-05-26 12:09:51 +02:00
Martin Trigaux 4dbab5a70b [IMP] account: use singular description
The description of the model is used in sentences like
This <model> has been created from: <link>
All model descriptions should be singular

Courtesy of Erwin van der Ploeg for raising the issue

closes odoo/odoo#51837

X-original-commit: e0acef778272abb748dacfe4460b3536b3c30a82
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-05-26 07:34:17 +00:00
Martin Trigaux 6394c628fa [IMP] mail: make the template easier to translate
Don't try to save bytes, make longer sentences, easier to translate
instead of splitting it into small blocks of one word.

https://www.odoo.com/documentation/13.0/reference/translations.html#blocks

Courtesy of Erwin van der Ploeg for raising the issue

X-original-commit: 737ee6393cd99b0c41272f6cfa9a0acb68276744
2020-05-26 07:34:16 +00:00
Nicolas Martinelli 95bc27b1cb [FIX] point_of_sale: access to rounding
- Create a user with only Point of Sale / User rights
- Open a POS session

An AccessError is raised on `account.cash.rounding`.

We add he access right: the user should be able to read the cash
rounding configuration.

opw-2258719

closes odoo/odoo#51816

X-original-commit: 61915c33e4e0e7979d10dee01fa80a6511498f33
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-05-25 13:31:03 +00:00