Commit Graph
157572 Commits
Author SHA1 Message Date
Pierre-Yves Dufays bcccd4fefb [FIX] mail: fix template preview layout
Enlarge selection fields of record and language in the template preview form so
that the labels are not truncated.

Task-3098782

closes odoo/odoo#110075

X-original-commit: f1ac110cb71d982acd9d6cdbccaf6d2415a38736
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
2023-01-17 10:21:10 +01:00
Victor Feyens 3ef26523fb [FIX] product: UX of advanced pricelist rules
task-3062387

closes odoo/odoo#110060

X-original-commit: f91f3db47469d4f516083f8cbcfeb0381c066844
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-01-17 10:21:05 +01:00
Ivan Yelizariev 7209a84910 [FIX] survey: update cursive font
New version of the font is downloaded from Google Fonts website:
https://fonts.google.com/specimen/Alex+Brush?preview.text=c%C4%8Dc&preview.text_type=custom#standard-styles

The reason of this update is because old version doesn't support special
characters, e.g. Aleksandar Vučić.

opw-2891706

closes odoo/odoo#110058

X-original-commit: a3c6db01173cf5a97a74ae4f9a09201e49690fb6
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Ivan Elizaryev (iel) <iel@odoo.com>
2023-01-17 10:21:02 +01:00
Bruno Boi 204a9cef02 [FIX] web: shortcuts usermenu entry for Mac users
Before this commit:
> The command palette displays a footer tip about shortcut overlays.
> The tip is false for MacOS users.
> They cant see overlays with "ALT" key, they need to press "CONTROL".
> They do not need to do "ALT + CONTROL" in order to trigger a shortcut,
> only "CONTROL" is enough.

After this commit
> The tip is good for MacOS users too.

closes odoo/odoo#110050

X-original-commit: 65dda569f45401c002fc34fb12718de709847bf0
Signed-off-by: Georis François (fge) <fge@odoo.com>
Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
2023-01-17 10:20:56 +01:00
Victor Feyens c67d8b1bb9 [FIX] base_setup: test verifying validity of documentation links
Since c7c2959449, most documentation
links specified in the settings are written through a dedicated
documentation attribute on the setting nodes.

The test verifying the documentation links was not adapted
accordingly and therefore all the links specified with the new
API were not verified anymore.

closes odoo/odoo#110045

X-original-commit: 9abf52a666596f37a937892682815c321e0e69c4
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-01-17 10:20:51 +01:00
Brice bib Bartoletti d03a66c0c3 [FIX] account: prevent saving unbalanced misc
The aim of this commit is to prevent the user to save unbalanced misc entry
that wouldn't be created by adding a tax.

Context:
Since commit d8d47f9 we allow user to create unbalanced entries by
automatically balancing them on a suspense account. This isn't an issue but we
also allow to post those entries.
As the flow is smooth and fast, a quick user could just post this entries which
could be problematic.
Resetting to draft could be an option but that wouldn't be convenient if some
lines would have been reconciled. (which could have side effects in case
of there would be a cash basis tax on the line)
It's also impossible in case of a journal that would be hashed.
It also means that the problem would be delayed until the end of year
accounting processes, when accountants are tied to dead-lines.

Before this commit:
An unbalanced misc entry created manually would automatically be balanced with
a suspense account.

After this commit:
- Unbalanced misc entry can't be saved if there isn't any tax on it
- Unbalanced misc entry with a tax are balanced automatically.
- Unbalanced misc entry with a tax we are about to remove are balanced
automatically

closes odoo/odoo#110063

Community-pr: https://github.com/odoo/odoo/pull/109878
Task-id: 3129172
X-original-commit: c86786676b86381fbeeac9897508d3fe0ce77151
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-01-17 09:14:55 +01:00
Aaron Bohy 057f281f20 [FIX] web: RelationalModel: find previous group with date
When a list or kanban view is grouped, at each reload, we try to
match the fetched groups with the previously created Group
datapoints, such that we can restore/keep the state of each group
(for instance, the fact that it is folded, the limit of the inner
list...).

Before this commit, this didn't work when the view was grouped by
a date or datetime field, because in those cases, the value of the
group was a luxon instance, and strict equality between two
different luxon instances, even if they represent the same value, is
always false.

This commit fixes the issue.

Issue reported in the feedback pad after migrating odoo.com to 16.0.

closes odoo/odoo#110046

X-original-commit: 80fa8f187939d78ea644a49ec17c112bcc97b32b
Signed-off-by: Mathieu Duckerts-Antoine <dam@odoo.com>
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-01-17 09:14:52 +01:00
David Monjoie 3f320c8a93 [FIX] web_editor: fix toolbar not hiding when clicking outside of editable
Commit [1] correctly disabled some of the behaviors of the editor
that used to modify the selection outside of the editable. However,
it also had the inadvertent side-effect of disabling the toolbar
update mechanism when clicking outside of the editable.

Behavior before this commit:
When the toolbar is visible, clicking outside the editable zone
does not hide the toolbar.

Behavior after this commit:
Clicking outside of the editable zone hides the toolbar.

[1]: 07a1483967

task-3131435

closes odoo/odoo#110044

X-original-commit: 28a35a6b53493abd03e42cc30d164262c86b6de5
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-01-17 09:14:49 +01:00
Romeo Fragomeli dcf06d45cb [FIX] web: settings control panel's layout on small screen
The custom control panel for Settings form view has radically changed
and the old CSS rules (`.o_settings_title`, `.o_setting_search`) didn't
apply anymore, so we remove it.

Note that the form view uses a custom control panel `FormControlPanel`
but the settings form view uses the normal one: `ControlPanel`.

In this commit, we adapt the CSS to reflect the normal control panel
(e.g. the one used by the Kanban view)

Also note the differance between the old version and now:
* before (< Odoo 15.2) the input search was focused when the app was
opened and there wasn't any title
* after (>= Odoo 16) we have harmonized the search to match the other
control panel, so we have to click on the magnifying glass to show
the search input.

Steps to reproduce:
* Open Odoo on a small screen (e.g. on Mobile)
* Open the Settings app => BUG the magnifying glass isn't at the right
position.

closes odoo/odoo#110043

X-original-commit: 91ab277ef66a2ca6b34c13fcba7197f18c50aab0
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
2023-01-17 09:14:47 +01:00
Thomas Lefebvre (thle) 42b5a8d86e [FIX] sale_loyalty: add ewallet and coupons to cart
Steps to reproduce:
- go to e-commerce;
- add two products (A and B) to the cart;
- apply an eWallet;
- apply a coupons which allows a 100% discount on product A.

Issue:
A traceback appears (Internal Server Error).

Cause:
We are trying to access a dictionary value
a key which does not exist.

Solution:
Correct the distribution of the amount of payment programs.

opw-3115066

closes odoo/odoo#110036

X-original-commit: 0654d87211d9d9319e94b87a8bc6469778633f02
Signed-off-by: William Braeckman (wbr) <wbr@odoo.com>
Signed-off-by: Lefebvre Thomas (thle) <thle@odoo.com>
2023-01-17 08:17:52 +01:00
Jigar Vaghela cb243d6918 [IMP] l10n_in_edi_ewaybill: Use same end point for all Indian IAP
closes odoo/odoo#109751

closes odoo/odoo#110067

X-original-commit: 99e3a7ba49e1a367f2c90db28b67571427e0f048
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Jigar Vaghela (jva) <jva@odoo.com>
2023-01-17 06:22:57 +01:00
niyasraphy 6faad52256 [FIX] base: index_content field alignment in attachment form
before this commit, the index_content field in attachment form view, is not taking full available space.

after this commit, the colspan="2" is added and field will be shown in full width

closes odoo/odoo#110037

X-original-commit: c11dcf88abe2d1e15d174d71e80ff48f50faa3c2
Signed-off-by: Julien Castiaux <juc@odoo.com>
2023-01-17 02:02:26 +01:00
Nicolas (vin) 8ed53c5a57 [FIX] base: ir ui views word break
Fix an issue in the form view of the ir ui view where,
in the edit view dialog, the right group labels would be
all squished up if the xml_id of the view is long.
E.g. the bank reconciliation view.

This is fixed by adding the text-break class to the field.

Task id # 3133662

closes odoo/odoo#110039

X-original-commit: cd1a75f6e9349d8a9ff59c4e65e1d52403e531e9
Signed-off-by: Julien Castiaux <juc@odoo.com>
2023-01-17 01:10:12 +01:00
M.A Heshmatkhah 9a5bc52839 [CLA] Mohammadamir Heshmatkhah
closes odoo/odoo#110034

X-original-commit: 3d96cad285ec3beecb31348002a2837eff1bf9d6
Signed-off-by: Julien Castiaux <juc@odoo.com>
2023-01-17 01:10:09 +01:00
M.A Heshmatkhah e73ad6a53d [FIX] auth_oauth: fragment_to_query_string return
Use the `fragment_to_query_string` decorator before the `route`
decorator on a controller endpoint. Traceback when the endpoint is
called as a `str` object is not a `Response` object.

Since httpocalypse it is advised that all decorators used with http-type
controllers return a Response. This makes it possible to decorate the
endpoint in any order, even before `@route`.

    # Preferred
    @route(...)
    @fragment_to_query_string
    def endpoint(...):
        ...

    # This work
    @fragment_to_query_string
    @route(...)
    def endpoint(...):
        ...

X-original-commit: 4a879cb4a395ad5ef47384937fcc383acdb3e431
Part-of: odoo/odoo#110034
2023-01-17 01:10:09 +01:00
bat-odoo 7b447e4139 [IMP] l10n_in_edi_ewaybill: get the error message from code
In this commit, added the list of error codes with messages, and use them when
an error message is empty. If we don't find the message from the defined error
codes then we call API to get the latest code and message.

closes odoo/odoo#110059

X-original-commit: e845e458548534acbac55bd355cdcdd295b4ae2f
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-16 23:21:04 +01:00
Daniel Blanco 130451983f [FIX] l10n_cl: remove content from view l10n_cl.view_move_form_inherit_l10n_cl
to solve issue: wrong display of the field "Reference" on journal entries.

closes odoo/odoo#110062

X-original-commit: 84f52ab08515336158dfa4b72a0573cf9500ce39
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-16 22:21:56 +01:00
Victor Feyens 1a1ce16265 [IMP] core,*: check routes decorators
When overriding an existing controller route, developers can
easily c/p the route definition and call super() in the overridden method
when the route attributes are automatically deducted by odoo from the parent route.

Removing those redefined attributes simplifies the routes definition,
clearly highlighting what's changed by the override.
Also reduces unexpected behavior when modifying the base route without
noticing/considering the redefined attributes in a overridden route,
which overrides the changes made to the base route when the sub-module is installed.

This commit adds a test to catch routes attributes redefinition, and clean existing routes.

closes odoo/odoo#108512

Related: odoo/enterprise#35176
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-01-16 19:45:57 +01:00
niyasraphy d9281dcaec [IMP] base_geolocalize : form view for base.geo_provider model
closes odoo/odoo#106374

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-01-16 19:45:52 +01:00
aliya aebd1a2c7e [FIX] base: add kz to EEU country group
EEU is missing KZ among the member countries, this commit fixes this omission.

closes odoo/odoo#109936

Signed-off-by: William André (wan) <wan@odoo.com>
2023-01-16 18:14:56 +01:00
Camille Spiritus 508dc8ac8b [FIX] account-l10n_ch: solve sepa vs swiss QR problems
Aim :
Allow customer from Switzerland to emit an invoice with a QR code to a SEPA customer.

Context:
In Switzerland, adding an extra page containing a QR Bill is mandatory in many cases, mainly when the customer is also from Switzerland (although there are other conditions).

However, activating the option 'QR Codes' in the settings (which is not linked to the QR Bill) can cause problem.

For instance, it will be impossible to bill a foreign customer, because we check that the conditions are right to emit a swiss QR (which is a bug).

After this commit :
The new behaviour is :
- Swiss user --> swiss customer: don't change the invoice, allow to create a QR Bill
- SEPA option activated, swiss user --> SEPA customer : join the SEPA QR to the invoice
- SEPA option activated, swiss user --> swiss customer : raise error

task-3062570

Manual fw-port of https://github.com/odoo/odoo/pull/109808

closes odoo/odoo#109935

X-original-commit: a9980477048e4adffda4a71a72ff1cc8490637f9
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-01-16 18:14:53 +01:00
Nicolas (vin) cb9e936dc8 [IMP] account: bank statement report improvement
Improve the bank statement report by reducing the amount of
blank lines in it, as well as adding more information about
the partner and bank account when we have it.

Task id #2860753

closes odoo/odoo#93162

Signed-off-by: Quentin De Paoli <qdp@odoo.com>
2023-01-16 18:14:48 +01:00
Christophe Monniez 8e6e200477 [IMP] core: bump master release to 16.2 alpha 2023-01-16 17:00:48 +01:00
Demesmaeker ba16fdc8c1 [FIX] payment: use a defined currency
Following f3a3e34150, the l10n tests were failing due to the main
currency changing to a currency not available for the test provider.

closes odoo/odoo#109916

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-16 15:43:09 +01:00
Hugo Carlier (Huca) 20b8635737 [REF] resource, project: replace the function remove_domain_leaf
The function remove_domain_leaf is currently used for project burdown
chart. Due to an increasing need of such a function in multiple modules
for various functional cases, it has been decided to:
- Move this function in 'resource' that is imported in all the modules
where this function is needed.
- Implement extensive unit test to ensure that it address corner cases.
- Refactor the function to address the corner cases it was not
addressing until now.

The refactored function 'filter_domain_leaf' is used to transform a
given domain to a new domain using only the leaves that verify a given
check (more precisely, the leaves whose first element verify this check). To perform this transformation, the leaves that do not verify
this check are considered as undetermined. All the logical operators
dealing with undetermined leaves are ignored, which means:
- AND(leaf, ?) = leaf
- OR(leaf, ?) = leaf
- AND(? , ?) = ?
- OR(?, ?) = ?
- NOT(?) = ?
If the result of the operation is undetermined, it is returned as an
empty domain ([]).

closes odoo/odoo#105470

Related: odoo/enterprise#33657
Related: odoo/upgrade#4221
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-01-16 15:43:01 +01:00
Hugo Carlier (Huca) 47db8b5dcc [ADD] sale_service: add additional information in SOL display name
- Impacted modules:
    - sale_service (new module - installed only if sale
    AND (project OR planning) are installed)
    - sale
    - sale_project

- Description: When looking for a SOL in services apps, the displayed
name is of the form "SO ref - SOL name - unit price (partner
ref/name)". The presence of some of those elements may vary:
    - unit price is only displayed if it allows to clarify an
    ambiguity (i.e. two SOL with identical name but different unit
    price in the same SO).
    - partner name is only used if the partner ref does not exist.
    - partner name/ref is hidden in the name of planning slots to avoid
    duplicates.

- Implementation: The behavior currently existing in sale needed to be
extended for services apps. This has been done with the following
changes:
    - sale:
        - sale.order.line: Current behavior for the name_get (display
        partner ref) has been extended (display parnter name if has no
        ref) and split a additional method that is extended in a new
        module called..
    - .. sale_service:
        - sale.order.line: The additional behavior is extended to
        display the unit price of the SOL when it avoids ambiguity. A
        context parameter is used to keep this behavior inside
        services apps.

task-3052812

Part-of: odoo/odoo#105470
2023-01-16 15:43:00 +01:00
niyasraphy 06f19bdc82 [IMP] {}_sale: add documentation for shipping connectors in settings
before this commit, the documentation link was missing for shipping connectors in the sales and website settings.

after this commit, the documentation link will be shown for each connectors as it is currently displayed in the inventory settings.

closes odoo/odoo#109885

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-01-16 13:37:41 +01:00
Kartik Chavda eb0d81eaa7 [IMP] {hr,sale}_timesheet, _*: make separate method for access
_* = project_timesheet_holidays

Before this commit checking validation for creating and writing
on timesheet done in create and write method which makes
customization difficult for user.

So, in this commit check validation for creating and writing on
timesheet done in separate method _check_can_create and
_check_can_write respectively for timesheet.

task-2928942

closes odoo/odoo#100943

Related: odoo/enterprise#31689
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-01-16 11:36:49 +01:00
bat-odoo 5f99aa3046 [IMP] l10n_in_upi: updated generate QR code method name
In this commit, changed the method `generate_qr_code` to `_generate_qr_code`.

closes odoo/odoo#109717

Related: odoo/enterprise#35693
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-16 10:32:18 +01:00
bat-odoo 62614058a0 [IMP] l10n_in_edi_ewaybill: improvement in UX
In this commit, the following points are covered
- using the `partner_shipping_id` field instead of `_l10n_in_get_shipping_partner` method
- form realignment in the e-waybill settings.

Part-of: odoo/odoo#109717
2023-01-16 10:32:18 +01:00
bat-odoo da40058ef7 [IMP] l10n_in_edi: e-invoice form realignment in settings
Currently, the e-invoice settings form view is not proper.

So in this commit, we did the form realignment in the e-invoice settings.
Also, updated the e-invoice report.

Part-of: odoo/odoo#109717
2023-01-16 10:32:18 +01:00
bat-odoo 361ac275c7 [IMP] l10n_in: set partner state in Place of supply only when journal type is sale
Currently, the Place of supply value is set from the partner state for all journal types.

So in this commit, we set the partner state in `Place of supply` only when
the journal type is a sale. Also added the country domain in XML view.

Part-of: odoo/odoo#109717
2023-01-16 10:32:17 +01:00
Maruan Aguerdouh (magm) 68207af83c [FIX] website_slides_survey: fix survey access without elearning rights
Steps to reproduce:

- We need to have eLearning and Survey installed.
- Then we go to Demo or any other users and we remove the access to
  eLearning and we give it administrator rights to Surveys.
- We connect with Demo and we go to the survey app.

Issue:

We are getting a traceback when trying to access Survey app, because
we load the inherited view that calls for the `slide_channel_count`
field which is restricted for elearning officers only.

Solution:

Added proper access rights groups to the inherited views so we won't
try to access it without the proper rights.

opw-3059128

closes odoo/odoo#109620

X-original-commit: ee0290b90d109fd26724548d7f68c7ff2f6531e9
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Signed-off-by: Maruan Aguerdouh Mohtar (magm) <magm@odoo.com>
2023-01-16 10:32:09 +01:00
FrancoisGe a61cd4b322 [FIX] mass_mailing: action_import add default_mailing_list_ids
The goal of this commit is to fix the problem introduced by the PR 106519.

How to reproduce the problem:
- Go to the "Email Marketing" app
- Go to the "Mailing Lists" menu
- Click on a "Mailing List"
- Click on the "Recipients" stat button
- Click on the "Import" button

Before this commit:
A dialog opens and no mailing list is selected.

After this commit:
A dialog opens and the mailing list we are in is selected.

closes odoo/odoo#106732

Related: odoo/enterprise#34453
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-01-16 10:32:06 +01:00
FrancoisGe f36c404927 [IMP] *: converting custom kanban views adding a doAction button
In this commit, we will convert all the customisations of the kanban view
consist in adding an always present button in the control panel that
performs an action/calls a model's method.

To do this, we will use the new display="always" parameter applicable
to buttons in the header of kanban views. This allows us to define a
button that is always visible in a kanban view.

Taskid: 3082390
Part-of: odoo/odoo#106732
2023-01-16 10:32:06 +01:00
FrancoisGe 469577ac2f [IMP] web: add buttons in control panel in kanban
This commit adds the possibility to define buttons that are always
present in the arch of a kanban view.

Purpose:
Several customisations of the kanban view consist in adding an always
present button in the control panel that performs an action/calls a
model's method.
We want to support this feature directly in the framework to remove
these customisations.
The task 3082303 has added the same functionality to the list view.

Solution:
Add a "display" option that lets you know when to display a button.
The different values that can be assigned to "display":
- "selection": the button is only displayed if at least one record is selected.
- "always": the button is always displayed.
The default value of "display" is "selection".
Currently, only the value "always" is implemented because it is not
possible to select a record in a kanban. The selection of a record in a
kanban view will be implemented soon, so we decided to use the same API
as in the list view.

Exemple:
<kanban>
    <header>
        <button name="to_do" type="object" string="Do" display="always"/>
    </header>
    ...
</kaban>

Taskid: 3082390
Part-of: odoo/odoo#106732
2023-01-16 10:32:05 +01:00
Andro Gvivradze dab3becf38 [IMP] Website_slide: use built_in methods for placeholder images
Before this commit placeholder images were generated in multiple
different ways in website_slide. This commit makes use of
_get_placeholder_filename function and standardizes the way
these placeholder images are generated for website_slide.

Task-2908029

closes odoo/odoo#100587

Related: odoo/upgrade#4050
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-01-16 10:31:55 +01:00
Rémi Rahir f7a3657a0b [IMP] spreadsheet: update o_spreadsheet to latest version
### Contains the following commits:

https://github.com/odoo/o-spreadsheet/commit/dcff0890 [IMP] Error: Lookup module's functions  now return NA Errors
https://github.com/odoo/o-spreadsheet/commit/e154817f [FIX] collaborative: Ensure full payload of `UPDATE_CHART`
https://github.com/odoo/o-spreadsheet/commit/1829d0f0 [FIX] functions, find & replace: escape regex special characters
https://github.com/odoo/o-spreadsheet/commit/273c38ca [FIX] figure: Change component structure to leverage navigator native behaviour
https://github.com/odoo/o-spreadsheet/commit/bf97a1e4 [IMP] registries: always populate chart/figure registries
https://github.com/odoo/o-spreadsheet/commit/1178bbec [IMP] components: prevent mouse event defaults on drag-and-drop

closes odoo/odoo#109866

Related: odoo/enterprise#35778
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2023-01-16 09:33:02 +01:00
Xavier-Do cd765440b3 [FIX] account_edi_proxy_client: truncate invalid constraints name
closes odoo/odoo#109065

Related: odoo/enterprise#35424
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-01-16 09:32:51 +01:00
Xavier-Do 823d9e10dc [IMP] models: warn if constraint key len exceed 63
Warn when constrains name combine with table name will be more than
63 characters.
This is to avoid case like the one fixed in #103148

Unlike index, since constrains name are defined in the code, we prefer
to avoid automatic truncate and add a warning since devs can chose
an appropriate short-enough name.

The linked fixes will just truncate the name to the max length
to match the name in existing databases. Renaming could be done in other
pull requests with upgrade scripts to avoid constrains re-computation.

Part-of: odoo/odoo#109065
2023-01-16 09:32:51 +01:00
Sahil PatelandAurélien Warnon 349c59e05b [FIX] website_slides: close fullscreen mode when translation
Current behavior before PR:

(In the case when Multi-languages are set up for the website.)
The translation button does not work well with the e-learning fullscreen view.
It completely closes the fullscreen view and opens the edition on a blank page.

Desired behavior after PR:

To avoid this, we intercept the click on the 'translate' button and redirect to
the non-fullscreen view of this slide with the translation mode enabled.

Task-3087792

closes odoo/odoo#109815

X-original-commit: 9b5c3eb21139a60ae2374d9f7614508e31bac492
Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2023-01-16 07:48:57 +01:00
Jigar Vaghela dfc64aab9d [IMP] l10n_in_edi_ewaybill: remove auto_install False
closes odoo/odoo#109390

Origin: https://github.com/odoo/odoo/commit/42bad1a6d21e086e3bb766f9813d65902b3c232a
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-01-14 21:44:42 +01:00
Jigar Vaghela 50cf95fb00 [FIX] l10n_in_edi_ewaybill: fix as per V16 EDI
X-original-commit: ed4d4815e27b5e4c150a75948541b92e522b72bd
Part-of: odoo/odoo#109390
2023-01-14 21:44:41 +01:00
Jigar Vaghela be311c72fc [ADD] l10n_in_edi_ewaybill: Create Indian E-waybill from invoice/bill
This module creates E-waybill in two types
1) Based on E-invoice API:
    Generates the E-waybill using the Invoice Registration Number (IRN) that create by the E-invoice service
2) Direct using E-waybill API:
    Generates the E-waybill using E-waybill API

X-original-commit: 2374d127792b3412e0ffe62515499d5b8f8ba434
Part-of: odoo/odoo#109390
2023-01-14 21:44:41 +01:00
Jigar Vaghela 2c65d25e95 [IMP] l10n_in_edi: add optional parameter to filter invoice line
need to filter service product from invoice for E-waybill so add this optional parameter

X-original-commit: cb01d94ab249a45ec31983573179a68284698896
Part-of: odoo/odoo#109390
2023-01-14 21:44:41 +01:00
Thibault Delavallée f40bc7a67f [FIX] website_sale: fix filtered domain usage
Use filtered_domain to filter with a domain.

closes odoo/odoo#109851

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-01-13 21:03:44 +01:00
vishal padhiyar a3d20bd96d [FIX] web_editor: inconsistent behaviour of the font size selection
Before this commit:

Selecting some text and changing its size will never allow you to select 13 and
selecting default will make the text bigger than the surrounding text.
Example in project: the default size is 13px (the editor parses that info and
display 13px as the font-size), but if you want to set any text to that value
you can't. Users could set any text to that value by selecting
"default" font-size instead of 13

After this commit:

"default" sets to "font-size: medium", which is often not correct. It should
instead, do a "font-size: inherit" so that it's the default for the current
context. Hence, removed that medium font-size rule and let the cascade do it.

Task-3095887

closes odoo/odoo#109835

X-original-commit: 9878579f62b493958bb6a98e2cdc466bfc2954d8
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-01-13 17:33:17 +01:00
Yas-Elak cea588b1ed [FIX] payment_stripe: Limit phone number to 20 characters
Before this commit, the string with the phone number sent to Stripe for the request is not checked and we got this error on the checkout page
---------------------
We are not able to process your payment.
Stripe: The communication with the API failed. Stripe gave us the following info about the problem: 'Invalid string: +1 555-555...5678456789; must be at most 20 characters'
-----------------------
The stripe API does not accept phone numbers with more than 20 characters
The problematic phone number are mostly the one with extention: +1 780-459-5656 ext. 725
But the customer can put anything in the phone field when he buys some product via eCommerce
Now I just limit the phone string to 20 characters, this doesn't affect the res.partner

If the customer had a phone with more than 20 characaters in the res.partner form, it will stay that way. It's only for the stripe request

closes odoo/odoo#109834

X-original-commit: d24cc320854f180989949328396dbbd8ac69bdc9
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-13 17:33:14 +01:00
Romain Derie 17b0796546 [FIX] website: prevent SQL deadlock with website.visitor
Since it's first implementation at [1], a new cursor is created to then
build a new environment after the website's `authenticate` overide with
the new `uid` of the logged in user.

Since the new visitor SQL upsert refactoring done at [2], it seems to be
introducing a SQL deadlock sometimes.
It has been detected on odoo.com while monitoring the logs. Despite
being quite rare, it still happens too often due to our heavy trafic.

Step to reproduce (among others):
- Install website_livechat
- Login as admin on 127.0.0.1
- On 127.0.0.2, load the website
- Open the livechat
- Type something in the discussion
- Directly try to login as admin
- It will load for a certain time then crash on a 502 timeout due to the
  SQL deadlock
- You may need to repeat the process to actually face the bug

[1]: https://github.com/odoo/odoo/commit/6bec0e4d29e6b33b74962b2893a7a405667ef58c
[2]: https://github.com/odoo/odoo/commit/d348bed1ad9d3d16b295f013f015706be6c07820

closes odoo/odoo#109830

X-original-commit: b241cf7de9329af1410b9dd45b161aa41926effb
Signed-off-by: Olivier Dony (odo) <odo@odoo.com>
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-01-13 17:33:12 +01:00
niyasraphy c642e70bae [IMP] mail: add form view for mail.guest model
before this commit, there is no form view defined for the mail.guest model and on accessing these record from Guests menu under the settings, is returning odoo generated form view.

after this commit, clean form view will be displayed on accessing the Guest menu.

closes odoo/odoo#109826

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-01-13 17:33:09 +01:00