Commit Graph
64 Commits
Author SHA1 Message Date
John Laterre (jol) 6ba77562c0 [REV] account,l10n_*: remove company currency symbol in reports
This reverts commit d39396c728.

The feature was implemented in a rather rigid way,
and we think something more dynamic would be better.

closes odoo/odoo#115332

Related: odoo/enterprise#38208
Related: odoo/upgrade#4740
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
2023-06-15 17:35:42 +02:00
Maximilien (malb) 4b3d47b6a5 [IMP] l10n_lu: taxes
We want to invigorate a Tax Name Taxonomy so that tax names are as codified as possible. This allow for a better display on Invoice Description, and allowed us to implement a smart name_search.

In this PR, we change the tax name to be more clear for users

closes odoo/odoo#114597

Task-id: 3052677
Related: odoo/enterprise#37911
Signed-off-by: John Laterre (jol) <jol@odoo.com>
2023-05-11 18:24:53 +02:00
Claire Bretton (clbr) 82e1a2b1cb [IMP] account, l10n_*: add field invoice_label, field description back to initial purpose
Taxes have a `description` field that has been hijacked to
represent tax label on invoices. We want the description field
to be used for its original purpose, thus created a dedicated field
`invoice_label` in which we transferred `description` content.
We also make description translatable.
This is part of the Tax Taxonomy 2 rework.

Task: 3052677
Part-of: odoo/odoo#113236
2023-03-07 10:06:13 +01:00
william-andre d782b8b925 [IMP] l10n_*: convert CoA in new format
Converted using https://github.com/william-andre/transform_coa

closes odoo/odoo#110016

Related: odoo/enterprise#35836
Related: odoo/documentation#3336
Related: odoo/upgrade#4276
Signed-off-by: William André (wan) <wan@odoo.com>
2023-02-17 19:30:40 +01:00
aliya 413c49e478 [FIX] l10n_lu: fix tax report formulas
Some formulas in the LU tax report are incorrect. This commit fixes them according to the official rules.

task-3142146

closes odoo/odoo#110630

X-original-commit: d3315570db2ca929d7fc31832a53e22799c1bed2
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2023-01-21 18:34:50 +01:00
Nicolas (vin) d39396c728 [IMP] account,l10n_*: remove company currency symbol in reports
There is a lot of use case where reports are exclusively in the company
currency, or have columns only in this currency. In these case, showing
the currency symbol is redundant, takes space and makes the reading
slower.

With this change, we will avoid displaying the symbol in a variety of
use case where it is not needed.

Task id #2868674

closes odoo/odoo#109666

Related: odoo/enterprise#35671
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
2023-01-17 19:55:50 +01:00
aliya eed40c1865 [FIX] l10n_lu: reorder tax report lines
Somewhere during the reportalypse LU tax report lines got reordered. This commit rearranges the lines back to how they used to be in 15.0.

closes odoo/odoo#108733

X-original-commit: 97fe609b997989e11dc675a48c551e9f644d28f2
Signed-off-by: Josse Colpaert <jco@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2022-12-27 16:50:02 +01:00
aliya 91c99b6653 [IMP] l10n_lu: adapt tax report to 2023 updates
Luxembourg added new fields and modified some rules for VAT reports: monthly, simplified, and annual.
- Add new fields
- Adjust formulas

task-2993792

closes odoo/odoo#108472

X-original-commit: f5101ea5f5da4e27a1e44490231eb8cf28c47e08
Related: odoo/enterprise#35154
Signed-off-by: William André (wan) <wan@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2022-12-21 17:41:54 +01:00
aliya 40ac191644 [FIX] l10n_lu: fix the lines order in the tax report
With sequence gone, the lines are now ordered incorrectly in the simplified LU tax report.
Reordering the lines correctly.

closes odoo/odoo#102310

X-original-commit: 3a5cfeb0806bbfe5245c740378883eaf8618d743
Related: odoo/enterprise#32343
Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
Signed-off-by: Aliya Tastemirova (alta) <alta@odoo.com>
2022-10-06 10:42:51 +02:00
Camille Spiritus 78dfa2a07d [IMP] account : cash discount: set up default accounts and configs
The early payment cash discount functionality was merged in 16.0.

This PR allows for the behavior to be as localization specific as possible.

This concerns :

The tax computation (some countries leave it untouched after the discount, some countries discount it, and Belgium has a mixed behaviour)
The account in which the cash difference resulting of the cash discount should be put.
task- 2983913
related to #99572

closes odoo/odoo#102032

X-original-commit: 591757902dcdf1e3609d9c5ae23e2b134ee8e4da
Signed-off-by: Laurent Smet <las@odoo.com>
Signed-off-by: Camille Spiritus (casp) <casp@odoo.com>
2022-10-04 13:29:08 +02:00
Nicolas (vin) 77f3953e1a [IMP] account,l10n_*: cleanup reports menu items.
Following reportalypse, reorder the menu items in order to bring
some consistency to the report menu.
Also clean the menu items by removing all the menu items no longer
used since most reports are now selectable by going  on the generic
reports and then switching to localized ones.

Task id #2965755

closes odoo/odoo#99210

Related: odoo/enterprise#30854
Related: odoo/upgrade#3831
Signed-off-by: William André (wan) <wan@odoo.com>
2022-09-13 13:53:04 +02:00
Laurent Smet bedf191134 [IMP] account,l10n_*: Set 100 as default value for factor_percent in tax repartition lines
closes odoo/odoo#94125

Related: odoo/enterprise#28648
Related: odoo/upgrade#3695
Related: odoo/documentation#2557
Signed-off-by: Laurent Smet <las@odoo.com>
2022-08-25 19:56:56 +02:00
oco-odoo b7232b14b7 [IMP] account, l10n_*: Introduce unified reporting engine
This commit adapts account's model to the new report engine introduced for v16, and updates the data files accordingly.

account.report model is now declared in community, together with the other models used by the reporting. This is done so that the tax tags can properly be created by the tax report and used on tax templates. All the actual computation logic stays in enterprise.

See enterprise commit for full details.

Task 2524389

Part-of: odoo/odoo#94125
2022-08-25 19:56:55 +02:00
aliya 26b2472f49 [IMP] account: refactor account types
Task: 2856281

- Remove user_type_id, account.account.type model, internal_type
- Add account_type that is a simple selection field
- Move internal_group and include_initial_balance to account.account
- Because of these changes, type_control_ids on account.journal is also removed

closes odoo/odoo#93212

Related: odoo/documentation#2223
Related: odoo/upgrade#3595
Related: odoo/enterprise#28205
Signed-off-by: Cedric Snauwaert <csn@odoo.com>
2022-07-08 19:52:15 +02:00
aliya d915db431f [IMP] l10n_lu: add missing taxes to the tax report
Current: Some tax fields are missing from the tax report
Should be: missing tax fields should be added

Part of task ID: 2694161

[IMP] l10n_lu: add tag_names and improve tax calculation
Currently:
- Taxes 094 and 095 cannot be modified and added in line
- Calculation of tax 472 is not complete

Desired:
- Taxes 094, 095 have tag_name and can be modified
- Calculation of tax 472 is full

closes odoo/odoo#84177

X-original-commit: 7acd384ba62be945b360bccc11455ddbc6a32cb4
Related: odoo/enterprise#24150
Signed-off-by: Olivier Colson <oco@odoo.com>
2022-02-09 09:08:20 +00:00
william-andre dc88be7019 [REF] l10n_*: use xml hierarchic fields for tax report data
closes odoo/odoo#76675

Related: odoo/enterprise#21464
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2021-11-25 00:31:17 +00:00
Paolo (pgi) e21331c1eb [FIX] l10n_*: Review of tax groups, tax templates and their countries
Many changes involved several localizations.

Tax groups data files that were missing the country_id:
AR, AU, EC, ET, HR, HU, IT, JP, LU, MN, NZ, SI, UK, ZA

Account_data.xml files being renamed or split to account_tax_group.xml
AT, CH, CL, PE, SK

Tax templates that were missing tax group information:
CH

Tax groups missing that were added:
EC

Part-of: odoo/odoo#77295
2021-10-01 12:40:54 +00:00
John (jol) 0a9b42252f [IMP] l10n_lu: add codes to tax report lines
closes odoo/odoo#73382

Task: 2198395
Related: odoo/enterprise#19502
Related: odoo/upgrade#2640
Signed-off-by: Josse Colpaert <jco@openerp.com>
2021-09-01 20:57:07 +00:00
oco-odoo e3eeabe616 [FIX] l10n_lu: fix tax report lines' codes for XML export 2.0
When exporting the tax report's monthly xml with enterprise, the file wasn't accepted by the government in case 0% taxes were used.

Grid 033 is optional, and can be used for custom tax rates. If specified, it MUST always go with grid 403 (giving the tax rate) and 042 (giving the tax amount). In Odoo, we made the choice to use it for 0% taxes, so 403 and 42 will always be present, and always 0.

In community, grids number were missing on the lines' labels, and the codes (used to retrieve the value of each grid when generating the XML) were not correct.

closes odoo/odoo#70792

X-original-commit: add187862f627c4340ef7ca49d8a75e149cb12f5
Related: odoo/enterprise#18305
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-05-12 19:11:09 +00:00
wan fcdbb3c2f8 [FIX] l10n_lu: add taxes for ATN
Necessary Corrections for benefit in kind (ATN 17%) & Tax Report

task-2500543

closes odoo/odoo#69165

X-original-commit: 9c573d09a5f935d6cec5776c2dfc90a04732847c
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: William André (wan) <wan@odoo.com>
2021-04-13 10:28:14 +00:00
oco-odoo 7922e5d102 [IMP] l10n_*: set newly-introduced country_id field on chart templates 2021-04-01 12:09:20 +00:00
jbw dcf8fcd17e [IMP] l10n_be, l10n_lu: enable intrastat taxes per default
Seamless intrastat reporting involve intrastat to be active by default

closes odoo/odoo#55230

Task: 2217469 - Merge country specific report into the generic EC Sales List report
Related: odoo/upgrade#1721
Related: odoo/enterprise#14319
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-12-07 10:05:42 +00:00
Laurent Smet 07b407822c [FIX] account,l10n_lu: Fix default suspense account generation
closes odoo/odoo#59660

X-original-commit: fa5231983d1af929a26c83f5d64461cf657fc88a
Related: odoo/enterprise#13964
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-10-13 08:09:15 +00:00
Josse Colpaert cd9f6ef589 [FIX] l10n_lu: tax report 435 should have 409 as parent
If you look at the tax report in
https://ecdf-developer.b2g.etat.lu/ecdf/forms/popup/TVA_DECM_TYPE/2020M07/fr/1/preview

you will see that 435 has to be under 409 and not under 436

closes odoo/odoo#59405

X-original-commit: 9a88574e8162ebf9f9475fe14e0501a0ba87511c
Related: odoo/enterprise#13879
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-10-07 12:02:12 +00:00
Martin Trigaux f63bf7d7e4 [I18N] l10n_lu: update CoA translations
Update translation files to match the latest content

Load also translations for fr_BE
It's common to use fr_BE for Belgian people working in Luxembourg

opw-2278849

closes odoo/odoo#53352

X-original-commit: dadb0d088879f7824ab12763dcaf9d8768d9b787
Related: odoo/enterprise#11309
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-06-19 15:59:16 +00:00
william 30f8bb66af [IMP] l10n_lu: use recursive tax report declaration
Task 2214338

We can now define the tax report recursively.

closes odoo/odoo#48508

Related: odoo/enterprise#9534
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2020-03-27 13:42:06 +00:00
william 6bf343a172 [IMP] l10n_lu: add account groups
Task 2220128

closes odoo/odoo#48263

X-original-commit: 2fe4b8049ce90bb513000b58f56c364b0d8dbcbe
Signed-off-by: Josse Colpaert <jco@openerp.com>
Signed-off-by: wan <william-andre@users.noreply.github.com>
2020-03-24 13:36:15 +00:00
Hiral Bhavsar c7d40de3a7 [IMP] l10n_xx: auto apply fiscal positions
Canada(l10n_ca): Apply fiscal positions automatically based on partner's state.
EU nations: Apply fiscal positions automatically for national or EU/Non EU partners.

closes odoo/odoo#48250

Task: 1952975
Closes: #32126
X-original-commit: 15e0026bdeaefd7a915718781bf3f6ee0389365e
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-24 11:39:39 +00:00
william 3e9293e0e8 [FIX] l10n_lu: wrong account type details
Followup of task 2213464

closes odoo/odoo#48180

X-original-commit: 4df8d145c34ba0db153609e3a213c42dae6bda51
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-23 10:59:17 +00:00
william c71658bb8c [FIX] l10n_lu: tax group properties not set
The tax properties were only set on the main company with the way the
taxe groups were declared.

closes odoo/odoo#48044

X-original-commit: 2d74471649db3cfbcce35c7d347dbf2edeed7216
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-19 15:20:47 +00:00
wan 6a4076e4a7 [IMP] l10n_lu: clearer tax report line labels
part of Task 2213464

closes odoo/odoo#47887

X-original-commit: d9f90081ffb2938f82d1f4769d1abbd2c9fcb8b8
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-18 10:43:04 +00:00
wan 2b769cf799 [FIX] l10n_lu: update 2020 PCMN and tax report
Part of task 2213464
PCMN was using wronc account types
Some tax section lines were not computed

closes odoo/odoo#47708

X-original-commit: 4e64a6c7e857f449695b469bfb5607bdbbc55abc
Related: odoo/enterprise#9271
Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-16 14:17:02 +00:00
wan d8c5cc1335 [IMP] account: add a readonly group
Task 2092079
Accounting firms that want to give access to their customers avoiding
mistakes and risks will love this profile that can't do anything
wrong... Maybe as well as companies auditors..?

closes odoo/odoo#39860

Related: odoo/enterprise#6576
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-01-22 11:23:16 +00:00
wan 30cf7bc798 [IMP] account: add account.reconcile.model.line
Task 2046908
Instead of having all the fields duplicated with second_*, we have now a
o2m allowing us to
* have more than 2 lines
* reduce duplicated code
* fix bugs and add features at only one place

We also remove the computation of writeoff and suggestions from the
client side as some code was 4-upled before (twice in in client and
twice in server side). The logic is now only at one place.

closes odoo/odoo#38119

Related: odoo/enterprise#6324
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-12-04 08:37:19 +00:00
oco-odoo ef0488ef91 [IMP] account: support multiple tax reports per country
- Introduce a new account.tax.report object
	> Tax report lines now refer to a tax report, and the tax report to a country

- Tax report lines can share tags accross reports within the same country
	> To support the cases where some report is a simplified version of another one: some of its lines can be computed in the same way as the 'bigger' report.
	> This is done by giving the same tag_name to the tax report lines, and the same country_id to their parent report.
	> Full support for tag name modification, and the way it impacts the shared tags (sometimes, we can overwrite them all, sometimes we must delete them, sometimes, we create new tags to replace them on some report lines).

- Support copying tax report (and the lines/tags linked to it), so that it is possible to duplicate them and change the country set on the duplicate for use in another country (coopying is way better as replacing in place, as we don't keep any link to an xmlid, and still allow using the original report in the original country it was created for).

- Make all l10n* modules compatible with those changes

closes odoo/odoo#38964

Related: odoo/enterprise#6217
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-11-29 20:47:29 +00:00
Adrien Horgnies abc80eff18 [FIX] l10n_lu: make 142000 Current Year Earnings and remove 999999
closes odoo/odoo#40330

X-original-commit: 397af6fe04ac7e3c6b6dde4a27eef315ff4fb2bb
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-11-15 11:57:30 +00:00
Ravi Gohil 00521bc998 [IMP] l10n_lu: improved 'Tag Name' of Tax Report's lines
- show only code in 'Tag Name' instead of showing whole
tax report line's string
- also, assigned missing tags to few report lines

closes odoo/odoo#40159

Task: 1917932
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-11-15 09:37:29 +00:00
Ravi Gohil 1270eaad66 [FIX] l10n_lu: correctly compute few tax report sections
- fixed some tax report lines by showing correct amounts
- corrected account types
- set default receivable/payable/advance tax accounts for tax groups

closes odoo/odoo#40114

Task: 1917932
Closes: 39191
X-original-commit: 0677d4749350645b6b9dd34f6ac37c278596353a
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-11-12 11:50:05 +00:00
Ravi Gohil 84629a03fa [IMP] l10n_lu: few improvements
- updated tax name/description
- shown code as per official tax report in tax report lines
- changed types of few account
- set 17-S-S as default sales tax
- added a new account with code 703001

closes odoo/odoo#37731

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-01 15:23:44 +00:00
Ravi Gohil b252ffb13f [IMP] l10n_lu: various improvements
- fixed typos in account names and it's translation for German and French
- set default stock input/output valuation accounts for product categories
- corrected default expense account
- added two reconcile models: Bank Fees, Cash Discount
- fixed typos in account tax report and improved sequence(will show first base amounts then tax amounts)
- deactivated few taxes and improved few tax labels
- correctly translated account names in German and French according to official PCN2020 document

closes odoo/odoo#36963

Task: 1917932
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-16 13:27:19 +00:00
Josse Colpaert dc5f83b633 [FIX] l10n_lu: use correct xml_id
Somehow this xml_id was not updated.  Logically,
the tags for the refund should be the inverse
of those in the normal invoice.

closes odoo/odoo#36842

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-13 10:14:10 +00:00
Christophe Simonis 140ee6b8f0 [MERGE] forward port branch saas-12.4 up to 98a55917a6 2019-08-14 16:48:10 +02:00
Josse Colpaert f8d4bf4499 [IMP] account, l10n_xx: change CoA loading methods
Before, we only had a public method that installed
the CoA for the current active company.

With the multi-company changes, it was not
possible anymore to install a module with a
demo company and then have the CoA installed
in that demo company correctly.

We changed that public method to be able to
put an extra optional parameter and shortened
its name to try_loading instead of
try_loading_for_current_company.  The method that
it calls when there is no chart installed
is made private and renamed to _load.

closes odoo/odoo#35703

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-14 08:42:27 +00:00
Olivier Colson 333c22edd9 [FIX] l10n_*: fix taxes repartition so that 12.3 matches what is defined in 12.2
[IMP] l10n_*: don't define accounts or tags on tax repartition line templates anymore for 0% taxes

[FIX] account: remove old function used to migrate the former tax model, incompatible with the new one
2019-08-02 23:07:22 +00:00
Joseph Caburnay 536560bbf5 [IMP] l10n_*: add new receivable account for pos
A new feature[*] in point_of_sale (PoS) which minimizes the
creation of account.move records in closing a pos.session relies
on a receivable account made specifically for PoS.

This commit addresses this feature's requirement by adding a
new receivable account to each localization.

[*] point_of_sale: single AE for a pos.session

TASK-ID: 1862388
2019-08-09 13:57:10 +00:00
Olivier Colson 13f5dc905b [IMP] l10n_lu: remove unnecessary space at the end of some tax report line name
closes odoo/odoo#34094

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-06-13 10:59:05 +00:00
Meghna Jaswani ee1f0ef1ac [IMP] l10n_lu: update of CoA 2020 PCN standard and tax report
- Update the CoA for 2020
- Add the most recent monthly tax report
instead of the old one with the new tax model
- Base language English (multilang translation in fr and de)

hsh and rgo co-authored

opw-1917932

closes odoo/odoo#35371

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-08-01 10:17:47 +00:00
Olivier Colson 3936d655c4 [IMP] account, l10n_*: v13 taxes
- Add repartition lines on taxes

- Link account tags directly to account.move.line; remove the tag_ids field from account.tag

- Add a new report engine dedicated to tax reports, directly generating account tags. It is called as an alternate mode of generic tax report, with a dedicated "Use tax grids" toggle.

>> The biggest change lies in the way the new tax report computes its values.
Everything is now aggregated directly using the tags set on the account move lines. Thanks to that,
modifying the configuration of a tax today will not impact the report for the previous periods anymore.
This is a big improvement, as it means the report will keep on reflecting the values that were submitted
to the state before, whatever the configuration change.

- Add an audit char field to account.move.line telling with tax grids are impacted by the line, with the corresponding amount

- Modify the behavior of cash basis taxes: the cash basis account is now used as the transition account, while the regular account given in tax declaration is used to store the final entry (it was the opposite before)

- Modify every l10n_* module in order to keep them consistent with these changes

closes odoo/odoo#32833

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-05-10 11:52:58 +00:00
Nicolas Martinelli ebe43bad9e [FIX] l10n_lu: remove deprecated reports
The `account.financial.report` model has been removed, so these reports
are now deprecated. They will be added back in Enterprise.

opw-1891341

closes odoo/odoo#27559
2018-10-09 07:01:29 +00:00
Stefan Rijnhart 5c20416c88 [FIX] l10n_lu: duplicate entry causes Postgres error
ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time

Closes #27286
2018-09-28 10:00:25 +02:00