Browse Source

commit inicial

Rodney Enciso Arias 7 years ago
commit
6adca6edd8
6 changed files with 44 additions and 0 deletions
  1. 1 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 15 0
      __openerp__.py
  4. 10 0
      company_set_information.py
  5. BIN
      company_set_information.pyc
  6. 18 0
      company_set_information_view.xml

+ 1 - 0
__init__.py

@@ -0,0 +1 @@
+from . import company_set_information

BIN
__init__.pyc


+ 15 - 0
__openerp__.py

@@ -0,0 +1,15 @@
+{
+    'name':'Company Set Information',
+    'description':"""
+Company SET information
+=======================
+Agrega las informaciones del SET a la compañia.
+""",
+    'author': 'Eiru software / Rodney Enciso Arias',
+    'website':'www.eiru.com.py',
+    'depends':['base'],
+    'data':[
+        'company_set_information_view.xml',
+    ],
+    'installable':True,
+}

+ 10 - 0
company_set_information.py

@@ -0,0 +1,10 @@
+from openerp import models,fields
+
+class ResCompany(models.Model):
+    _name = 'res.company'
+    _inherit = 'res.company'
+
+    company_ruc = fields.Char('R.U.C.',required=True)
+    legal_agent = fields.Char('Representante Legal',required=True)
+    agent_ruc = fields.Char('RUC del representante',required=True)
+    exportador = fields.Selection([('SI','SI'),('NO','NO')], string='Exportador')

BIN
company_set_information.pyc


+ 18 - 0
company_set_information_view.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        <record model="ir.ui.view" id="res_company_form_view_ruc">
+            <field name="name">res.company.form.view.ruc</field>
+            <field name="model">res.company</field>
+            <field name="inherit_id" ref="base.view_company_form" />
+            <field name="arch" type="xml">
+                <field name="company_registry" position="after">
+                    <field name="company_ruc"/>
+                    <field name="legal_agent"/>
+                    <field name="agent_ruc"/>
+                    <field name="exportador" required="1"/>       
+                </field>
+            </field>
+        </record>
+    </data>
+</openerp>