Browse Source

[ADD] Se agrega campo de cuentas de naturaleza acreditable

a la compania para que permite mostrar adecuadamente los signos
en los reportes contables.
6.0
Humberto Arocha 13 years ago
parent
commit
58ab2bb141
  1. 1
      account_financial_report/__init__.py
  2. 7
      account_financial_report/__openerp__.py
  3. 26
      account_financial_report/model/__init__.py
  4. 38
      account_financial_report/model/res_company.py
  5. 26
      account_financial_report/view/company_view.xml

1
account_financial_report/__init__.py

@ -25,5 +25,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################## ##############################################################################
import model
import report import report
import wizard import wizard

7
account_financial_report/__openerp__.py

@ -26,9 +26,9 @@
############################################################################## ##############################################################################
{ {
"name" : "Common financial reports", "name" : "Common financial reports",
"version" : "1.0",
"author" : "OpenERP Venezuela",
"website" : "http://wiki.openerp.org.ve/",
"version" : "2.0",
"author" : "Vauxoo",
"website" : "http://www.vauxoo.com",
"depends" : ["base","account"], "depends" : ["base","account"],
"category" : "Localisation/Accounting", "category" : "Localisation/Accounting",
"description": """ "description": """
@ -40,6 +40,7 @@
"wizard/wizard_report_report.xml", "wizard/wizard_report_report.xml",
"wizard/account_report_wizard.xml", "wizard/account_report_wizard.xml",
"view/account_view.xml", "view/account_view.xml",
"view/company_view.xml",
], ],
"active": False, "active": False,
"installable": True "installable": True

26
account_financial_report/model/__init__.py

@ -0,0 +1,26 @@
#!/usr/bin/python
# -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
# All Rights Reserved
###############Credits######################################################
# Coded by: Humberto Arocha <hbto@vauxoo.com>
# Planified by: Rafael Silva <rsilvam@vauxoo.com>
# Audited by: Nhomar Hernandez <nhomar@vauxoo.com>
#############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
################################################################################
import res_company

38
account_financial_report/model/res_company.py

@ -0,0 +1,38 @@
#!/usr/bin/python
# -*- encoding: utf-8 -*-
###########################################################################
# Module Writen to OpenERP, Open Source Management Solution
# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
# All Rights Reserved
###############Credits######################################################
# Coded by: Humberto Arocha <hbto@vauxoo.com>
# Planified by: Rafael Silva <rsilvam@vauxoo.com>
# Audited by: Nhomar Hernandez <nhomar@vauxoo.com>
#############################################################################
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
################################################################################
from osv import osv
from osv import fields
from tools.translate import _
class res_company(osv.osv):
_inherit = 'res.company'
_columns = {
'credit_account_ids':fields.many2many('account.account',
'credit_account_company_rel',
'company_id', 'account_id',
'Accounts'),
}
res_company()

26
account_financial_report/view/company_view.xml

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_company_credit_account_form">
<field name="name">res.company.form.inherit</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="model">res.company</field>
<field name="type">form</field>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Credit Accounts" position="inside">
<separator string="Reverse sign on Reports for these accounts and children accounts" colspan="4"/>
<field name="credit_account_ids" nolabel="1" colspan ="4" domain="[('company_id.name','=',name),('company_id.partner_id','=',partner_id),]">
<tree>
<field name='code'/>
<field name='name'/>
<field name='type'/>
</tree>
</field>
</page>
</notebook>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save