Commit Graph
167496 Commits
Author SHA1 Message Date
Deependra Solanki 7b95f5c8a7 [FIX] web_editor: remove redundant code from setTagName
Commit [1] implemented an approach for changing style of a list item to normal.
It no longer wrapped the content in a <p> to remove extra spacing to next list
item. Later commit [2] was introduced which did the same thing but in sanatize.
Hence the code added in commit [1] is no longer needed.
This commit removes the redundant code from `setTagName`.

[1]: 03a134c
[2]: 324e138

closes odoo/odoo#141812

X-original-commit: bd1e432dc29be0dec6e52b142d9fb712335209b6
Signed-off-by: Antoine Guenet (age) <age@odoo.com>
2023-11-13 14:38:38 +00:00
jugj-odoo 3d8fb4d699 [FIX] hr_attendance: Fix attendance creation if no default user
Steps to reproduce:
-------------------
- Create user with default company A
- User may have related employees, but not in company A
- Go to attendance - click -> New
You will get a traceback related to the sql request of _compute_overtime_hours

Explanation:
------------
- The query needs a non-empty list of employees

Fix:
----
- Don't run the sql query if we haven't defined any employees yet on the attendance

closes odoo/odoo#141808

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-11-13 14:38:37 +00:00
Mahamadasif Ansari 679c813ec7 [FIX] hr_attendance: not filter attendance without check out
Currently, an error occurs when the user tries to open an employees
who checks in but does not check out.

Steps to produce:
1. Install 'hr_attendance'
2. Open Attendence > Attendences > create new
3. Set check In date previous month and no add Check out
4. Open employees > try to open current user

Error:  `'<=' not supported between instances of 'bool' and 'datetime.datetime'`

This is because https://github.com/odoo/odoo/pull/140629 added [1] in the
filter, but in certain cases, the `att.check_out` may not be present.

This commit fixes the above issue by filtering attendees who have
a check-out date.

[1]-https://github.com/odoo/odoo/blob/46f2a019bd141389233257f24f0ddae05b0fa008/addons/hr_attendance/models/hr_employee.py#L82

sentry-4616207347

closes odoo/odoo#141771

X-original-commit: b0cb1ad7b43a296b91377df80b30cbd3976553b4
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-11-13 14:38:36 +00:00
lejeune quentin fe20e29c1e [FIX] point_of_sale: Fix package to be able to upgrade iot kernel in debian bookworm
Installations from the current Debian Bookworm (12.0) on amd64 systems are experiencing problem that prevents
the kernel from being upgraded (e.g. when trying to upgrade to kernel linux-image-6.1.0-10-amd64)

closes odoo/odoo#141588

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2023-11-13 14:38:34 +00:00
FrancoisGe d93446a9bd [FIX] web: x2many shouldn't have virtualId in domain
Before this commit, if we have x2many fields which contain a virtual
record with the many2many_tags widget, a server error will occur during
a search because the "name_search" will be performed with a domain containing
a virtualId.

This commit will therefore filter the virtualId when generating the domain
used by the "name_search".

closes odoo/odoo#141269

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-11-13 14:38:34 +00:00
FrancoisGe f833e7e052 [FIX] web: x2m not editable inline with save & new
Before this commit, in a form view with an x2many in non-editable list mode,
creating a record by clicking on "Save&New" allows it to be edited inline
despite the list view not being editable. The purpose of this commit is
to prevent this from happening.

How to reproduce:
- Go to a form view with an x2many field in non-editable list mode
- Add a record
- Edit the new record
- Click on Save&New
- Edit the new record

Before this commit:
    The new record is in edition in the list view

After this commit
    The new record is not in edition in the list view

Part-of: odoo/odoo#141269
2023-11-13 14:38:34 +00:00
FrancoisGe ad7be43149 [FIX] web: boolean field toggle in editable list
Before this commit, in an editable list view (or in x2many), you need
to click twice on a boolean field to change its value. The first to set
the record to edit and the second to toggle the value.
The purpose of this commit is to simplify this flow by only requiring one click.

How to reproduce:
- Go to a form view with an x2many in editable list mode that contains a boolean field.
- Click on the boolean field of the first record

Before this commit:
    The record goes to edition and the value of the field has not changed.

After this commit;
    The record goes to edition and the value of the field has changed.

closes odoo/odoo#141153

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-11-13 14:38:33 +00:00
Gabriel de Paula Felix (gdpf) a2e823858b [FIX] microsoft_calendar: problem creating event for another organizer
Before this commit, with the synchronization with Outlook active, it was not possible editing the organizer of an event to a different user than yourself or even creating a new event with a different organizer because Outlook didn't accept the change.

After this commit, it is possible creating a new event with this characteristic and changing the event's organizer to a different user too. Changing the organizer will delete the current event and create a new one, and creating a brand new event will create the event directly with the different organizer.

closes odoo/odoo#140820

Task-id: 3450045
X-original-commit: 81601d5
Related: odoo/enterprise#50080
Signed-off-by: Arnaud Joset (arj) <arj@odoo.com>
Signed-off-by: Gabriel de Paula Felix (gdpf) <gdpf@odoo.com>
2023-11-13 14:38:31 +00:00
Mathias Mathy (MAMA) addbc01c15 [FIX] delivery: Alter name on duplicate
Main Changes:
    Precise (copy) in the name of a duplicate of a delivery carrier
Before:
    When we duplicate a delivery carrier, the name of the copy is
    exactly the same as the name of the source
After:
    When we duplicate a delivery carrier, we append ' (copy)' at the end
    of the name for the copy

closes odoo/odoo#140540

Signed-off-by: Mathias Mathy (mama) <mama@odoo.com>
2023-11-13 14:38:30 +00:00
Miquel Raïch dcbeb6419e [FIX] mrp: add super() to some compute methods
Due to commit https://github.com/odoo/odoo/commit/31861330642c7cab116f14694cd1f85b2ccd6e98, the cases where code == 'incoming' are not handled if you have mrp module installed.

closes odoo/odoo#136021

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-11-13 14:38:28 +00:00
qsm-odoo 1ae10492df [FIX] web: make AutoComplete's value optional
The recent use of owl AutoComplete component in the website builder
broke some things (see [1]). This commit handles this bug:

Steps to reproduce:
- Go to /web?debug=1
- Go to the website app
- Enter edit mode
- Drop the text-image snippet
=> Traceback

This was because the AutoCompleteWithPages extension of website was
inheriting the AutoComplete props whose "value" prop was not optional
but was not used for this case.

This commit goes the easy way: make the original prop optional with the
default value being the empty string.

[1]: https://github.com/odoo/odoo/commit/86a9171ec7790aa09f2b9a50dcb26deb029e8bed

closes odoo/odoo#141751

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-11-13 13:20:12 +00:00
Didier (did) cfeef1472f [FIX] mail: cache online and offline getter
Before this PR online and offline cache getter where called when not needed.
This PR move the code inside the onWillRender hook to cache the results and
avoid useless computation of getters.

task-3572093

closes odoo/odoo#141750

X-original-commit: 57aa00893cc47456d5eb39f429c83c4069ab0d7e
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-11-13 13:20:11 +00:00
Brieuc-brd 6492739199 [FIX] website_slides: button_box, useless margins
Prior to this commit, there was an unwanted margin before the "Go to
Website" button in `button_box` located in the modal window of the
course parameters.

This commit removes this margin to maintain consistency with the
`button_box` layout.

task-3580610

closes odoo/odoo#141671

X-original-commit: 5530c846bf4c4b79c5e79e943c6859843a53187b
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-11-13 12:06:46 +00:00
Daniel Kosky (dako) 1535123383 [FIX] l10n_ke_edi_tremol: foreign vat numbers
When submitting invoices with a foreign partneer using the fiscal
device, the device will throw an error when the VAT number is not
formatted as per the Kenyan VAT number. In this case, we should only
send the vat number when it matches the format of a Kenyan VAT number.

opw-3557736

closes odoo/odoo#141628

X-original-commit: de77cefd3bbad7e9c56d60ba446156a05331ebf9
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Daniel Kosky (dako) <dako@odoo.com>
2023-11-13 12:06:45 +00:00
Jorge Pinna Puissant d1fed769d6 [FIX] base, test_assetsbundle, web: multiple broken XML files in assets
When there are multiple broken XML files in an assets bundle. During the
bundle processing, a template containing the parsing error message is
returned for each XML file that is broken.

Before this commit, each of the returned templates had the same name,
raising another error ("Template already exists in module").

Now, all the returned templates has unique names.

closes odoo/odoo#141568

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-11-13 10:31:46 +00:00
vlst 7c617cc30c [FIX] point_of_sale: remove this from tours
After the refactor of pos tours all classes in the tours are
removed. The problem is that some instances of `this` were still
kept. This is obviously wrong. In this commit we fix the issue.

closes odoo/odoo#141404

Signed-off-by: Adrien Guilliams (adgu) <adgu@odoo.com>
2023-11-13 10:31:45 +00:00
Pratik Raval (PRRA) 30047d89b9 [FIX] survey: fix form view issues
Before this commit:
1) The `certification` field was visible when `scoring_type` was set to
'No scoring'.
2) The `description` field of the Badge in form view was not taking the full
width of the sheet.

After this commit:
1) The `certification` field will be invisible if `scoring_type` is set to
'No scoring'.
2) The `description` field of the Badge in form view will take the full width of
the sheet.

Task-3367524

closes odoo/odoo#141120

X-original-commit: 094b2c53e8065de383d35bd0725e247345289867
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2023-11-13 10:31:45 +00:00
qsm-odoo 1bbcd098f1 [FIX] website: prevent the header to be broken after CTA edition
The header call to action button template was extended by other ones
based on classes that can be changed using the Odoo editor. So if you
changed them, saved then toggle those other template options... you
broke your header.

closes odoo/odoo#141694

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2023-11-13 08:41:44 +00:00
Nicolas Viseur (vin) 31566dfe29 [IMP] l10n_my: add tax report
Adds the SST-02 tax report to the Malaysian
localisation

Task id # 2868179

closes odoo/odoo#140030

Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
2023-11-13 07:26:00 +00:00
Christophe Monniez bbb126b7a5 [FIX] packaging: increase vm memory
When building the windows package, the build process can be accelerated
by increasing the virtual machine memory.

closes odoo/odoo#141730

X-original-commit: 88f2f374897f12c950b9f398715e3da8245332f6
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2023-11-12 07:49:06 +00:00
Odoo Translation Bot b61c1ac0b3 [I18N] Update translation terms from Transifex 2023-11-12 00:21:23 +01:00
Louis (wil) b4b4842718 [I18N] web: remove unfortunate wording
Administrators sometimes machine-translate Odoo into their own language.
In this respect, we should avoid ambiguous wording* that could be poorly
machine-translated.

\*: in this case, the onomatopoeia "Poof!" was misinterpreted by a
machine-translation as a British slur.

opw-3590503

closes odoo/odoo#141723

Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
2023-11-10 21:23:24 +00:00
Brice bib Bartoletti 83d551e24f [FIX] l10n_eu_oss: OSS tax on root company only
The aim of this commit is to make the OSS feature instanciate the taxes
on the the root company .

Context: currently, when a company has a branch, the OSS feature tries
to instanciate the taxes on both the root company and the branch
company.
This was brought up by a constrains that prevents you from instanciating
2 tax with the same name on the same company.

Before the commit:
The feature tries to instanciate the OSS taxes on both the root and
branch company.

After the commit:
The taxes are only instanciated on the root company.

closes odoo/odoo#141347

Task-id: 3573252
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-11-10 13:46:57 +00:00
Brice bib Bartoletti 6a729b3f13 [REF] l10n_eu_oss: correct setUpClass
Part-of: odoo/odoo#141347
2023-11-10 13:46:57 +00:00
Jorge Pinna Puissant afc8dde97a [FIX] base, web: log correctly error in assets
Since [1], when an error exists in an asset, the assets raise a not
found exception. The issue, is that, there is no feedback for the
developer to find the error.

Now, a new console log with the error details is shown.

[1] : bf3b6b0b8b

closes odoo/odoo#141705

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-11-10 12:33:40 +00:00
Fernanda HernándezandMoisés Lopéz 4af024de5b [REF] account: Sum rank for merge partner
* Sum rank fields if the partner is merged

It will help to increase the rank of both records and have a better ranking

closes odoo/odoo#141690

X-original-commit: afb5c915c5bc566628ed5283a6e434e123caaaf1
Signed-off-by: William André (wan) <wan@odoo.com>
Co-authored-by: Moisés Lopéz <moylop260@vauxoo.com>
2023-11-10 12:33:39 +00:00
Xavier-Do 0a8f326397 [IMP] web: improve missing map reporting
If a .map is missing (outdated) the error message will report

    'min' expected in extension in non debug mode

when the problem is actually that map are not generate through this
route.
If the attachment corresponding to a .map is not found, it
was most likely garbage collected.

Change the message to:

    .map should have been generated through debug assets, (version
    5eff983 most likely outdated)

closes odoo/odoo#141469

Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-11-10 11:31:42 +00:00
Ritika Rathore b34c04a7c1 [FIX] project: fix hover on the assignees of a task portal
Steps:
- Install Project & Website
- Go to Website Module
- Click on Tasks
- Now on hover multiple assignees

Issue:
- On the hover of the mouse, this problem appears when we are viewing multiple assignees .

Cause:
- There is list in which we mapped assignees & reading from the 1st index.

Fix:
- List execute from 0th index in assignees list.

Task-3495253

closes odoo/odoo#141430

X-original-commit: 61ac7a392eca48b978c9aeb8575c3509607366b1
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-11-10 10:18:10 +00:00
Louis (wil) b6b093b06f [I18N] base: fix bad translations
closes odoo/odoo#141704

Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-11-10 08:31:43 +00:00
Paolo Gatti (pgi) 84c7ab8c23 [IMP] l10n_co_edi: New Taxes on non-healthy products
Enterprise PR: odoo/enterprise#49584

Task link: http://www.odoo.com/web#id=3569752&model=project.task
task-3569752

closes odoo/odoo#141684

X-original-commit: e087801ec67658474669f73e249dafef410fa258
Related: odoo/enterprise#50498
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Paolo Gatti (pgi) <pgi@odoo.com>
2023-11-09 16:19:41 +00:00
Morgane (morm) 5232ec6a7a [FIX] web: missing caret in some fields (settings)
This commit fixes the missing caret in some of the selection fields inside
the settings.

It is not possible to fix it another way than adding a `:not` targeting
the settings `formView`, because the `formView` css rule is overriding any
css in settings.
The caret was also hidden in the `datepicker` field.

This commit also change the `$-down-arrow` variable to a global one,
`$o-caret-down`.

task-3451370

Related to task-3326263

closes odoo/odoo#141672

X-original-commit: e01d4211cd36bd1a7d4ad190c89d3c966ec3e41e
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-11-09 14:51:23 +00:00
Roland van Eeden 3bf5f9eee6 [CLA] signature for Row042
closes odoo/odoo#141637

X-original-commit: 83c23291a1b7c2f1ed6c258d1923ba18042f0bff
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-11-09 14:51:22 +00:00
MerlinGuillaume cdcdee40f4 [FIX] base: error when setting a too big default value for integer
Setting a default value for an integer that is greater than that allowed
by a 32-bit integer raises an error when we save a new record so it
isn't clear that the issue comes from the default value

Steps to reproduce:
1. Install Contacts and Studio
2. Go to Contacts and open any contact
3. Toggle Studio and add an integer field in the view
4. In the Studio sidebar, set the default value to 3 000 000 000
5. Save and close Studio
6. Create a new contact, give it a name and try to save the record
7. An error is thrown

Solution:
Raise an error if we set an integer field's default value out of the
bounds of a 32-bit integer

opw-3360160

closes odoo/odoo#141339

X-original-commit: 85978e4c6fb1199f5e6ec4dce5c45b9f09be9b77
Signed-off-by: Guillaume Merlin (megu) <megu@odoo.com>
2023-11-09 14:51:21 +00:00
Michael (mcm) 6a30ab1353 [FIX] web: mount on detached element
Before this commit, a component couldn't be mounted on a public widget
that wasn't yet attached in the dom.

closes odoo/odoo#141665

Signed-off-by: Samuel Degueldre (sad) <sad@odoo.com>
2023-11-09 13:38:43 +00:00
Josse Colpaert af2b0eb73f [IMP] l10n_es, l10n_es_edi_sii: add DUA taxes + some cleanout of taxes
We have 2 different invoices for importation: The trasitoria from
let's say the customs (through the transport company) and the
importation invoice coming from the vendor.

For SII and the register, nothing needs to be sent for the importation,
but for the trasitoria we also need to register the base amount from
the viewpoint of the customs.

That is why we added a tax that is actually a group of taxes composed
of undoing the base amount and adding the tax, so the line will just
have the tax amount, but we are still informed about its base.

We also added the products with those taxes by default, so the user
can easily encode the trasitoria that way.

By default the extra-community fiscal position will not map to import
taxes anymore, but to nothing and the

We also updated some other taxes:
- The term included was put in the csv, while the tax is not, so we
just removed it
- We split the exempt taxes, so the user has the different cases
by default.
- The Exempt not subject case, handled a total corner case, so we
added a new tax to handle the case of Exempt Non Deductible
- Modify tax grid for account_tax_template_s_iva_e to mod303[120]

We also changed the name of the fiscal position Reglas de Localizacion (TAI)
as it has nothing to do with Canary Islands in itself, but with services/goods.

opw-3395186

closes odoo/odoo#139514

Signed-off-by: William André (wan) <wan@odoo.com>
2023-11-09 11:10:54 +00:00
Josse Colpaert 78c745c84d [IMP] account: do not override demo product taxes already set
This way we can more easily define products in demo or data
that need specific taxes.

We needed to filter out the taxes not belonging to this company
as the many2many does not filter them out.

Part-of: odoo/odoo#139514
2023-11-09 11:10:54 +00:00
Odoo Translation Bot 593ac17031 [I18N] Update translation terms from Transifex 2023-11-09 11:30:34 +01:00
Louis (wil) 68b4dfc2bb [I18N] *: import translations
closes odoo/odoo#141655

Related: odoo/enterprise#50484
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
2023-11-08 20:48:14 +00:00
Rodolpho LimaandNicolas Bayet 049a0edbba [FIX] web_editor: dependency errors in iframe bundle
Before this commit, some assets of the
"web_editor.wysiwyg_iframe_editor_assets" bundle could not be loaded
because of unmet dependencies.

The loading of such modules failed silently because the module loader
waits for the "DOMContentLoaded" event in order to replace the DOM's
content by the error report, and such event is not triggered by the
wysiwyg's iframe.

This commit removes unnecessary assets from the mentioned bundle and
solves the dependency errors.

closes odoo/odoo#141591

Signed-off-by: Nicolas Bayet (nby) <nby@odoo.com>
Co-authored-by: Nicolas Bayet <nby@odoo.com>
2023-11-08 15:39:48 +00:00
Aaron Bohy 1983ec11d0 [FIX] web: kanban: disallow to quick create if cannot create
Before this commit, a grouped kanban view with create="0" on the
root node would still allow to quick create record in columns (i.e.
the "+" icon would still be displayed). However, clicking on it
would most likely raise an AccessError as the user isn't allowed to
create records.

This commit restores the pre 16.0 behavior, which is to disallow
quick creation if the user can't create.

Task 3559638

closes odoo/odoo#141631

X-original-commit: 775475aaed6ea88f54a6530b81f35f3114431716
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-11-08 14:36:29 +00:00
abd-msyukyu-odoo 708573b0f5 [FIX] web: prevent command palette deadlock
Impacted versions:
16.0+

How to reproduce:
- create a lot of articles in Knowledge (i.e. 3000+)
- click twice on the `Search Articles` fake search bar in the Knowledge Form
  view

Current behavior:
- the command palette does not open
- the command palette is broken and won't open again (even with the `CTRL+K`
  shortcut)

Expected behavior:
- the command palette open once and should not break even if the user clicks
  multiple times.

Technical explanation:
- The promise given to the `onWillStart` hook of the `command_palette` can
  sometimes never be resolved by design (see `KeepLast`). i.e.:
  - `setCommandPaletteConfig` is called `onWillStart`
  - `setCommandPaletteConfig` is then called as a result of the `SET-CONFIG`
    bus event
  - the first promise will never be resolved since it uses a `KeepLast`,
    therefore `onWillStart` will never be resolved either.
- In `command_service`, the variable `isPaletteOpened` is set to `true` before
  the command palette dialog is actually mounted.
- If `onWillStart` is never resolved, the component will never be mounted, and
  as such the dialog can never be closed, therefore `isPaletteOpened` stays
  `true` forever resulting in a deadlock preventing any further opening of the
  command palette.

The issue can be resolved by adding all `KeepLast` promises in a race, which is
what `onWillStart` should actually be waiting for, since it will be resolved as
soon as any `KeepLast` promise is resolved.

task-3554068

closes odoo/odoo#141613

X-original-commit: 6b5fc71e67569b93b699090b225eea147ef463d2
Related: odoo/enterprise#50466
Signed-off-by: Francois Georis (fge) <fge@odoo.com>
Signed-off-by: Damien Abeloos (abd) <abd@odoo.com>
2023-11-08 14:36:27 +00:00
aliya cb10615fd2 [FIX] account_peppol: fix peppol ready view
Currently, it's not possible to open invoices from the peppol ready list view. This commit fixes that, adding form in the view_mode.

closes odoo/odoo#141258

Signed-off-by: Laurent Smet (las) <las@odoo.com>
2023-11-08 14:36:26 +00:00
aliya 0899e069bc [FIX] l10n_*: add partner bank demo data
When trying to send a demo peppol invoice,
a user gets an error about the missing recipient bank.
The user then needs to set the invoice back to draft,
create the bank, save changes, before being able to send the invoice via Peppol.
To make the demo process smoother, this commit adds a `res.partner.bank` record
for every demo company that is eligible for peppol.
However, it can be useful in general, so these are added in the community l10n modules.

Part-of: odoo/odoo#141258
2023-11-08 14:36:26 +00:00
aliya 098939b20a [FIX] account_peppol: peppol_move_state
One flow wasn't considered in the PR that added a ready state:
- A user unchecks BIS3 XML generation and sending via Peppol in the send & print wizard
- `peppol_move_state` is set to `ready`, even though it's not possible to send it without the XML file, so it queues forever

This commit adds a `skipped` state. If the XML file is not generated, the `peppol_move_state`
is changed to `skipped` and the user needs to manually regenerate attachments to send the invoice via Peppol.
Also, the BIS3 checkbox shouldn't be deselected automatically when peppol checkbox is deselected.

Part-of: odoo/odoo#141258
2023-11-08 14:36:26 +00:00
Martin Trigaux 3135699792 [IMP] *: update links to 17.0
closes odoo/odoo#141622

Related: odoo/enterprise#50472
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2023-11-08 13:34:06 +00:00
hungbui 8ed44d4767 [IMP] *loyalty: using free product display name
** before commit:
When create a free product reward, reward and sale order line
description use product's name so if many reward are variants of others,
the description will be the same. It make portal user confusing when
they chose reward in portal
**after commit:
the description will include display of product so that will contain
name of variants's attributes

closes odoo/odoo#141551

X-original-commit: 5619e8ce6b543c2b639860e8822f5d1bb4fcbeb0
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-11-08 13:34:05 +00:00
Saurabh Choraria 90f235fcef [FIX] base: raise ValueError when user enters wrong path
When the user tries to add properties field in domain of a model
without property name the error occurs.

To reproduce the issue:
- Install knowledge module.
- Go to Settings > Technical > User Defined Filters.
- Enter a name, add 'Knowledge Article' as model and then add domain
[('article_properties', '!=', False)].
- Click on save button and then on refresh button below code editor of domain.
- The traceback will be generated

Error: IndexError: list index out of range

The issue is occurring because we are getting single element
in path over here -
https://github.com/odoo/odoo/blob/f4e60765db57fe3612f267e8fa44d10ccf5ff107/odoo/osv/expression.py#L649
but we are trying to access path[1] due to which IndexError is occurring
over here -
https://github.com/odoo/odoo/blob/f4e60765db57fe3612f267e8fa44d10ccf5ff107/odoo/osv/expression.py#L683
and here -
https://github.com/odoo/odoo/blob/f4e60765db57fe3612f267e8fa44d10ccf5ff107/odoo/osv/expression.py#L687

The condition is also wrong over here -
https://github.com/odoo/odoo/blob/f4e60765db57fe3612f267e8fa44d10ccf5ff107/odoo/osv/expression.py#L683-L684
in which we are checking length of path is not equals to 2 and then also
we are trying to access path[1], due to which ValueError becomes a dead code.

To fix this issue 'and' is replaced with 'or' in that condition.

sentry-4499339271

closes odoo/odoo#141533

X-original-commit: da41853fc93a60a0a05083d79f0bb08f429cded9
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
Signed-off-by: Saurabh Choraria (sauc) <sauc@odoo.com>
2023-11-08 12:14:50 +00:00
Renilkumar Kajavadra b706dbc29a [FIX] product: prevent traceback on removing quantity of product in quotation
When user removes the quantity of product and tries to confirm the product
in configure wizard,
a traceback will appear.

Steps to reproduce the error:
- Go to Sales > Configuration > Settings
  > Product Catalog > enable Variant Grid Entry
  > Pricing > enable Pricelists (Advanced price rules)
- Go to products > pricelist > open any pricelist > Add a line
  > set value of Min. Quantity
- Create new Quotation > Select that pricelist > Add a product
  > Select a product that has variants (ex. Conference Chair)
  > In configure wizard, remove quantity > Confirm

Error: A traceback appears:
"TypeError: '<' not supported between instances of 'NoneType' and 'float' "

https://github.com/odoo/odoo/blob/fe79e1b5fdc408d55bbb3ac11209163436c1fa2c/addons/product/models/product_pricelist_item.py#L319
Here, when user removes quantity of product,
qty_in_product_uom will be None.
So it will lead to above traceback.

sentry-4547178082

closes odoo/odoo#141523

X-original-commit: 09ff54f1d90be5ef5f2e76deaa481f263c6c75c9
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-11-08 12:14:49 +00:00
Jorge Pinna Puissant 174301ef0f [FIX] web: scroll to selected tab in settings page
Before this commit, in the settings page on mobile mode, when swiping
between the different apps, on the app selector the current app stay
selected on the right corner. The selected app will stay on top of the
other apps, and the app selector itself didn't move.

Now, when swiping between the different apps, the app selector moves to
force the current app to be in the center of the selector.

closes odoo/odoo#141524

Task-id: 3489756
X-original-commit: d35bddfc2cab706d19d33c3335bbae54acd27fbf
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-11-08 08:54:11 +00:00
Hugo Carlier (Huca) 1220b3e6f8 [FIX] timesheet: avoid traceback at timesheet install if missing uom
This commit avoids a traceback when trying to install hr_timesheet post
to "hours" uom deletion.

Steps
=====
- Install module sale_management
- In Settings > Sales > Product Catalog section, activate the option
Units of Measure
- Go to Units of Measure configuration menu
- Remove the unit of measure "Hours"
- Install hr_timesheet

Issue
=====
A traceback appears indicating: "Cannot update missing record
'uom.product_uom_hour'"

Cause
=====
Since
https://github.com/odoo/odoo/commit/ab76c421c279b26195396b61e66b3e8853785226,
deletion of system uom is prohibited. An exception exists for uom
"Hours" that can be deleted without warning. This exception is removed
inside hr_timesheet as this uom is needed in this module. However, it
can still be deleted prior to hr_timesheet installation.

When it is deleted, the installation of hr_timesheet raises a traceback
as the data file hr_timesheet_data tries to access and update this
record.

Fix
===
Before updating the record uom "hours" in the data file, a call to a
method ensure_iom_hours is made. This method recreate this uom if it
does not exist in the database anymore.

task-3551315

closes odoo/odoo#141572

X-original-commit: 0d520e5e7c4b8b17ab1865a3010bbce87a71ec62
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-11-08 05:31:20 +00:00