Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] l10n_de_tax_statement #144

Open
wants to merge 60 commits into
base: 16.0
Choose a base branch
from

Conversation

MrGigSolutions
Copy link

Updates for 16.0

  • Moved the Update button to the top bar, and made the text that indicates to press this button an info text. The new layouting makes the button look out of place in the form
  • Adjusted the tests to deal with the adjustments to accounting: journal_id has an invisible field in the form, so cannot be updated in the form, and account_id cannot be directly set. This was worked around by passing a default_journal_id, and by setting the correct default_account_id on this journal
  • Adjusted translations file. Note: there are quite some fields in it that have no translation.

@MrGigSolutions MrGigSolutions changed the title [MIG] 16.0 l10n_de_tax_statement [16.0][MIG] l10n_de_tax_statement Jan 22, 2024
@MrGigSolutions
Copy link
Author

Just like in the other module, the failing tests seem to be because of the 4 lines of demo data.

@MrGigSolutions
Copy link
Author

@ortlam, would you mind having a look at this one?

@StefanRijnhart
Copy link
Member

@hbrunn do these test failures make any sense to you? Asking because you migrated the module.

2024-01-22 06:26:49,695 250 ERROR odoo odoo.addons.datev_import_csv_dtvf.tests.test_datev_import_csv_dtvf: FAIL: TestDatevImportCsvDtvf.test_wizard_comma_separated
Traceback (most recent call last):
  File "/__w/l10n-germany/l10n-germany/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py", line 135, in test_wizard_comma_separated
    self._test_wizard("datev_import_csv_dtvf/examples/datev_export.csv")
  File "/__w/l10n-germany/l10n-germany/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py", line 123, in _test_wizard
    self.assertEqual(len(move.line_ids), 196)
AssertionError: 200 != 196
 
2024-01-22 06:26:49,697 250 INFO odoo odoo.addons.datev_import_csv_dtvf.tests.test_datev_import_csv_dtvf: Starting TestDatevImportCsvDtvf.test_wizard_semicolon_separated ... 
2024-01-22 06:26:50,224 250 WARNING odoo odoo.addons.datev_import_csv_dtvf.wizard.import_move: Approximate match: import account 7095 has been matched with Odoo account 7095000 
2024-01-22 06:26:51,081 250 INFO odoo odoo.addons.datev_import_csv_dtvf.wizard.import_move: Account moves IDs [32] created via file import 
2024-01-22 06:26:51,180 250 INFO odoo odoo.addons.datev_import_csv_dtvf.tests.test_datev_import_csv_dtvf: ====================================================================== 
2024-01-22 06:26:51,180 250 ERROR odoo odoo.addons.datev_import_csv_dtvf.tests.test_datev_import_csv_dtvf: FAIL: TestDatevImportCsvDtvf.test_wizard_semicolon_separated
Traceback (most recent call last):
  File "/__w/l10n-germany/l10n-germany/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py", line 138, in test_wizard_semicolon_separated
    self._test_wizard("datev_import_csv_dtvf/examples/datev_export_semicolon.csv")
  File "/__w/l10n-germany/l10n-germany/datev_import_csv_dtvf/tests/test_datev_import_csv_dtvf.py", line 123, in _test_wizard
    self.assertEqual(len(move.line_ids), 196)
AssertionError: 200 != 196

@hbrunn
Copy link
Member

hbrunn commented Feb 1, 2024

not much, but 196 is the correct value. would have to debug to find out where the extra move lines come from

@StefanRijnhart
Copy link
Member

@MrGigSolutions see here: #148

tv-openbig and others added 23 commits April 23, 2024 22:38
we have cloned and adopted the l10n-netherlands tax report module from
Onestein B.V.  The report is constructed in the same way as official
german „Umsatzsteuervoranmeldung“. The values from the report could be
easily transmitted via official portal https://www.elster.de/ in order
to declare and transfer your monthly (or quarterly) vat taxes.
…fig wizard

most removed tests are not relevant for germany as they was related in
the clone from netherlands to invoice basis (related to invoice or
account move dates which is probably not relevant for germany). The
change in the config wizard was required as the tax tag mappings for
the tax statement should work with skr03 and skr04 accounting plans.
The prior change raised an error. The two additional dependencies
account_invoicing, l10n_de should help to allow immediate runbot
testing without any manual installation steps in advance.
I have applied proposed changes of Andrea Stirpe in order to get
through the testing procedure.
The old lines 39 disappeared and was merged together with the old line
40 (now they are line 39 in 2019 edition). Furthermore the old lines 49
and 51 disappeared and was merged into the line 50. There is a
relevance for the tax codes (tag_ids). The old tag „USt-VA KZ 68“ have
to be mapped to the same line as the tag „USt-VA KZ 60“. The old tags
„USt-VA KZ 52“ and „USt-VA KZ 78“ have to be mapped the same way as the
old and single remaining „USt-VA 84“ (= base values). The old tags
„USt-VA KZ 53“ and „USt-VA KZ 79“ have to be mapped the same way as the
old and single remaining „USt-VA KZ 85“ (tax values). Furthermore we
might have formatting changes caused by the different line numbering.
Therefore i expect further adoptions in the files
„l10n_de_tax_statement_line.py“ and also in the
„l10n_de_tax_statement_config_wizard.xml“ and the
„l10n_de_tax_statement_config_wizard.py“. I assume we cannot avoid
deeper changes in order to adopt what we really want.
… compare conversation: OCA#39
astirpe and others added 24 commits April 23, 2024 22:38
Changes:
- Adjusted manifest
- Removed migrations
- Refactored unlink() to @api.ondelete
- Removed unused methods and imports from tests
- Tests now use setUpClass instead of setUp
- Removed widgets from chatter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet