Commit Graph
493 Commits
Author SHA1 Message Date
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
Xavier-Do 288595f558 [FIX] *: add explicit license to all manifest
The license is missing in most enterprise manifest so
the decision was taken to make it explicit in all cases.
When not defined, a warning will be triggered starting from
14.0 when falling back on the default LGPL-3.

closes odoo/odoo#74245

Related: odoo/design-themes#48
Related: odoo/enterprise#19862
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2021-07-26 13:09:57 +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 17610e8ca9 [IMP] account, account_edi, l10n_*, purchase, sale: Generalize the use of account_fiscal_country_id
Before, account_fiscal_country_id was only use for tax operations; and country_id was used for all the other accounting stuff. Now, with the new ability to use foreign tax reports (with foreign VAT fiscal positions), we can generalize the fiscal country, sot that it is the one that needs to be used for the whole accounting. Since foreign tax reports were not supported before, account_fiscal_country_id is already set on existing database as the country for the "main" accounting, so the impact of this change is small.

closes odoo/odoo#68349

Related: odoo/upgrade#2322
Related: odoo/enterprise#17299
Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2021-04-01 12:09:20 +00:00
oco-odoo 7922e5d102 [IMP] l10n_*: set newly-introduced country_id field on chart templates 2021-04-01 12:09:20 +00:00
bat-odoo feca3ad527 [IMP] base: update l10n icons
Purpose of the task is to update all l10n modules icon with new icon that i have
found in task attachment.

So in this commit, Updated all l10n modules icon with new icon.

closes odoo/odoo#65329

Taskid: 2442631
Related: odoo/enterprise#16054
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2021-03-25 15:01:43 +00:00
wan 8aa68445a6 [IMP] l10n_*: remove icon.png and use country_fla from base
* We are gaining ~1.2MB by doing this.
* The flags are unified with the same looks.
* Some flags were missing.
2021-01-15 15:56:47 +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
Victor Feyens 1b67affe7d [FIX] *: avoid direct references to countries
Ensure the code works fine even if countries are deleted.

Also consider "re"-created countries after deletion, by only considering
the country code, not the data reference.

This should reduce support requests related to deleted countries, and
ease the resolution of such problems by the users themselves.

TASK ID - 2368842

closes odoo/odoo#60558

X-original-commit: 037012bc4e2935eb00a7f353529bb7ec55066733
Related: odoo/enterprise#14347
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-10-22 16:17:26 +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
william eaa7f93c0f [IMP] l10n_*: update the module categories
Task 2309613

We have a new hierarchy:
* Accounting
  * [Generic, not changed]
  * Localization
    * Account Chart
    * Check
    * EDI
    * Point of Sale
    * Purchase
    * Reporting
    * Sale

This helps in displaying only the chart of accounts when clicking on
"Install more Packages" from the accounting settings in the Fiscal
Localization section.
We can also refine the search in the _auto_install_l10n post init hook
of account.

closes odoo/odoo#55384

Related: odoo/enterprise#12179
Related: odoo/upgrade#1568
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2020-08-07 08:30:41 +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
Laurent Smet caeb782841 [IMP] account,*: Improve bank statements/payments workflow
- Create journal entries as soon as bank/cash statement lines are created, temporary booked on a suspense account set on the journal.
- Simplify the management of "blue" lines in the reconciliation widget. A "blue" line is now a journal item using a temporary liquidity account (outstanding payment/receipt accounts, set on the journal).
- Adapt and simplify the bank reconciliation report.
- Remove the bank reconciliation threshold date. The reconciliation report will show the not already reconciled journal entries using a liquidity account and the not already reconciled journal entries using a temporary liquidity account. Without accounting, an account.payment will involve directly the liquidity account and then, will be considered as a statement line directly.
- Remove the post_at bank reconciliation feature. The "paid" state will be set on the invoices only if reconciled with a journal entry involving the journal's liquidity account.
    With invoicing, the payment will do that so the "in_payment" state should never be shown up.
    With accounting, only the statement lines have the power to move an invoice to the "paid" state.
- Fix various corner cases about the management of multi-currency in bank statement lines.
- Fix the conversion dates in multi-currency: Since the bank/cash is always used on the statement lines, it will use always the real "bank" date instead of the fictive payment one.
- Ensure the 'reconcile' method will raise an error if the involved moves are not posted.

related enterprise PR odoo/enterprise#7019

closes odoo/odoo#41301

--task: 2092096
Related: odoo/upgrade#1018
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-04-10 09:47:24 +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 d2851b2039 [IMP] l10n_*: add demo company
Task 2198388

When testing and demoing localization, it can but cumbersome to create a
Company with the right credentials and install the chart of account on
it.
This commit aims to shorten the process. The first version only contains
a valid vat (or similar) number, but we should add fields specific to
localization in the future so that we have a working environment as soon
as we install the localization.
change manifest

closes odoo/odoo#48102

Signed-off-by: Josse Colpaert <jco@openerp.com>
2020-03-31 16:41:23 +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
Yannick Tivisse 4c291e3f70 [IMP] base: Display searchpanel on ir.module.module views
Purpose
=======

The current kanban view is messy. It is difficult to identify which
apps are installed or not. The user can completely miss a module
that might have interested him. A search panel would make things way
more readable.

closes odoo/odoo#44401

Taskid: 2181557
Related: odoo/enterprise#8144
Related: odoo/upgrade#879
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-05 14:03:45 +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
Christophe Simonis 5a273e74f0 [MERGE] forward port branch saas-12.4 up to fe59754c52
closes odoo/odoo#36721

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-13 13:32:51 +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 545e6d2034 [MERGE] forward port branch 12.0 up to 52f6e38cea 2019-08-30 17:20:28 +02:00
Nicolas Lempereur c346e7af33 [FIX] l10n_*: translate COA on load without install
When a COA is installed being loaded for current company, the
translations of taxes, account name, ... (in l10n_be, l10n_ca, l10n_ch,
l10n_sa) are copied from the templates to the accounting records.

This is done in `post_init_hook` which is correct since then
translations are available to be copied.

But when an accounting localization is already installed and we set it
to a company, the translations are not copied.

eg. install l10n_be for company1: accounts name are translated in
french and dutch, set company2 to belgian accounting: only original
language is available.

With this changeset, the translation copy is also performed when an
accounting localization is loaded for a company after it has been
installed.

note: if we install language for first times after setting accounting
localizations, chart of account are translated in that language.

opw-2047013
closes #35985

Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-08-27 11:19: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
Adrian Torres 52f5528cfb [REF] *: replace deprecated pycompat helpers for builtins
This commit replaces calls to pycompat helpers that were intended for
python 2 <-> python 3 interoperability for python 3 builtins, as python
2 is no longer officially supported by Odoo.

This includes:
    * calls to imap/izip/ifilter replaced by map/zip/filter
    * uses of text_type replaced by str
    * uses of unichr replaced by chr
    * calls to implements_to_string, implements_iterator removed
    * string_types and integer_types replaced by str, int respectively
    * calls to to_native replaced by calls to to_text

This is done in preparation to the removal of these deprecated helpers
in the following commit.
2018-11-29 09:28:17 +00:00
wan 182b4d86f4 [IMP] l10n_be/fr/lu: set refund_sequence on sale/purchase journals
Belgium, France and Luxembourg should, by default, have a dedicated sequence for refunds.

Task ID: 1872181

closes odoo/odoo#28639
2018-11-22 10:49:46 +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
Martin Trigaux fe9612c6bc [I18N] remove l10n_* translation files
Were no longer synchronized since 9.0
Commit 710f67ad4b mistakly reexported them too

Remove the .pot, keep only a few one like it actually makes sesne to have
translated content such as l10n_be_invoice_bba
2018-09-18 15:58:44 +02:00