83 Commits
Author SHA1 Message Date
Gauthier Wala (gawa) 250a616446 [FIX] l10n_syscohada,account: remake coa visible
The COA should be visible, so existing db won't crash.
Indeed, it is used in the Selection field of the config settings.
As the field does not exist, the users get an error.
We instead don't let a user apply the Syscohada template to a
company that does not already have the COA.

opw-3893013
opw-3891587
opw-3891028

closes odoo/odoo#163350

Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2024-04-26 17:18:01 +00:00
Gauthier Wala (gawa) ffcf2ee1a3 [FIX] analytic: plan's applicability don't work without companies
If you create an applicability and remove the company field,
they are never used.
An applicability like this should be valid for all companies.
We put a 0.5 value for the company field so an applicability
so it has a lesser priority than other fields.
Same idea as the distribution models.

opw-3847415

closes odoo/odoo#162152

Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2024-04-26 15:42:57 +00:00
Gauthier Wala (gawa) d0510dff87 [ADD] l10n_* : add all localizations modules for taxes for SYSCOHADA countries
All these countries use the chart of accounts that is defined in l10n_syscohada.

This commit then add the tax report for each localization, and taxes to be able to fill it.

task-2841655

closes odoo/odoo#136155

Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2024-04-23 17:09:48 +00:00
Gauthier Wala (gawa) 994aef18c5 [FIX] account: analytic_distribution on counterpart of transfer
To reproduce:
- Create 2 lines with the same balance but only one has an analytic_distribution (of 100% on an analytic account).
- Create a transfer of accounts for these
=> The counterpart has a distribution of 100% or no distribution.
Indeed, we simply put the distribution of the last line.

It makes no sense: analytic "balance" is generated and does not reflect the transfer move.
We should make a prorata of the distributions of the lines to transfer.

closes odoo/odoo#161982

X-original-commit: dcfe607d48021902c88b79a571a15559434d1592
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-04-16 10:32:31 +00:00
Gauthier Wala (gawa) 42fa2e2257 [FIX] account: test_transfer_default_tax change of day error
If the move in the test is created at 23:59:59, and the wizard on
the next day at 00:00:01, the test will fail because the wizard
takes today as the date at creation.
We just add a freeze_time (for this test only, as the other tests
in the class don't have the issue).

Linked to runbot error 60478

closes odoo/odoo#159377

X-original-commit: d064068ff46ef8f84224f50c4c86922ae2004159
Signed-off-by: Cedric Snauwaert <csn@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-03-27 10:59:20 +00:00
Gauthier Wala (gawa) a5017cd7cd [FIX] l10n_es_edi_sii: certificate for aeat isn't valid anymore
Our certificate for aeat seems to not be valid anymore.
We don't have a replacement currently.
The flow is still tested with bizkaia or gipuzkoa (mostly just
different servers/addresses, but same flow/xml), where the
certificate is still accepted.

We remove this test that fail every day.

Linked to Runbot error 25907

closes odoo/odoo#159382

X-original-commit: ccd5ce7f0f106f68ce704cb032bcb754a480be14
Signed-off-by: Cedric Snauwaert <csn@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-03-27 09:12:49 +00:00
Gauthier Wala (gawa) 48e4737534 [FIX] analytic,account: groups are not defined in right module
The fields in analytic have a group which is defined in account.
We hide them in analytic module and show them in account with the right group.
We also show balance now, even if you don't have the group 'readonly',
because it's an information that is independent of credit/debit notion.

Linked to runbot error 59222 (will need to remove the group in the test)

closes odoo/odoo#159085

X-original-commit: e7e3ec8cb5e4f71ce1dbbd24485c3377c694e5eb
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-03-26 08:20:22 +00:00
Gauthier Wala (gawa) e70798f6cc [FIX] account: tax_dest_active invisible in one2many
In one2many, for the view, the attribute to hide a field should
be column_invisible and not invisible

closes odoo/odoo#157356

Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2024-03-12 18:14:56 +00:00
Gauthier Wala (gawa) 39c16212f2 [FIX] account: sorted on NewIds break
To reproduce:
- Install account_accountant
- Create an asset (monthly for example)
- Compute Depreciation
- Modify the date of the first entry to 2 months later
- Modify the date of the second entry to 1 month later (so same month)
=> Traceback

The problem is that sorted does not work with ids of NewId. We should
look at its _origin.
There is a PR that would try to fix it in general, but it's in master
(and is not sure to be merged https://github.com/odoo/odoo/pull/155850)

The problem only began to occur in 17.0 because of the changes of the
onchange function.

opw-3759153 (in chatter)

closes odoo/odoo#156874

Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
2024-03-11 08:35:05 +00:00
Gauthier Wala (gawa) bfa27f512c [FIX] account: taxes with amount_type 'group' are not well reloaded
To reproduce:
- Install l10n_it
- Go in settings
- Fiscal Localization => reload
- Go to the taxes
=> You will find taxes with [old] prefix

The issue comes that we want to consider that a tax has changed
if it has different repartition lines.
We don't consider taxes that are defined without repartition lines.
The template will have no lines, but the compute
on actual taxes will generate default ones.
It then considers that the tax has changed.

task-3777629

closes odoo/odoo#156974

X-original-commit: 55c09d3fab70d241174c44a9f3d123a01211730e
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2024-03-08 06:52:27 +00:00
Gauthier Wala (gawa) e24c53906a [FIX] sale_loyalty_delivery: test fail on product creation
Since https://github.com/odoo/odoo/commit/a54c304487429139c08f384d7b2b620b50cf6f83, sale_loyalty_delivery does not depend on stock anymore.
So, the type 'product' (and detailed_type) is not added to the selection.
The test does not fail on runbot because the module is never tested alone.
We should just change it to type 'consu'.

closes odoo/odoo#155263

X-original-commit: 88ebd8918c0ffdd9ae784967fe0de42a9299e09a
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-02-26 08:26:04 +00:00
Gauthier Wala (gawa) ae267389ed [FIX] l10n_pl: access right on l10n_pl_reports_tax_office_id
The model `l10n_pl_tax_office` has a group to be able to access it.
The Many2one that refers to it, `l10n_pl_reports_tax_office_id`,
does not.
Currently, it is not really an issue as the accounting's settings are invisible if you don't have the group, but it creates a warning in a test and is more robust

Linked to runbot error 24602, 24721

closes odoo/odoo#154294

X-original-commit: dba837afe72c9e8b3e3f8e9615ddb923227d3af0
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-02-16 08:58:21 +00:00
Gauthier Wala (gawa) c017f44f4f [FIX] tools: fiscal year of 30/12 is taken as 31
To reproduce:
- Put your fiscal year to the 30th of December (yes it's unlikely)
- Create an asset
- Compute depreciations
=> they are created for the 31th of December

It comes from the `get_fiscal_year` in `date_utils` which considers it as the case of the 28th of February

opw-3704466

closes odoo/odoo#153528

X-original-commit: cd0bb178441790e7e33c0d1c01b7ade82d4ab8c0
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2024-02-10 17:43:14 +00:00
Gauthier Wala (gawa) 59aae9767f [FIX] analytic: can't create plan with access.
You should be able to create analytic plans with analytic group.
But currently, you need Access Right's group.
We should put a sudo there.

closes odoo/odoo#151328

Signed-off-by: Habib Ayob (ayh) <ayh@odoo.com>
2024-02-07 09:18:50 +00:00
Gauthier Wala (gawa) 347ea9ee61 [FIX] l10n_in,account_audit_trail: access right issue
To reproduce:
- Go in admin user
- activate Audit Trail in the settings
- Log out
- Connect as demo
- Go to the audit trail report
- Activate the filter Update Only
=> Access right error

The demo user doesn't have the right access
for the domain of the filter.
We should hide this filter for these users

closes odoo/odoo#149783

Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2024-01-26 12:45:38 +00:00
Gauthier Wala (gawa) 24104cb0a0 [FIX] l10n_pl_jpk: Hide tab if not polish company
The tab PL Extra is visible if l10n_pl_jpk is installed and your
company is not polish.
This should not be the case

closes odoo/odoo#150199

X-original-commit: b5335d356d4d098b719e6bd8e966ac5847340f96
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2024-01-22 09:08:54 +00:00
Gauthier Wala (gawa) 9bce766bed [FIX] l10n_{ch,ee}: wrong account_sale_tax_id on template
Instead of replacing the default taxes, the key has been duplicated
in the dict. (0870357cc4)
So, instead of assigning the new tax, it is overriden by the old keys.
So, the old tax is still the one referenced in the template.

l10n_ee: the old tax has been deactivated, and the default_tax hasn't
been changed.

Added the tag to the test so it will be seen on merge next time.

Linked to runbot error 52792

closes odoo/odoo#146652

Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2024-01-09 23:04:43 +00:00
Gauthier Wala (gawa) 5506ca7479 [FIX] analytic: gross margin domain empty
To reproduce:
- Create a new plan with an account
- Add an analytic item with this account
- Go to the view of this account
- Gross Margin Button has a value
- Click on it
=> List is empty

The reason being that the view should not include account_id,
but auto_account_id

closes odoo/odoo#147080

Signed-off-by: William André (wan) <wan@odoo.com>
2023-12-21 13:01:15 +00:00
Gauthier Wala (gawa) 480dfc1538 [FIX] base_import_module: fix test sql import
The test tries to import data from an sql file.
The problem is that it is trying to import partners, but when
the test is ran with the l10n_co localization, one of the required
field is not filled.

We just change the model to import to avoid the issue with the
missing required field.

Linked to runbot error 32740, 32742, 32745, 32738

closes odoo/odoo#145708

Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
2023-12-12 17:03:40 +00:00
Gauthier Wala (gawa) a00200a947 [FIX] account: test switch of days
If we begin to run the test at 23h59m59s, the move date could be put
at a day and the freeze for the cron on the following day, and so,
make the test fail.
Let's just define the day explicitely.

Linked to runbot error 36224

closes odoo/odoo#145444

X-original-commit: 9206e16c84038f08606c045dcf138f72ef78aa4a
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-12-08 07:27:14 +00:00
Gauthier Wala (gawa) fae7a7e212 [FIX] l10n_lt: change default digits for Lithuania
The digits of the accounts of Lithuania's COA go up to 6.
It's currently defined to 1, which makes no sense.
We will change it to 6.

closes odoo/odoo#143986

Related: odoo/enterprise#51661
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
2023-12-06 11:22:05 +00:00
Gauthier Wala (gawa) 83efa5993e [FIX] analytic: plans without account but with subplan can appear
If we have an analytic plan without analytic accounts, but with
subplans that do have analytic accounts, we do want them to
appear in the widget.

Also changed a search in a loop to a read_group

closes odoo/odoo#142222

Signed-off-by: William André (wan) <wan@odoo.com>
2023-11-21 20:06:41 +00:00
Gauthier Wala (gawa) 100a8c0f8f [FIX] account: activate studio when seeing invoices
To reproduce:
- Install studio and account.
- Invoicing/Accounting, menu Customer > Invoices
- Activate kanban view
- Put filter "My Invoices"
- Enter studio mode

=> There is a traceback in the logs, even if not shown in the view.

When entering studio in kanban, a card with default values is created.
The problem was that the journal wasn't computed, and so, broke
the onchange_partner_id function
It was because move_type, while being in the default, wasn't in the view,
and so wasn't in the values given by the js.

closes odoo/odoo#140927

X-original-commit: 629176269614467c637543b11fc556a63ee70c5b
Signed-off-by: William André (wan) <wan@odoo.com>
2023-11-04 06:43:10 +00:00
Gauthier Wala (gawa) ffc001b4c3 [FIX] l10n_pl: name_get deprecated
Since https://github.com/odoo/odoo/commit/3c62ca1eb96d571b2b686b5caee370324c589ab4, name_get is deprecated.
We should replace it with a _compute_display_name.

Linked to runbot error 25698

closes odoo/odoo#139082

Signed-off-by: Laurent Smet (las) <las@odoo.com>
2023-10-30 16:41:37 +00:00
Gauthier Wala (gawa) 46a413605f [FIX] l10n_es_edi_facturae: test dependencies
The module does not depend on account_edi, but the test extends
the test class defined in it.
The problem only appears in saas-16.4, because before,
account_edi was auto-installed with account.

Linked to runbot error 24128

closes odoo/odoo#139363

X-original-commit: db4eba75ef8e9d584921615d72cf6ea4449554ac
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-10-20 23:37:48 +00:00
Gauthier Wala (gawa) a8e6bd7cd6 [FIX] account: add id to order of tax groups
Tax group are currently ordered by sequence only.
Only 2 localizations of ours have defined the sequence on them.
So, most of the tax groups have the same sequence.
The order of search made on them is thus undeterministic.
It can be seen when running the test test_generate_xml_sale with
l10n_ee_reports installed, it fails sometimes (1 in 50 to 100).
Because the invoice amounts are grouped and ordered by tax groups.

Linked to runbot error 24595

closes odoo/odoo#138890

X-original-commit: 7535c6091cb841a428ea0f4cc6d4bb1779e70346
Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-10-17 10:05:54 +00:00
Gauthier Wala (gawa) 1c781669b3 [FIX] l10n_pl_jpk: hide delivery date when not PL
The field l10n_pl_delivery_date should not be visible if we're not in PL.
In fact, delivery_date should have the standard behavior in Poland

closes odoo/odoo#138440

X-original-commit: 0056dcb17e212a627a83072bafd68af8e0b2c76e
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-10-12 14:44:52 +00:00
Gauthier Wala (gawa) b0f4296bfb [IMP] l10n_pl: merge l10n_pl_jpk into l10n_pl
Merge l10n_pl_jpk as it is a functionality that every user that uses l10n_pl should have.
Especially, since the fields will be necessary for the e-invoicing.
Also merge l10n_pl_delivery_date and delivery_date on account_move.
This means the module l10n_pl_sale_stock is not necessary anymore.

closes odoo/odoo#135595

Related: odoo/enterprise#47445
Related: odoo/upgrade#5152
Signed-off-by: William André (wan) <wan@odoo.com>
2023-10-10 11:07:48 +00:00
Gauthier Wala (gawa) 4a24d76170 [FIX] l10n_pl_jpk: rename table of tax offices
_name should have a separator ".", separating the model and the module.

closes odoo/odoo#135144

X-original-commit: e1672460399bc6ce53431450d24b6f345e062640
Related: odoo/enterprise#47293
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-09-13 03:37:57 +00:00
Gauthier Wala (gawa) 7582e66c71 [IMP] l10n_pl_{jpk/sale_stock}: Add fields necessary for JPK
For the JPK and the EDI, a lot of additional informations are needed.
We provide them in community, so it's available later for EDI.

The delivery date is needed in Poland, and we compute it if
sale_stock is installed. It will be done later for all localizations,
but not in stable, so we will merge it with the other ones later.

X-original-commit: 8b14d098a65b84a842514e644b262a0d714f4b48
Part-of: odoo/odoo#135144
2023-09-13 03:37:57 +00:00
Gauthier Wala (gawa) 4f3b6a1dfc [FIX] l10n_pl: tax report and tax changes for JPK
Some taxes and tax report lines are needed for the export of JPK
(and EDI that will be done later)

X-original-commit: c496d5b85d7ec226f4a28db95b07f747c6b6ec37
Part-of: odoo/odoo#135144
2023-09-13 03:37:57 +00:00
Gauthier Wala (gawa) 6c0d1e90ec [FIX] account: fix tour that is checking css value
This tour creates an indeterministic error, which is most
probably due to the fact that the css is sometimes not loaded when
we check it.
But this is not something that should be tested (especially in an
account tour), so we remove this step.
Removing this makes the tour useless, so we remove it.

Linked to runbot error 23583

closes odoo/odoo#131897

X-original-commit: 7d7535226332e766d1299b0d887bf7b21f34af88
Related: odoo/enterprise#45751
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-08-14 15:55:55 +02:00
Gauthier Wala (gawa) e8d9a21b5c [FIX] analytic: filter analytic distribution boolean inverted
- Create Journal Entries with analytic distribution
- Go in Journal Items list view
- Filter with 'Analyic is set'
=> The wrong entries are filtered

The problem is that the replacement of the domain for the search
has changed with a factoring of the function, which causes the
search replacement to occur with booleans, which is not needed.

closes odoo/odoo#130760

X-original-commit: 5d2accdf56ccd86c8797743f151ad80b614f0f77
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-08-04 09:43:20 +02:00
Gauthier Wala (gawa) 10467f323b [FIX] sale: distribution model used for confirmed order
To reproduce:
- Create a Distribution model, with an analytic distribution
 and an effect on Partner A
- Create a Sale Order, for Partner A
- Confirm it
- Add a line on this Sale Order
=> The new line does not get the distribution of the model

It couldn't be done before 16.0 because a compute would trigger when posting the sale order, because date_order was used for the default rules, and so would trigger it at wrong times.
Distribution Models don't use this date anymore, so the compute won't happen at wrong times.

task-3355886

closes odoo/odoo#130597

X-original-commit: 22fd34b0d8b944a7afd031b894d750a8291d0aba
Signed-off-by: Laurent Smet (las) <las@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-08-03 09:23:36 +02:00
Gauthier Wala (gawa) c83b7e80a4 [FIX] account: frequent tax undeterministic result
- Create a db with account installed (and a random loca)
- Run the test "test_quick_edit_total_amount"
=> The test may fail (undeterministically), especially the first time

The reason is that we don't have an order in "_get_frequent_account_and_taxes"
So, if we have the same number of lines with the same account and with a tax or without one,
we can not guarantee which tax is considered the most frequent.

We now define the order by saying that we should take the taxes into account,
so lines with taxes take precedence on lines without

Linked to runbot error 23385

closes odoo/odoo#130326

X-original-commit: bdb21983371fb62b01275471e8ca7099219e1053
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-08-02 05:11:10 +02:00
Gauthier Wala (gawa) b6dfc455cc [FIX] account: Fix tour in multi enterprise
The tour failed as soon as there were several companies installed.
The tax created could be assigned to the wrong company, and as such,
not used in the tour.

Linked to runbot error 22953

closes odoo/odoo#130281

X-original-commit: a4ad0a8f36f4091da5de99c5a54326dce3784817
Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2023-08-01 23:52:36 +02:00
Gauthier Wala (gawa) 3c631d4378 [FIX] l10n_pl: tax report sequence and formula
Fix to the commit https://github.com/odoo/odoo/commit/cd799a6bdf7ac6897ca9561342f6e39bea1dba25
The problem being that the formula shortcut of the line account_tax_report_line_do_przeniesienia
has not been emptied, which makes the upgrade create a second balance expression,
which is prevented.
We also have problem with sequences (for example the line account_tax_report_line_kasy_rejestrujace).

It makes it that people having upgraded or created
a db before the commit can't update the module or upgrade to upper versions.

[TBG](https://upgrade.odoo.com/web#id=791&action=178&model=upgrade.request.traceback.group&view_type=form&cids=1&menu_id=107)
[upg-868024](
https://upgrade.odoo.com/web#id=868024&active_id=868024&model=upgrade.request&view_type=form&cids=1&menu_id=107)
[upg-845419](
https://upgrade.odoo.com/web#id=845419&active_id=845419&model=upgrade.request&view_type=form&cids=1&menu_id=107)
[upg-765801](
https://upgrade.odoo.com/web#id=765801&active_id=765801&model=upgrade.request&view_type=form&cids=1&menu_id=107)

closes odoo/odoo#128808

X-original-commit: 0e76fa6c9a6644bb3dc98b1d04be492b907c2318
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-07-18 10:20:08 +02:00
Gauthier Wala (gawa) f15134fa7d [FIX] account: tour had wrong taxes and was too fast
Added a saveForm to wait for the compute/onchange to proc on the save
Added a tax, to be independent of localizations
Changed the product, to have a product with an amount that won't be
impacted by difference of default decimal place from localizations.

Fixes runbot error 22093

closes odoo/odoo#126883

X-original-commit: 2678f490648f81488c8635f2ebc01591935a48f1
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2023-06-30 01:33:10 +02:00
Gauthier Wala (gawa) 8fc62fbdb4 [FIX] l10n_ro: upgrade of tax report could break
The aggregation_formula were removed for no good reasons in https://github.com/odoo/odoo/commit/81941965aef29a23d6815cc26b42acf8b38f1922.
It causes issues with a second expression related to balance,
but with different ids.
We also re-add the sequence. They were removed in https://github.com/odoo/odoo/commit/a717e5b86d19be6555be5682b7ee8ff2f1483da4 but as it adds some report lines, we need to resequence all lines.

related to runbot error 17572

closes odoo/odoo#126819

X-original-commit: e37b795f1346e0d62ddf91f5e757f6e65d05c1b1
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-06-30 01:32:47 +02:00
Gauthier Wala (gawa) e779f51f09 [FIX] analytic: view all plans on view subplans
To reproduce:
- Activate analytic accounting
- Create an analytic plan
- Click on Subplans
- Create a Subplan
- Come back to the list view of subplans (with the breadcrumb)
=> The new plan does not appear

The children_ids are not recomputed, so we inverse the logic.

task-3359643

closes odoo/odoo#125062

X-original-commit: c0bc5aedce0aa601e402c368fdf139c722a0fca7
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-06-15 02:38:04 +02:00
Gauthier Wala (gawa) f7e3ffedb0 [FIX] sale: Some followers of moves should not be added
- Create a Deferred Revenue Model on a Current Liability account
- Create a Sale Order yourself (User 1), with Salesperson User 2
- Create the invoice from it
- Remove the salesperson from the invoice and add User 3 instead
- Change the account to the Revenue Model's one
- Post the invoice
- Post the deferred revenue created
=> User 2 is follower of the entries generated

The problem is that the context comes from the sales order, and
contains a `default_user_id` in the context.
The solution provided is to remove it from the context given, as
it serves no purpose (the invoices are already created).

opw-3141495

closes odoo/odoo#121581

X-original-commit: c3df8fc0da2f359ac0a47695ef37aa8869063092
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-05-17 10:34:10 +02:00
gawa-odoo dba7056c71 [FIX] analytic: allow filtering based on analytic distribution
Currently, the field `analytic_distribution` does not appear in
the filters, while it should (to be able to filter `account_move_line`
for example).
We added Json to the filterable fields. If not overriden, it will
search on it like a String.

We also have to add a non-stored field to be able to define a search
function for `analytic_distribution`, to be able to search based
on the keys of the json.

closes odoo/odoo#121223

X-original-commit: 3d3e6847230d5cc9cd61a9bf83bef403a5b4b3ec
Signed-off-by: William André (wan) <wan@odoo.com>
2023-05-12 20:52:06 +02:00
Gauthier Wala (gawa) 4523a250e0 [FIX] account: avoid wrong taxes quick encoding
How to reproduce:
- Activate l10n_be and go on a Belgian Company
- Activate Quick Encoding on Bills
- Setup account 600000 with taxes 12% (Sales) and 12% M (Purchase)
- Create a Bill
- Put 112 as the amount Tax Incl.
=> Both taxes are put on the line, which makes no sense, resulting
a sale tax on a purchase document.

It was forgotten in https://github.com/odoo/odoo/commit/85d89a986b6adcf9d0ac0ce57599d4b2678b59a3

closes odoo/odoo#120486

X-original-commit: 04287db0045eefed1b03e04d745874caf206731f
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-05-03 22:09:45 +02:00
gawa-odoo 15b2c690e1 [IMP] account, l10n_ar: do not put default product taxes on aml
If there are no default taxes on product or account, or
predictive guess, there should be no default taxes on a new aml.
So the `account_sale_tax_id` (and `account_purchase_tax_id`)
field only concern new products (as specified in the tooltip
of the field).

In Argentina, there is a constraint so all lines should have
a tax. So, we need to add default tax on their demo products.
We also add it to the products in account demo to have taxes
by default on demo invoices for all localizations.

task-3045026

Part-of: odoo/odoo#115222
2023-05-02 14:47:02 +02:00
gawa-odoo 7b082b2e27 [FIX] account: prevent wrong type tax on move
- Create an account of type current asset
- Add him a Sales Tax and a Purchase Tax
- Create invoice
- Add a line
- Remove the taxes from this line
- Change the account to the one you created

=> A purchase tax is applied to the line.
It should not happen, so we prevent it.

closes odoo/odoo#117539

X-original-commit: 85d89a986b6adcf9d0ac0ce57599d4b2678b59a3
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-04-04 12:10:58 +02:00
gawa-odoo 8d25a5b18c [FIX] account: add category to analytic lines
When creating analytic lines from bills or invoices, the category is not put on them.

opw-3214062

closes odoo/odoo#117056

X-original-commit: 7729b5bf006d0a988ce84e2f953749866fae7b16
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-03-29 23:37:33 +02:00
gawa-odoo ab1ccfada5 [FIX] sale: distribution with same account in account and distrib
- Activate analytic accounting
- Create a Sale Order, with an analytic account for the whole order
- Add a line with a distribution containing the same account (100%)
- Create Invoice From this Order

=> The distribution on the account for the invoice is of 100% and
not 200% (the sum of the order's account and distribution).

The problem is that on the dict that we're returning, the key is a string

closes odoo/odoo#116617

X-original-commit: 9ecf263d4124b186b55e50ab025acb7541043d3a
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-03-27 09:39:58 +02:00
gawa-odoo cca15af64a [FIX] analytic,account: analytic distribution should be indexed
We created an index in the mixin, but the `init` was never called
as there was a missing `super` in `account_move_line`.
We also remove the index in `sales_project`, as it now is done in
the mixin (and we don't want different names for it).

closes odoo/odoo#115948

X-original-commit: 98a556031180cf72680b4f082a5c5d7b491742b7
Signed-off-by: William André (wan) <wan@odoo.com>
2023-03-20 20:14:50 +01:00
gawa-odoo ae8bf42ca6 [FIX] account: round using line company instead of env
To compute the analytic amounts, we used the user company currency
to know the precision to use to round, for the comparison.
We should instead use the line's currency for the amounts, and the
decimal precision for the distribution.

closes odoo/odoo#114997

X-original-commit: a94517702c47aa9259c0cbea9b4763ab7501176f
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-03-13 14:20:19 +01:00
gawa-odoo 66a4d0b4d5 [FIX] analytic: Add (copy) to name of analytic account's copy
When duplicating an analytic account, we want to make more explicit
which account is the duplicate and which one existed before.

task-3202027

closes odoo/odoo#114931

X-original-commit: d499b9da8ba1b46db0671f14658a55095c68921d
Signed-off-by: William André (wan) <wan@odoo.com>
2023-03-10 14:38:51 +01:00
gawa-odoo 4fc16e94a7 [FIX] l10n_de{,_skr03,_skr04}: change tax report lines name and order
The regulation for the German tax report has changed.
We adapt it and its export to the regulation (that changed in Jan 2023)
The reference for this tax report comes from https://www.bundesfinanzministerium.de/Content/DE/Downloads/BMF_Schreiben/Steuerarten/Umsatzsteuer/2022-12-21-muster-der-vordrucke-im-umsatzsteuer-voranmeldungs-und-vorauszahlungsverfahren-fuer-das-kalenderjahr-2023.pdf?__blob=publicationFile&v=1
and from elster.de

We can see some lines are wrong.
Some categories are also not well-ordered.
Some indentation should be done better.
Some taxes had to change, as the report lines they were pointing to should not exist,
and the tax row had to be added
Some taxes should point to a tax report line when they were not.

A migration script has been added to transform the tag of the amls who have '+68'/'-68' to the same for '60'.
The reason being that this tag was used for the `account.sales.report`.

opw-2767535
opw-2974560
task-3082233

closes odoo/odoo#113864

X-original-commit: 5ef2970f6197b6e4353a96389f68e8ea29fb998c
Related: odoo/enterprise#37615
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-03-01 18:43:01 +01:00
gawa-odoo 29a8d65013 [FIX] base: add German states
We need German states when formatting the 'SteurNummer'.
So we provide it so the user can select his, instead of having to
 create them by hand.

task-3056694
opw-2974560

closes odoo/odoo#111932

X-original-commit: 6c8f3dc4fdffa167680f3a234a13b028c2f54a3b
Related: odoo/enterprise#36703
Signed-off-by: William André (wan) <wan@odoo.com>
2023-02-03 22:52:14 +01:00
gawa-odoo da51ddc790 [FIX] l10n_de_skr04: fix number cash difference accounts
Following the DateV SKR04 standard, we should not use the
automatically created codes for these accounts.
So we have to create them by hand to specify the code.

closes odoo/odoo#111801

X-original-commit: 59ac0ef1b67387a8400226bf9f9382ea804dce3f
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-02-03 09:28:52 +01:00
gawa-odoo 16e8f484eb [IMP] analytic: distribution model view tree multi-editable
We should allow distribution models to be to be editable top.
Then we need a new button to be able to see the form view.

t-3029083

closes odoo/odoo#111413

X-original-commit: e6b0315dc4886c40014a9d46128e841ea171b20c
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-01-31 12:56:24 +01:00
gawa-odoo 36d7d4b956 [IMP] l10n_pl: translation and clean tax tag name
Translated in English and added .po for Polish translation.
Cleaned tax names to make them more in line with new taxonomy.
Tax tag names have been changed to avoid long sentences as names.

closes odoo/odoo#109611

Related: odoo/enterprise#35651
Signed-off-by: Laurent Smet <las@odoo.com>
2023-01-18 17:37:44 +01:00
gawa-odoo a599320259 [FIX] analytic: search for analytic account with ref
An analytic account was searchable in an invoice with the Ref field.
Before this commit, it is not possible, while it should.
So we add it to the search domain.

opw-3119740

closes odoo/odoo#110135

X-original-commit: f5e24b8f7ba4291b0e5ea970da948215b83e6184
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-01-17 14:17:06 +01:00
gawa-odoo 4f9a5a73f4 [FIX] account_report: change formula's update of expression
How to reproduce:
- Have a report line with a custom creation with a 'balance' label
- Replace the expression by an `account_code_formula` in the xml
=> The 'balance' expression does not exist anymore in the xml,
so the ORM removes it, and a new one is not created.

We changed the update so only 'balance' label expressions are changed:
- if we have an expression with an xml_id, we remove the expression and
recreate a new one.
- if we don't (custom created or coming already from a formula shortcut),
we just update its values.
We also created a way to remove a formula shortcut (making it falsy will
unlink the expression that was linked to it)

closes odoo/odoo#110119

X-original-commit: d01a7b76bee4471444eeedacc05bd52fe9c0399c
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-01-17 14:16:42 +01:00
gawa-odoo 023473d70c [FIX] account: update fiscal position when updating taxes
The fiscal positions for the new taxes should also be
provided, when we create the taxes, so the clients
don't have to manually input them.
Only fiscal positions that exist in the db and with new
taxes are created.

Related: https://github.com/odoo/odoo/pull/108571
task-3116246

closes odoo/odoo#109637

X-original-commit: 362b152cee6252ee6531c15a3e07b5917b36bc45
Signed-off-by: William André (wan) <wan@odoo.com>
2023-01-11 14:31:09 +01:00
gawa-odoo 629afd2ac5 [IMP] l10n_pl: update Poland localization
CoA: account types, tags for Cash Flow, account groups, define better default accounts, ...
Tax Report: changed the order, created some lines,... based on the infos to be given for the JPK export
Taxes: some tax scope

task-2713260

closes odoo/odoo#109409

X-original-commit: cd799a6bdf7ac6897ca9561342f6e39bea1dba25
Related: odoo/enterprise#35564
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2023-01-09 12:23:02 +01:00
gawa-odoo 670ef3d505 [IMP] analytic: make some fields of applicability rules invisible
When filling a Sales Order applicability rule line, the financial
account prefix is useless, as it will not be used.
Thus we can make it invisible in the case of business_domain corresponding to sales and purchases.

task-3040927

closes odoo/odoo#105014

Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2022-12-07 18:28:53 +01:00
gawa-odoo 8bf6bee153 [IMP] analytic, *: block validation with mandatory plan
* = {account, sale, purchase, hr_expense}
When a plan is mandatory for SOL, POL or expenses, the flow should still be blocked when pressing the button, and not only when creating analytic lines.

We add the info in the context of the button, so automatic flows are still not blocked.

When the applicability rule requires a mandatory analytic distribution, raise an error upon :
- confirming PO,
- sending or confirming SO
- approving Expense Report by manager.

t-3040929

closes odoo/odoo#107166

X-original-commit: 8623a7850288828759db125b1054b0fed6b6b135
Signed-off-by: William André (wan) <wan@odoo.com>
2022-12-04 17:58:01 +01:00
gawa-odoo 4d7a9eea13 [FIX] analytic: field None should not validate model
If an aml has no product, it should not trigger a model that has a product.
So, we now define the fields that have to be checked on the model, instead of just being the ones given as parameters.

The way the field `company_id` impacts the model has also been changed.
The idea is that a model with a company specified should be better than a model without one.
But we also want that a model with 1 valid rule and no company is better than one with only a good selected company.

closes odoo/odoo#107165

X-original-commit: feff1a8a056f1fbbc852f7cf164e73abf83c4cc9
Signed-off-by: William André (wan) <wan@odoo.com>
2022-12-04 17:57:58 +01:00
gawa-odoo 6e7f6c7c1e [IMP] l10n_de_{skr03,skr04}: add right accounts to tax groups
There are specific accounts that should be used for tax groups for
each version of the CoA

t-3059059

closes odoo/odoo#105770

X-original-commit: 453cf0b6d659d01ba2370a08f8259a0a46f80634
Signed-off-by: John Laterre (jol) <jol@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-11-15 18:25:45 +01:00
gawa-odoo 422ab51460 [FIX] analytic: traceback hr_expense invoicing analytic distribution
Steps to reproduce the issue:
- Have the modules `hr_expense` and `account` installed (not `account_accountant`)
- Create a new expense
- Change the category
- Click on analytic distribution field
=> Traceback

The issue comes from the fact that the account field is present but empty (we don't have accounting).
For the old and new account field, we have 2 undefined values.
We then do a shallowEqual of these, where it will compare length attributes, so traceback.

To solve it, we just give it a value false to the field instead of being undefined for the comparison.

closes odoo/odoo#105593

X-original-commit: face5b8f9134fc052ea09742667a610b508a4886
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2022-11-10 23:17:19 +01:00
gawa-odoo cee5a63349 [FIX] analytic: remove useless query
This query itself is useless and its result is never watched.

X-original-commit: 1e15dff32d224ed0dafc32d1b7bab37c56d58fba
Part-of: odoo/odoo#105259
2022-11-08 01:28:16 +01:00
gawa-odoo 2ea10e2942 [FIX] analytic: constraint multi-company on distribution model
Before this fix, the constraint did not prevent changing the company to a bad one on an existing field.
We also remove the GROUP BY clause as it is useless.

X-original-commit: 2d5879cd8d84edcc16c55622b86c724f70055b03
Part-of: odoo/odoo#105259
2022-11-08 01:28:16 +01:00
gawa-odoo 732bc1fc7c [FIX] analytic: accounts from another company were shown in widget
The accounts shown in the widget could be shown while being in the wrong company.
Previously, only the plans were limited by the company.

closes odoo/odoo#105241

X-original-commit: 97d1afb9ff0ca88dfb0b6a8ed152e39d3db77279
Signed-off-by: William André (wan) <wan@odoo.com>
2022-11-07 23:39:58 +01:00
gawa-odoo 2769d08b02 [IMP] project_purchase, project_hr_expense: change groupby of counts
We could do the Group By directly with sql instead of doing the computations by hand afterwards.
As we're already doing a sql query, we can include it here.

closes odoo/odoo#104933

X-original-commit: 3cec95d0a18f3c343db36bb0700936833e98f7fc
Related: odoo/enterprise#33594
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-11-04 10:54:57 +01:00
gawa-odoo 972171968d [FIX] account: wrong computation smart button on analytic account
The smart buttons were computing the number of aml instead of the number
of invoices/bills with the account.

We now compute back the number of moves.
We also changed it so it is consistent with the view,
so it computes the number of moves with move lines that have the distribution
instead of the analytic lines with the account.

X-original-commit: 84f3ee28156721cea0b530b92ede36fad58c5db8
Part-of: odoo/odoo#104933
2022-11-04 10:54:56 +01:00
gawa-odoo cb0ff3bc64 [FIX] project_purchase: analytic_distribution and recordset
In `_compute_analytic_distribution`, we're dealing with recordset and so, should iterate on it.
Also, the distribution expects an id, not the record.

closes odoo/odoo#104458

X-original-commit: d41d5ef7aebc9f65066ecf86939e3f60aa515539
Related: odoo/enterprise#33378
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-28 14:21:08 +02:00
gawa-odoo 98c2405a50 [IMP] l10n_syscohada: general improvement
Also correct mistake in name of RDC in manifest.
Modification in the COA (clearer name) + change made on some account about reconciliation, before this commit there was way to much reconcilable account, it's now corrected
Demo company modified
Menu item added

closes odoo/odoo#104440

Task-id: 2350061
X-original-commit: 0caa35df57061576ffb14252b08379a382e39ef9
Related: odoo/enterprise#33372
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-28 13:22:56 +02:00
gawa-odoo 43c870ab19 [FIX] sale_project: fix smart button traceback for invoice/bill
Clicking on a smart button on the project button to access invoice/bill returned a traceback.
It was because the fields in the ORDER of the query don't appear in the SELECT with the DISTINCT.
We just remove the order of the query, as it serves no purposes here.

opw-3040389

closes odoo/odoo#104303

X-original-commit: 71a2b06b9b4205c34a3869ddc67dd6d840a5eccf
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-27 14:41:33 +02:00
gawa-odoo c3eb3021c1 [FIX] analytic: only show plans from the company
Before this fix, user could include accounts in the widget from another company than the object's one when in multi-company mode.
It could cause problems with validation too.

Now we take the company of the object when getting the plans (or the current company if no object's company).

t-3040926

closes odoo/odoo#104150

X-original-commit: 21d754ddafee653d9958443accda2de747caed53
Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
2022-10-26 14:05:59 +02:00
gawa-odoo 4e796124c5 [FIX] analytic: change index name to remove warning
We had an index with the same name as would be generated by the ORM.
Instead of putting index=True as it is a bit of an hack, we just change the name of the index.

closes odoo/odoo#103945

Issue: https://github.com/odoo/odoo/issues/103473
X-original-commit: 819fa66546fbb53b808711b38c3296406c45c717
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-24 16:12:47 +02:00
gawa-odoo b8dca3b174 [IMP] analytic, *: Json field for analytic distribution
The `analytic_distribution` field is a Json.
It was stored temporarily as a char.

Search is not available yet, so we do queries by hand when we need to search on keys.

Also added a constraint on account_analytic_distribution_model,
so we don't have models with accounts specific to a company when the model has no company or another company.
It would cause an issue when looking at the models from another company.

X-original-commit: 7064c95aa04e5138bb12ae97acfee04ebb67cc0e
Part-of: odoo/odoo#103097
2022-10-17 10:11:09 +02:00
gawa-odoo ba4b71427f [IMP] analytic,*: changes on applicability and make fields visible
Add choices for the business domain on applicability rules, so rules are more precise
Also put 'general' as domain from the view when it's what should have been.
Make analytic field visible since owl migration (for sale and purchase)

closes odoo/odoo#102461

X-original-commit: c5867d5009a7fb448fff1be487b9e9c3e7945d4b
Related: odoo/enterprise#32421
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-10 14:04:43 +02:00
gawa-odoo 6f707dc833 [IMP] analytic: show all children accounts on plan
On the smart button where you can see the accounts of the plan,
we want to be able to see all accounts of subplans too.
We also change the order of the analytic accounts, by plan's complete name then name.

closes odoo/odoo#102717

X-original-commit: a1f886e7babd6283e01eed686e043aabe72d7dd9
Signed-off-by: William André (wan) <wan@odoo.com>
2022-10-08 06:20:12 +02:00
gawa-odoo e0680fc7fd [FIX] account: prevent analytic distribution on all lines of invoice
Before the fix, the payable/receivable line would also receive the distribution.
The compute function will only add it to the lines of display_type 'product' (as before 7e34030).

We now also add it to taxes that don't have `use_in_closing`.

closes odoo/odoo#102486

X-original-commit: 5551f336b61a6d441f3ec5416f987d8a98c221ca
Signed-off-by: Florian Gilbert (flg) <flg@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-10-06 19:58:50 +02:00
gawa-odooandHabib 7e3403068f [REF] *: Analytic Apocalypse
The goal of this commit is to get rid of the analytic tags as they were confusing, serving tag purposes as well as distribution on analytic accounts.

Everywhere analytic tags were used as a distribution have been replaced with a new widget that will dispatch distribution on analytic accounts. If there was an analytic account field next to the tags, it has been included in the distribution.

Analytic tags that were used simply as information tags have been removed.

To fill the new widget, there are now 2 kind of rules that will help fill and prefill it.
The first are applicability: previous groups have been removed, and have by replaced by plans. Each account is required to have a plan. These plans define when they are available in the widget: a default applicability per plan and applicability lines that can specify rules following the context of the widget.

The second one are distribution models, that will replace previous default rules but follow the same principles. The accounts (and so the plans) that will be given by the distribution model can override the applicability rules from before.

closes odoo/odoo#98914

Related: odoo/upgrade#3885
Related: odoo/enterprise#30743
Signed-off-by: William André (wan) <wan@odoo.com>
Co-authored-by: Habib (ayh) <ayh@odoo.com>
2022-09-20 12:36:01 +02:00
gawa-odoo 9e2b7569a1 [ADD] l10n_ke: Create localization for Kenya
Added CoA and account groups for Kenya.
Added taxes for Kenya

task-2809108

closes odoo/odoo#91396

X-original-commit: ac95f9f961405ed6f6b24f08a8aab05a6561e410
Related: odoo/enterprise#27344
Signed-off-by: Florian Gilbert <flg@odoo.com>
2022-05-16 07:18:50 +02:00
gawa-odoo a0830a3b74 [IMP] l10n_pk: adding icon
Adding icon module with Pakistani flag

closes odoo/odoo#88810

X-original-commit: e043cf744fbe55434ebc32687a0a6a92dd11e0a5
Related: odoo/enterprise#26236
Signed-off-by: Olivier Colson <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-04-14 18:01:45 +02:00
gawa-odoo eb5785c095 [FIX] l10n_pl: fix tax report Poland
Instead of doing the difference between output tax and input tax, the tax report was doing the sum.
This commit fixes this computation without revamping the rest of the report

closes odoo/odoo#88774

X-original-commit: df0372a168db184c03fd901359fec6abd08f5bdd
Signed-off-by: Olivier Colson <oco@odoo.com>
Signed-off-by: Wala Gauthier (gawa) <gawa@odoo.com>
2022-04-14 15:11:38 +02:00
gawa-odoo 296e32fb5b [ADD] l10n_pk : creation of the module for Pakistan localization
Added a CoA that provides accounts needed for legal reports
Added taxes (sales taxes and service sales tax, even provincial)

Reports are in enterprise

closes odoo/odoo#81775

X-original-commit: a89e0f84f534ebafd0f13dbee7a65ed5551dafb1
Related: odoo/enterprise#23054
Signed-off-by: Olivier Colson <oco@odoo.com>
2021-12-22 00:12:52 +00:00