odoo/odoo#106485

Created by badbole

Blocked

  • Merge method
  • Review
  • CI
label
dajmi5:16.0-croatia-new
head
2061b856aeebb05ca22bf67b1a33424aae191c09
odoo/odoo
16.0 #106485 missing statuses missing r+
17.0
saas-17.4
18.0
saas-18.1
saas-18.2
saas-18.3
master

[IMP] Croatia Localisation - combined development

Description of the issue/feature this PR addresses:

Needed update of Croatia CoA module

based on join effort from previos 2 PRs:
- #99450
- #102018
( while in branch 15.1: #99464)

What is done in this branch (in file load order):

  • addopted multi lang CoA - translations in progress!
  • adopted new short external ids terminology/logic from odoo developers
  1. Add new - based on example from l10n_be
  • added calculation for company_registry which is VAT number without country prefix for domestic partners.
    • PDV-ID -> OIB base transform for domestic partner with entered VAT number
    • TODO: check printout on invoices!
  • addopted the common Croatia invoice reference models according to documentation
  • Most commont models used on invocies in croatia

    • HR00 (as based on partner)
    • HR01 (as based on invoice)
  • This is the simpliest inheritable (and customizable) level of generating reference

  • for both models, the elements returend to become invoce reference are :
    • invoice date: YYYYMM
    • invoice.id
    • invoice.partner_id.id
  • to be discussed if more configuration fields and options are needed
  1. account.account.template -> check comparison file

    • added more accounts needed for regular postings
    • some lvl3 accounts from odoo-dev replaced by more detailed level accounts
    • added some 3rd level accounts missing
  2. account.group.template -> check comparison file

    • odoo-dev accounts groups was 2 level based, while in Croatia it is more common to use 3 levels
    • all 3rd lvl groups are added with structure, not visible on widget,
      but corectly used ans assigned on account creation from form view.
  3. account.tax.group

    • only 4 groups, fine!
  4. account_chart_tag_data

    • modified according to created accounts
  5. account_tax_report

    • modified/simplified external ids
    • addopted new structore from odoo-dev
  6. acount.tax.template

    • added more taxes to fit all fiscal positions
    • will probabla need to add a few more taxes
    • modified tax names and labels to more unified look and feel
    • improoved tax usage atributes
    • translations (english terms tranlsated better)
    • croatia translations might need corrections
  7. account.fiscal.position.template

    • instead of creating 2 or 3 separate files for :
      fp.template , fp.tax.template and fp.acc_template objects
    • created one file, applied nested xml data logic,
      wich is more readable to developers.
    • created common Croatia fiscal positions, with tax and account mappings
    • might need updates
  8. improoved english terms, adn translations in general


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr