Skip to content

Commit

Permalink
Merge 15771a8 into c208f46
Browse files Browse the repository at this point in the history
  • Loading branch information
feketemihai committed Mar 8, 2018
2 parents c208f46 + 15771a8 commit 0368772
Show file tree
Hide file tree
Showing 28 changed files with 415 additions and 354 deletions.
84 changes: 84 additions & 0 deletions l10n_ro_account_period_close/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

================================
Romania - Account Period Closing
================================

This module allows you to close incomes, expense, vat between two dates.


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

To install this module, you need to:

* clone the branch 11.0 of the repository https://github.com/OCA/l10n-romania
* add the path to this repository in your configuration (addons-path)
* update the module list
* search for "Romania - Account Period Closing" in your addons
* install the module

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

* Go to Accounting -> Adviser -> Actions -> Account Period Closing,
create separate templates for Incomes, Expenses, VAT.
* Income and Expenses templates select "121000" account as debit and credit account.
* For VAT template select closing accounts "442600" and "442700" with
debit account "442400" and credit account "442300", plus check the
Close debit and credit accounts option.

Usage
=====

To use this module, you need to be an account adviser and go to:

Accounting -> Adviser -> Actions -> Account Period Closing
* Select the template to close
* Go to Action -> Close Period, choose the dates and click on the "Close" button.

For accounts that can close on different side (eg. 609, 709, 711xxx) accounts,
go to the account and select the Bypass Closing Side Check option.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/177/11.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-romania/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smash it by providing detailed and welcomed feedback.

Credits
=======

Images
------

* Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.

Contributors
------------

* Fekete Mihai <feketemihai@gmail.com>

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

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def _get_accounts(self, accounts, display_account):
wheres.append(where_clause.strip())
filters = " AND ".join(wheres)
# compute the balance, debit and credit for the provided accounts
# pylint: disable=E8103
request = ("SELECT account_id AS id, "
"SUM(debit) AS debit, "
"SUM(credit) AS credit, "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<field name="inherit_id" ref="account.view_account_form"/>
<field name="arch" type="xml">
<field position="after" name="reconcile">
<label for="close_check"/>
<field name="close_check"/>
</field>
</field>
Expand Down
3 changes: 3 additions & 0 deletions l10n_ro_address_extended/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class Partner(models.Model):
_inherit = ['res.partner']
_name = 'res.partner'

# Compute and Inverse taken from Odoo base.
# pylint: disable=E8108
# pylint: disable=E8110
street_staircase = fields.Char('Staircase Number',
compute='_split_street',
inverse='_set_street', store=True)
Expand Down
3 changes: 0 additions & 3 deletions l10n_ro_address_extended/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from . import test_street_fields
3 changes: 2 additions & 1 deletion l10n_ro_config/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
'license': 'AGPL-3',
'installable': True,
'depends': ['l10n_ro'],
'data': ['views/res_config_view.xml'],
'data': ['data/res_currency_data.xml',
'views/res_config_view.xml'],
'auto_install': True,
}
18 changes: 5 additions & 13 deletions l10n_ro_config/data/res_currency_data.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
<?xml version="1.0"?>
<openerp>
<data>
<record model="res.currency" id="base.RON">
<field name="base" eval="True"/>
</record>
<record model="res.currency" id="base.EUR">
<field name="base" eval="False"/>
</record>
<record model="res.currency.rate" id="base.rateRON">
<field name="rate">1.00</field>
</record>
</data>
</openerp>
<odoo>
<record model="res.currency" id="base.RON">
<field name="active" eval="True"/>
</record>
</odoo>
File renamed without changes.
2 changes: 1 addition & 1 deletion l10n_ro_config/models/res_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def execute(self):
self.ensure_one()
res = super(ResConfigSettings, self).execute()
data_dir = os.path.join(os.path.dirname(
os.path.dirname(os.path.abspath(__file__))), 'data')
os.path.dirname(os.path.abspath(__file__))), 'examples')
# Load SIRUTA datas if field is checked
if self.siruta_update:
# First check if module is installed
Expand Down

0 comments on commit 0368772

Please sign in to comment.