Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions l10n_cs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2018 PERLUR Group (<https://go.perlur.cloud/odoo-packages/>).
# Copyright (C) 2012 - 2018 PERLUR Group (<https://go.perlur.cloud/opensource>).
# Copyright (C) 2018 Optimal 4 s.r.o. (<https://www.optimal4.cz>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
Expand All @@ -18,8 +19,4 @@
#
##############################################################################

def _preserve_tag_on_taxes(cr, registry):
from odoo.addons.account.models.chart_template import preserve_existing_tags_on_taxes
preserve_existing_tags_on_taxes(cr, registry, 'l10n_cs')

import res_partner
from . import models
11 changes: 6 additions & 5 deletions l10n_cs/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2012 - 2017 PERLUR Group (<https://go.perlur.cloud/odoo-l10n-cs>).
# Copyright (C) 2012 - 2018 PERLUR Group (<https://go.perlur.cloud/opensource>).
# Copyright (C) 2018 Optimal 4 s.r.o. (<https://www.optimal4.cz>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
Expand All @@ -21,26 +22,26 @@

{
'name': 'Czech - Accounting',
'version': '2.0',
'version': '2.1',
'category': 'Accounting',
'description': """
This is the latest Czech Odoo (OpenERP) localisation necessary to run Odoo accounting for Czech businesses with:
============================================================================================================
- a Chart Of Accounts for Czech Republic
- VAT tax structure with VATs for years 2010, 2011, 2012, 2013 and 2014
- VAT tax structure with VATs for years 2018
- a few other adaptations""",
'author': 'PERLUR Group and Optimal4',
'price': '100',
'currency': 'EUR',
'website': 'https://go.perlur.cloud/odoo-packages/',
'depends': ['base_iban', 'base_vat', 'l10n_multilang'],
'depends': ['account', 'base_iban', 'base_vat', 'l10n_multilang', 'contacts'],
'data': [
'partner_view.xml',
'data/account_type.xml',
'data/account_template_entrepreneurs.xml',
'data/account_tax_code.xml',
'data/account_chart.xml',
'data/account_tax.xml',
'data/account_tax_data.xml',
'data/account_fiscal_templates.xml',
'wizard/l10n_cs_wizard.xml',
],
Expand Down
File renamed without changes.
16 changes: 4 additions & 12 deletions l10n_cs/models/models.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2012 STOPKA Consulting s.r.o. (<https://www.perlur.cz/en/it-solutions/business-applications/openerp-en/>).
# Copyright (C) 2012 - 2018 PERLUR Group (<https://go.perlur.cloud/opensource>).
# Copyright (C) 2018 Optimal 4 s.r.o. (<https://www.optimal4.cz>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
Expand All @@ -18,14 +19,5 @@
#
##############################################################################

from openerp.osv import fields, osv

class res_partner(osv.osv):
_inherit = 'res.partner'

_columns = {
'company_registry': fields.char('Company Registry', size=64),
}

res_partner()

from odoo import models, fields, api

17 changes: 7 additions & 10 deletions l10n_cs/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@
#
##############################################################################

from openerp.osv import fields, osv
from odoo import models, fields, api

class res_partner(osv.osv):
_name = 'res.partner'
_inherit = 'res.partner'

_columns = {
'company_registry': fields.char('Company Registry', size=64),
}

res_partner()
class ResPartner(models.Model):
_inherit = 'res.partner'
company_registry = fields.Char('Company Registry')
@api.model
def _company_registry(self):
return super(ResPartner, self)._company_registry() + ['company_registry']