Commit Graph
164467 Commits
Author SHA1 Message Date
Pratik Awasthi c8ee4e645b [FIX] project: fix project tour description
Steps:

- Install project
- run project tour

Issue:

- no description while adding the column

Cause:

- the description was not present in the project tour for column

Fix:

- added description for adding a column in the tour

task-3388985

closes odoo/odoo#133047

X-original-commit: a3f12bcebf66e57212ce0e6d4b46f986ae6c9c33
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-08-26 12:32:05 +02:00
Gurupreet Singh 0aab0bf13e [FIX] sale_project: fix tasks stat button traceback
steps:
-install sale module.
-create product with product type as course
-Generate a sale order containing the newly created product.
-link the sale order to any project task, and then attempt to view the tasks
 stat button  by clicking. However, encounter an unexpected traceback or error
 message during this action.

issue:
In the sale module quotation view, the traceback is occurring when clicking on
the tasks stat button

fix:
Improved action_view_task method in sale_order model to handle missing sales
order lines with 'service' products. Set default project ID when no suitable
sales order line is found, preventing errors and ensuring smooth functionality.
Refactor involved using conditional expressions for better readability and
maintaining default behavior.

task-3436556

closes odoo/odoo#132981

X-original-commit: 10838145c0981e46221b2cbf65b2c4ce84c3b8c7
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-08-26 12:31:56 +02:00
Dhrumil Shah f985996acd [FIX] sale_project: fix quantity_percentage field editable in list view
Before this commit quantity_percentage field was not editable in list view

Issue:
- when trying to edit quantity field in milestone , it's not editable in list view

Fix
- when trying to edit quantity field in milestone it becomes editable by making
  field readonly false

task-3444728

closes odoo/odoo#132958

X-original-commit: 562a454731326a054f8f4c54e8350a2faf1c1c7f
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
2023-08-26 12:31:50 +02:00
Loan (LSE) 21b5508f30 [FIX] point_of_sale: cashdrawer does not open in direct device
Connecting a cashdrawer to an ePoS printer in direct device ( NOT with
an IoT box) will not automatically open the cashdrawer as it would be
intended when paying with cash.

This happens due to the fact that we check that the printer connection
is "connected" which is not the case with direct device as it use the
default value in the setup which is "disconnected".

opw-3470241

closes odoo/odoo#133216

X-original-commit: 339a76885db0f2034bae21eec76d0127d2733205
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
Signed-off-by: Loan Sens (lse) <lse@odoo.com>
2023-08-25 18:50:21 +02:00
Guillaume (guva) 701fd8538a [FIX] account: setup bank wizard validation
When adding a bank account via the setup wizard,
an User Error is raised ("Incompatible companies on records")
Since 0479b2b594,
`check_company` is set to `True` on
`SetupBarBankConfigWizard.linked_journal_id`, but
the model has no `company_id` field.
Therefore in `BaseModel._check_company()`, no
company is found and we raise the error.

Steps:

- Go to accounting dashboard
- Make sure the "onboarding" banner is not removed from the view
- Click on "Add a bank account" on the banner
- Try to create a new one (bottom right of the wizard)
- Enter an account number, select a bank and validate
-> Error is raised

opw-3473184

closes odoo/odoo#133214

X-original-commit: 8d9c0c27d389ecd21a5c32ebba1e8da14316b6c0
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: Guillaume Vanleynseele (guva) <guva@odoo.com>
2023-08-25 18:50:17 +02:00
Martin Maes 6ed9da235c [FIX] mrp: workorder list view traceback
When opening the list view of workorders, a traceback was triggered.
The problem was that parent was not defined when not in a view form.
Checking if parent first exists solves the problem

closes odoo/odoo#133213

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-08-25 18:50:12 +02:00
Antoine Guenet 5996d98e66 [FIX] mass_mailing: hide the Mail Debug tab
The Mail Debug tab is confusing for users and should only be used by
people who know what can or cannot be expected from it. It is not
providing a good preview of the e-mail's rendering since the HTML it
displays is not meant to be rendered by a browser but by all sorts of
e-mail clients. This means that some things that render properly in it
won't necessarily render properly in some e-mail clients, but also
likewise that some things that don't render properly in it will in fact
render as expected in e-mail clients. This is why it's only available in
debug mode but since many users routinely enable debug mode to get
access to hidden features, this is not enough to prevent them from
reporting issues that are not issues.

closes odoo/odoo#133208

X-original-commit: 240ee9deb898f4346a9bc66548c881fc69e8b117
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-08-25 18:50:07 +02:00
Xavier ALT aa1b4e80e7 [FIX] mail: disable fetchmail servers on neutralize
When neutralizing the database we should disactivate all
fetchmail servers to prevent data loss (ex. when using POP)

opw-2758998

closes odoo/odoo#133199

X-original-commit: f1871890b79ee45c3addf467e544a06e534d1e9e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Signed-off-by: Xavier Alt (xal) <xal@odoo.com>
2023-08-25 18:50:02 +02:00
Sébastien Theys 4394618323 [FIX] mail: prevent long follower list overflow
Back-port of https://github.com/odoo/odoo/pull/130451

Adapt to 50vh instead of 95vh, as the button is quite in the middle of
the page for small heights, 95vh is still too much.

closes odoo/odoo#133193

X-original-commit: 9c3c44bcfd4bafd95428c8342abc917e0175f7e1
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-08-25 18:49:58 +02:00
zel-odoo 29d169274b [FIX] mail: picker shift-selection not reset pos
task-3473164

closes odoo/odoo#133192

X-original-commit: bfb1d9809cf5b04e22e581d38f7972e33ffa74d3
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-08-25 18:49:48 +02:00
Thomas Lefebvre (thle) aeb63498de [FIX] hr_employee: ensure desynchronization with user
Steps to reproduce:
-------------------
- create a new employee;
- link it to an existing user;
- save (trigger a validation error);
- remove the related user;
- save;
- change the email address of this new employee;

Issue:
------
The email address of the employee linked to the user
that we tried to link is updated.

Cause:
------
We don't sync the employee with the user if the user is `False`,
i.e. we don't update the employee's `work_contact_id` if the `user_id` is `False`.

Solution:
---------
Update the `work_contact_id` in any case.

opw-3475002

closes odoo/odoo#133191

X-original-commit: c2f2dc3e49ee7cd96d4da05f2236441e65090753
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
Signed-off-by: Thomas Lefebvre (thle) <thle@odoo.com>
2023-08-25 18:49:43 +02:00
Renilkumar Kajavadra a088edb163 [FIX] stock: multiple warehouses in replenishment
Company can have multiple warehouses,
when user open replenishment and company has multiple warehouses.
this will lead to below traceback.

Steps to reproduce the error:
- Go to 'Manufacturing' > Configuration > Settings > Enable Subcontracting
- Go to 'Contacts' > Create a Contact > Sales & Purchase >
  Open Subcontractor Location > Enable Replenish Location
- Go to 'Inventory' > Configuration > Warehouses > Create multiple warehouses
- Create a storable product > Create BoM > Set Subcontracting in BoM Type >
  Set already created contact in Subcontractors > Save
- Go to 'Purchase' > Set Subcontractor in Vendor > Add Product > Confirm Order
- Go to 'Inventory' > Operations > Replenishment

Error: A traceback appears:
'ValueError: Expected singleton: stock.warehouse(1, 2, 3, 4)'

https://github.com/odoo/odoo/blob/3864542914efcb9d4e3cabd3cfdeecb842e4f380/addons/stock/models/stock_orderpoint.py#L414
here, we can get multiple warehouses for a company.
So it will lead to above traceback.

sentry-4358838167

closes odoo/odoo#133178

X-original-commit: fd0e104c13fae2c2b34443502b88017ef98e5523
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-08-25 18:49:39 +02:00
Pablo Montenegro 45c378d84c [FIX] l10n_latam_check: check number if payment method is "New Third Party Checks"
Task Adhoc: 33137
Task Latam: 1073

Description of the issue/feature this PR addresses:
Check number is not required for payments when payment method "New Third Party Checks" but is needed to be required.

Current behavior before PR:
Check number is not required for payments when payment method "New Third Party Checks".

Desired behavior after PR is merged:
Check number is required for payments when payment method "New Third Party Checks".

closes odoo/odoo#133123

X-original-commit: 697f67b3c287947becf1124f98b075884ea8b444
Signed-off-by: Josse Colpaert <jco@odoo.com>
2023-08-25 18:49:34 +02:00
Jorge Pinna Puissant 0fd1790fb5 [FIX] web: kanban column counter when grouped by a date
Before this commit, if the kanban was grouped by a date field, and have
an aggregate, the column counter was always 0.

Now, the column counter has the correct value.

closes odoo/odoo#133114

X-original-commit: ea3809a480c29eafd6ab8433d5ae0e378b1d9967
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2023-08-25 18:49:30 +02:00
Maryam Kia 35ce7b9991 [FIX] mail: reduce effect duration of animation in stop recording voice message
closes odoo/odoo#133182

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-08-25 17:44:12 +02:00
niyasraphy 6fffa5e68f [REM] purchase_price_diff: remove module purchase_price_diff
before this commit, the module has been removed in this
commit: https://github.com/odoo/odoo/commit/a022fefbaf2f9c7041d2a790661d3cba64dfff51
and the translation file get left over without deleting

after this commit, the remaining file of module will be removed.

closes odoo/odoo#133166

X-original-commit: af783444ef0c149f602691a05cf32b5a8d852120
Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-08-25 17:43:57 +02:00
mehjabinfarsana f7c3c39a59 [FIX] point_of_sale: make confirmation message translatable
before this commit, the confirmation message
to use web printer was not translatable
to user language

after this commit, confirmation message will
be shown in user's language

closes odoo/odoo#133165

X-original-commit: 916b07f467bb6dad06f452b4437f01193209ff25
Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-08-25 16:00:33 +02:00
Adrien Widart (awt) 4cb09b80c8 [FIX] mrp: prevent bom cycle
To reproduce the issue:
1. Create two products A, B
2. Create two BoMs:
   - Product: A
     - Component: B
   - Product: B
     - Component: A
3. On one BoM, open the report "Structure & Cost"

Error: an Odoo Server Error is raised: "[...] maximum recursion
depth exceeded while calling a Python object"

The error occurs because of the cycle between both BoMs. There is
already a check for that in `:MrpBom.explode`:
https://github.com/odoo/odoo/blob/2a73890d304476833d76bac9a36ef92f12f267a3/addons/mrp/models/mrp_bom.py#L329
But it's too late in the flow. We should not be able to configure
such BoMs.

OPW-3200969

closes odoo/odoo#132806

X-original-commit: ba66f6b2ad3ea226779af23cdb4ddf223dd7fe85
Signed-off-by: Adrien Widart (awt) <awt@odoo.com>
2023-08-25 16:00:23 +02:00
niyasraphy 397d889805 [IMP] point_of_sale: option to print sales details from session
before this commit, if user need to take the sales details
of a pos session, user cannot directly take from the session
form in the pos backend.

if needed from the backend, user has to print from the
point of sale -> reporting -> session report

after this commit, the report will be shown also in the
pos session form, so that user can print the details
by clicking the report from print button in the top
without going to reporting menu.

closes odoo/odoo#132446

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-08-25 16:00:18 +02:00
Jorge Pinna Puissant c885e76152 [REF] *: remove unused parameter from record save method
Remove unused parameters from record save method :
- stayInEdition
- useSaveErrorDialog
- savePoint
- force
- closable

closes odoo/odoo#133152

Related: odoo/enterprise#46289
Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2023-08-25 13:59:00 +02:00
clesgow 6629bb802c [FIX] mrp: allow access to workorder tree view
Following 332c117, the list of workorders cannot be accessed from the
menu. This is due to the `parent` not being defined in this case. The
`column_invisible` clause is useful when using the tree view from within
a MO form.

Before the change, the `attrs` attribute (containing the
`column_invisible` clause) was overwritten in the inherited view that is
accessible from the menu. Now that each previously-attrs are separate,
we need to explicitely overwrite `column_invisible` to get rid of the
reference to `parent`.

closes odoo/odoo#133026

Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
2023-08-25 13:58:55 +02:00
althaf shaik 19d9473010 [FIX] account: handle error when send and print invoice without email template
This traceback raises when user tries to send an invoice without email template.

To reproduce this issue:

1) Install 'Accounting'
2) Open any existing invoice (not a draft one)
3) Click Send & Print button, an wizard will be opened
4) Make 'Use template' blank and give any subject
5) Click on 'send and print' button of wizard.

Error: "Expected singleton: mail.template()"

Note:- This traceback also appears when cron job
(model._cron_account_move_send(job_count=20)) runs.

On '_send_mails' method 'mail_template' variable is getting value from
'self.mail_template_id'. When user removes the template from wizard,
'mail_template' will be false.

See:
https://github.com/odoo/odoo/blob/ce2140fc73e46906acf3963d8bdf9694a499008a/addons/account/wizard/account_move_send.py#L461-L473

In the above usecase 'mail_template' is passed in 'get_default_email_from'
method as an argument, which is used to return
'_get_mail_default_field_value_from_template' method, in that
'mail_template' is used to 'render_field', in which ensure one is used.
It leads to above traceback.

sentry-4364692484

closes odoo/odoo#132847

X-original-commit: dde276cdac5124a5333d03e7a985a2c690d84080
Signed-off-by: Laurent Smet (las) <las@odoo.com>
2023-08-25 13:58:51 +02:00
Valentin Vallaeys (vava) f8d351aa43 [FIX] *: fix domain definition (not) in operator
* account, account_peppol, purchase_requisition, stock_delivery, base

There are some conditions in xml that uses `in` or `not in` for a check
with a string. These are replaced by `==` or `!=` operators,
respectively.

closes odoo/odoo#132798

Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
2023-08-25 13:58:46 +02:00
divy-odoo c6f8f78115 [FIX] website_*: replace manual tour with utils
In this PR,
Replace the manual tour steps with existing tour utils.

task-3279232

closes odoo/odoo#129317

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2023-08-25 13:58:34 +02:00
Jurgen (jugj) e4ec187fcb [IMP] hr_recruitment_skills: Add skills type to configuration menu
task-3423558

closes odoo/odoo#128403

Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-08-25 13:58:29 +02:00
Yannick Tivisse d6f574058e [FIX] hr: Use real group separator
closes odoo/odoo#105119

Related: odoo/upgrade#4879
Related: odoo/enterprise#32888
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2023-08-25 13:58:25 +02:00
Yannick Tivisse a93472a4b2 [FIX] l10n_ch: Unlink res.config.settings after init
Purpose
=======

If not unlinked, it could make it impossible to create a not null
constraint on columns that are installed after l10n_ch before the
garbage collector dropped the existing wizard, leading to an error
like the following:

Table 'res_config_settings': unable to set NOT NULL on column 'ebay_currency'

Part-of: odoo/odoo#105119
2023-08-25 13:58:23 +02:00
Yannick Tivisse 33c299a4fc [FIX] hr_recruitment: Fix _track_template override in case of record deletion
Part-of: odoo/odoo#105119
2023-08-25 13:58:22 +02:00
Yannick Tivisse c0aabf3682 [FIX] hr_contract: Fix access issue on structure type
Part-of: odoo/odoo#105119
2023-08-25 13:58:21 +02:00
Yannick Tivisse 4694bd1c03 [IMP] l10n_ch: Add new accounts to manage payroll
Part-of: odoo/odoo#105119
2023-08-25 13:58:20 +02:00
Yannick Tivisse 3c63396e07 [IMP] hr: Add multi company rule on contract types
Part-of: odoo/odoo#105119
2023-08-25 13:58:18 +02:00
Michael (mcm) 2e2703990f [IMP] web,*: remove unused legacy templates
task 3439226

closes odoo/odoo#133140

Related: odoo/enterprise#46278
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-08-25 12:21:27 +02:00
Simon Goffaux (sigo) 138c61afd1 [FIX] mail: Opening hidden chat window should swap
When we have more chat windows open than can be shown on screen, they
get hidden. When we try to open one of the hidden chat windows from the
messaging menu of the system tray, the chat window will unfold in the
hidden menu.

This commit fixes this issue by swapping the hidden chat window that is
being opened with the last visible chat window.

opw-3478264

closes odoo/odoo#133128

X-original-commit: 3649d3c0ba5a8999264b9746cfac0d9a4d1cc061
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-08-25 12:21:22 +02:00
Hubert Van de Walle (huvw) a9707ac099 [FIX] mail: only allow image operations for images in AttachmentViewer
First bug
=========

Steps to reproduce
------------------

- Go to A project task
- Upload an pdf
- Preview the pdf
- Press on the "+" key

```
TypeError: Cannot read properties of null (reading 'offsetWidth')
    at AttachmentViewer.updateZoomerStyle
```

Cause of the issue
------------------

Some operations should only be called when the current attachment is an
image.

Second bug
==========

Steps to reproduce
------------------

- Go to documents
- Click on an image document
- Edit the "Tags" field and type +

The image is resized

Cause of the issue
------------------

In the documents app, the viewer is not fullscreen.
The keyboard actions should only be used when the attachment viewer is
focused. The onKeyDown was bound to the document.

Solution
--------

We can bind the `onKeyDown` to the AttachmentViewer.
Since we now need the viewer focused, we can use the autofocus hook.

opw-3456439

closes odoo/odoo#133126

X-original-commit: 7fa95127e55e21bcaf28191c872cd0a1b8a0a6a6
Related: odoo/enterprise#46270
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
2023-08-25 12:21:13 +02:00
Didier (did) 3bd65eadfa [FIX] mail: search for GIFs should match input
Before this PR, RPC in the search GIFs form could resolve in the wrong order and display outdated result.
This PR introduce the use of useSequential hook witch ensure that irrelevant RPC
are canceled.

closes odoo/odoo#133125

X-original-commit: 39fe84706e02ff7828d5098c9ec56aff274cba64
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2023-08-25 12:21:08 +02:00
Alexandre Kühn 0c3e66340d [FIX] mail: properly compare discuss models with toRaw
Before this commit, discuss models were compared with object
reference, e.g. `thread_1 === thread_2`.

This is unsafe with `owl.reactive()`, because it wraps the objects
in a Proxy, and different proxies may map to a same raw object.

This commit fixes the issue by defining `.eq()` and `.in()` methods
on discuss models, which makes comparison on raw value rather than
proxy/reactive one.

This PR also introduce "not" variants, e.g. `.notEq()`, which eases
readability by having "not" and "eq" next to each other.
These "not" variants must be used without optional chaining,
otherwise this gives the opposite result. For example:

```js
const [t1, t2] = [Thread.insert()];
t1 === t1     // true (OK)
t1.eq(t1)     // true (OK)
t1.notEq(t1)  // false (OK)
t2?.notEq(t1) // undefined => falsy (notOk)
!t2?.eq(t1)   // true (OK)
```

closes odoo/odoo#133065

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-08-25 12:21:03 +02:00
Nicolas Bayet 4cca73816f [FIX] mass_mailing: fix indeterminist test mass_mailing_code_view_tour
The tour `mass_mailing_code_view_tour` indeterministically fails:

When clicking on save in the mass_mailing form, it trigger multiple
call to `MassMailingHtmlField.commitChange`. The expression
`await this.props.record.update({[fieldName]: inlineHtml});` will
subsequently temporarily add the class `o_form_dirty`, after the steps
of `stepUtils.saveForm` have been consumed by the tour.

When a tour finishes, some python code (see
`ChromeBrowser._handle_console`) check that there is no
`.o_form_dirty` element in the DOM. As the class `o_form_dirty` will
temporarily be in the DOM:
- if the check happen before the class is added or after it is
removed, the test will succeed
- if the check happens right before the class is removed, the test
will fail
As the timing is indeterministic, the test is indeterministic.

This commit uses `discardForm` rather than `saveForm` (to avoid having
`.o_form_dirty` from being temporarily added upon save)

Using `discardForm` can make a traceback occurs because a `setTimeout`
callback is called trying to use a selection that is undefined because
the document has been removed at the time of the call.

For this reason, this commit also check that the existence of the
selection.

runbot-23605

closes odoo/odoo#132983

X-original-commit: f34d87ecb7772417f1dd8f3d8836c89ddb903de8
Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2023-08-25 12:20:58 +02:00
Jorge Pinna Puissant b1829d906b [REF] web, *: remove legacy MutexedDropPrevious
In our continued effort to remove legacy code, this commit replaces
the unique usage of the legacy MutexedDropPrevious util with the new
mutex util. The legacy MutexedDropPrevious has been removed.

Part-of task-id 3439226

closes odoo/odoo#132948

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-08-25 12:20:53 +02:00
Minh Hong 5873464b32 [FIX] l10n_vn: auto fill communication in bank application when scanning QR Code in invoice
Use the number "8" to define the header of communication in additional data.

Follow the EMVCo Merchant Presented QR Specification document: "If present,
the content of the data object value for IDs "01" to "08" shall be either ***
or a value defined by the merchant. The presence of *** indicates that the
mobile application is responsible for obtaining the necessary information.

Reviewed the Napas QR Specification of VietQR document. The number "8" means
Purpose of Transaction. And almost Bank Applications in Vietnam will use
the number "8" to auto-fill the communication on invoices to their applications.
Already checked with 4 bank applications, also 1 social application in Vietnam.

Closes #132479

closes odoo/odoo#133143

X-original-commit: 20d23b1206d0c47cbfd627f85b8c0144df552f10
Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
2023-08-25 11:00:10 +02:00
Samuel Degueldre 736acbf995 [REF] web, *: remove legacy date and datetime picker
*: mrp_subcontracting, project

This widget is no longer used and is simply dead code. This commit
removes it and references to it in assets bundles.

closes odoo/odoo#133139

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2023-08-25 11:00:05 +02:00
Pierre Rousseau 2d9f6fb324 [REF] web, *: remove legacy registry
*: website, website_slides

Part of task-id 3439226

closes odoo/odoo#133132

Related: odoo/enterprise#46272
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2023-08-25 10:59:55 +02:00
Pierre Rousseau 609a7b234b [REF] web, *: remove legacy storage
*: web_editor, website, website_sale, website_slides

This commit removes the legacy storage (localStorage and sessionStorage)
and replaces it with the storage coming from browser.

Part of task-id 3439226

Part-of: odoo/odoo#133132
2023-08-25 10:59:54 +02:00
Miquel Raïch fd53a6bac6 [FIX] base: deleting selection fields of non tabled models
When a model selection record is going to be deleted, a _process_ondelete method is called in order to delete all the records of the corresponding model that have that selection. These records are obtained by calling _get_records, which uses a query that needs a table. Thus, we should avoid cases for non-abstract models that have _auto = False.

closes odoo/odoo#133118

X-original-commit: 408175a727ecbca88957a9d63d8ec28f3e54c9df
Signed-off-by: Raphael Collet <rco@odoo.com>
2023-08-25 10:59:48 +02:00
niyasraphy 603a7d0b2f [REM] note: remove module note
note app has been removed in this commit: https://github.com/odoo/odoo/commit/767dd420e62c3c6f0c536de551569050687519ea

and later the directory has been introduced in this commit:
https://github.com/odoo/odoo/commit/30300c373ad1c63a6cf8b035cae0785a09c6933f

after this commit, unused directory will be removed

closes odoo/odoo#133101

X-original-commit: 3c4001fa8c0842965bac64ace978e38fba76c4dd
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2023-08-25 10:59:38 +02:00
aliya 0ecd38622f [FIX] l10n_ua: change the name of 973 account
This PR odoo/odoo#125747 missed the account 973, which is still not in Ukrainian.
This account should be translated as well.

closes odoo/odoo#133092

X-original-commit: 3b484521ae3d4d1de11ded40ef5528c5cc5eec8e
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2023-08-25 10:59:34 +02:00
Sébastien Theys 994ca05047 [REF] mail: tests: keep using contains whenever possible
In preparation to further remove `afterNextRender` and other slow
waiting operations.

closes odoo/odoo#133022

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2023-08-25 10:59:28 +02:00
niyasraphy 63102bc841 [FIX] point_of_sale,*: fix template syntax errors
* point_of_sale, pos_loyalty, pos_restaurant

before this commit, syntax error exist in point_of_sale,
pos_loyalty and pos_restaurant modules.

* export translation of above modules
* check odoo log file

errors in the log:

* Opening and ending tag mismatch: input line
* XMLSyntaxError: Entity 'nbsp' not defined
* Opening and ending tag mismatch: button line
* Specification mandates value for attribute disabled

after this commit, no error's wont be shown in
the log

closes odoo/odoo#132132

Signed-off-by: Joseph Caburnay (jcb) <jcb@odoo.com>
2023-08-25 10:59:23 +02:00
Lois Rilo c1cc54eee2 [IMP] stock: add hook method to control skipped procurements
closes odoo/odoo#129389

Signed-off-by: William Henrotin (whe) <whe@odoo.com>
2023-08-25 10:59:18 +02:00
dasz cf33b80aca [IMP] hr_holiday: accrual refactoring.
Refactoring of the accrual computation methods and views. There are also
2 new features: custom carry-over date and allocation time:

Custom carry-over date:
Previously, an accrual plan was always evaluated on the 1st of january
to decide if days were lost or postponed to next year. Now the user can
choose any recurring date in the year for that evaluation

Allocation time:
Previously the days were given at the end of the accrual period, meaning
an employee had to work the whole period to get his days. Now there is a
choice between accruing at the start or at the end of a given period.

Simulation:
On an allocation of type accrual, changing date_from or
accrual_plan launches the calculation of the days to allocate. This lets
the user know how many days the allocation would give to an employee and
lets him eventually change that number. After saving the record the flow
resumes like before. There is no more need to create fake allocations.

Additional tests written and some existing tests have corrected values /
parameters to still test same feature but be correct with the new
functioning.

task 3060724

closes odoo/odoo#112383

Related: odoo/upgrade#4597
Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
2023-08-25 10:59:13 +02:00
Pierre Paridans a2c222520d [FIX] web: darkmode switch display on small screen
This commit fixes the collapse between the User Menu's Dark Mode check
box and its label on small screen.

Follow-up of odoo/odoo@49176fe372 .

opw-3474193

closes odoo/odoo#133115

X-original-commit: 85ce415d756a454fb4c35588883cd23c1e7365a2
Related: odoo/enterprise#46268
Signed-off-by: Romeo Fragomeli (rfr) <rfr@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
2023-08-25 08:32:37 +02:00