Skip to content

Commit

Permalink
Porting to 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
astirpe committed Jan 28, 2019
1 parent ead1e36 commit 05659b0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 19 deletions.
17 changes: 5 additions & 12 deletions l10n_nl_tax_statement_icp/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ Netherlands ICP Statement
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--netherlands-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-netherlands/tree/11.0/l10n_nl_tax_statement_icp
:target: https://github.com/OCA/l10n-netherlands/tree/12.0/l10n_nl_tax_statement_icp
:alt: OCA/l10n-netherlands
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-netherlands-11-0/l10n-netherlands-11-0-l10n_nl_tax_statement_icp
:target: https://translation.odoo-community.org/projects/l10n-netherlands-12-0/l10n-netherlands-12-0-l10n_nl_tax_statement_icp
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/176/11.0
:target: https://runbot.odoo-community.org/runbot/176/12.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|
Expand All @@ -40,13 +40,6 @@ This ICP declaration report includes:
.. contents::
:local:

Installation
============

To install this module, you need to:

#. Install module *l10n_nl_tax_statement* version >= *11.0.2.0.0*.

Configuration
=============

Expand Down Expand Up @@ -78,7 +71,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-netherlands/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-netherlands/issues/new?body=module:%20l10n_nl_tax_statement_icp%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/l10n-netherlands/issues/new?body=module:%20l10n_nl_tax_statement_icp%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Expand Down Expand Up @@ -108,6 +101,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/l10n-netherlands <https://github.com/OCA/l10n-netherlands/tree/11.0/l10n_nl_tax_statement_icp>`_ project on GitHub.
This module is part of the `OCA/l10n-netherlands <https://github.com/OCA/l10n-netherlands/tree/12.0/l10n_nl_tax_statement_icp>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion l10n_nl_tax_statement_icp/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
'name': 'Netherlands ICP Statement',
'version': '11.0.1.0.0',
'version': '12.0.1.0.0',
'category': 'Localization',
'license': 'AGPL-3',
'author': 'Onestein, Odoo Community Association (OCA)',
Expand Down
6 changes: 3 additions & 3 deletions l10n_nl_tax_statement_icp/models/l10n_nl_vat_statement.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,21 @@ def reset(self):
''' Removes ICP lines if reset to draft'''
for statement in self:
statement.icp_line_ids.unlink()
return super(VatStatement, self).reset()
return super().reset()

@api.multi
def post(self):
''' Checks configuration when validating the statement'''
self.ensure_one()
self._check_config_tag_3b_omzet()
res = super(VatStatement, self).post()
res = super().post()
self._compute_icp_lines()
return res

@api.model
def _modifiable_values_when_posted(self):
''' Returns the modifiable fields even when the statement is posted'''
res = super(VatStatement, self)._modifiable_values_when_posted()
res = super()._modifiable_values_when_posted()
res.append('icp_line_ids')
res.append('icp_total')
return res
Expand Down
3 changes: 0 additions & 3 deletions l10n_nl_tax_statement_icp/readme/INSTALL.rst

This file was deleted.

0 comments on commit 05659b0

Please sign in to comment.