Browse Source
[ADD] Se agrega campo de cuentas de naturaleza acreditable
[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
5 changed files with 95 additions and 3 deletions
-
1account_financial_report/__init__.py
-
7account_financial_report/__openerp__.py
-
26account_financial_report/model/__init__.py
-
38account_financial_report/model/res_company.py
-
26account_financial_report/view/company_view.xml
@ -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 |
@ -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() |
@ -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> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue