Bladeren bron

commit incial

Rodney Enciso Arias 7 jaren geleden
commit
934964a3a1
6 gewijzigde bestanden met toevoegingen van 100 en 0 verwijderingen
  1. 6 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 52 0
      __openerp__.py
  4. 17 0
      account.py
  5. BIN
      account.pyc
  6. 25 0
      views/account_view.xml

+ 6 - 0
__init__.py

@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from . import account

BIN
__init__.pyc


+ 52 - 0
__openerp__.py

@@ -0,0 +1,52 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2015  ADHOC SA  (http://www.adhoc.com.ar)
+#    All Rights Reserved.
+#
+#    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/>.
+#
+##############################################################################
+{
+    'name': 'Numero de timbrado',
+    'version': '8.0.1.0.0',
+    'category': 'Accounting',
+    'sequence': 14,
+    'summary': '',
+    'description': """
+Numero de timbrado
+==================
+Numero de timbrado de la factura, para informacion trubitaria.
+
+    """,
+    'author':  'Eiru Software',
+    'website': 'www.eiru.com.py',
+    'license': 'AGPL-3',
+    'images': [
+    ],
+    'depends': [
+        'account_voucher',
+    ],
+    'data': [
+        'views/account_view.xml',
+    ],
+    'demo': [
+    ],
+    'test': [
+    ],
+    'installable': True,
+    'auto_install': False,
+    'application': False,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 17 - 0
account.py

@@ -0,0 +1,17 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from openerp import models, fields
+
+
+class AccountJournal(models.Model):
+    _inherit = 'account.journal'
+
+    timbrado = fields.Char('Timbrado', size=8)
+
+class AccountIinvoice(models.Model):
+    _inherit = 'account.invoice'
+
+    timbrado = fields.Char('Nº de timbrado del proveedor', size=8) 

BIN
account.pyc


+ 25 - 0
views/account_view.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<openerp>
+    <data>
+        <record id="view_account_journal_form" model="ir.ui.view">
+            <field name="name">account.journal.form</field>
+            <field name="model">account.journal</field>
+            <field name="inherit_id" ref="account.view_account_journal_form"/>
+            <field name="arch" type="xml">
+                <field name="company_id" position="after">
+                    <field name="timbrado" attrs=" {'required':[('type','=','sale')]}"/>
+                </field>                
+            </field>
+        </record>
+        <record id="view_account_invoice_form" model="ir.ui.view">
+            <field name="name">account.invoice.form</field>
+            <field name="model">account.invoice</field>
+            <field name="inherit_id" ref="account.invoice_supplier_form"/>
+            <field name="arch" type="xml">
+                <field name="supplier_invoice_number" position="before">
+                    <field name="timbrado"/>
+                </field>                
+            </field>
+        </record>   
+    </data>
+</openerp>