Browse Source

Commit inicial

Adrielso 8 years ago
commit
b0e62e2d8c

+ 2 - 0
__init__.py

@@ -0,0 +1,2 @@
+# -*- coding: utf-8 -*-
+import partner_wireless

BIN
__init__.pyc


+ 16 - 0
__openerp__.py

@@ -0,0 +1,16 @@
+# -*- coding: utf-8 -*-
+{
+    'name': "Partner Wireless BRUDER Datentechnik",
+    'version': '1.0.0',
+    'author': 'Erik Bruder',
+    'category': 'Custom',
+    'website': 'http://www.bruder-datentechnik.de',
+    'description': '''Allows you to store the wireless credentials,
+    from partner''',
+    'depends': ['sale'],
+    'data': [
+        'partner_wireless.xml',
+        ],
+    'installable': True
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 40 - 0
partner_wireless.py

@@ -0,0 +1,40 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    This module uses OpenERP, Open Source Management Solution Framework.
+#    Copyright (C) 2014-Today BRUDER Datentechnik (<http://www.bruder-datentechnik.de>)
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU 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 General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>
+#
+##############################################################################
+
+from openerp import tools
+from openerp.osv import osv
+from openerp.osv import fields
+from openerp.tools.translate import _
+import openerp.addons.decimal_precision as dp
+import time
+
+
+class res_partner(osv.osv):
+    _inherit = "res.partner"
+    _columns = {
+        'router_type': fields.char('Router'),
+        'router_pass': fields.char('Router Password'),
+        'wireless_ssid': fields.char('Wireless SSID'),
+        'wireless_key': fields.char('Wireless Key'),
+    }
+
+    _defaults = {
+    }

BIN
partner_wireless.pyc


+ 21 - 0
partner_wireless.xml

@@ -0,0 +1,21 @@
+<openerp>
+    <data>
+        <record id="res_partner_extended_form_view" model="ir.ui.view">
+            <field name="name">res.partner.extended.view.form</field>
+            <field name="model">res.partner</field>
+            <field name="inherit_id" ref="base.view_partner_form"/>
+            <field name="arch" type="xml">
+                <xpath expr="//notebook/page[@string='Internal Notes']" position="after">
+                    <page string="Wireless">
+						<group>
+                            <field name="router_type" widget="url"/>
+                            <field name="router_pass" widget="url"/>
+                            <field name="wireless_ssid" widget="url"/>
+                            <field name="wireless_key" widget="url"/>
+						</group>
+                    </page>
+                </xpath>
+            </field>
+        </record>
+    </data>
+</openerp>

BIN
static/description/icon.png


+ 6 - 0
static/description/index.html

@@ -0,0 +1,6 @@
+<section class="oe_container">
+    <div class="oe_span12">
+        <h2 class="oe_slogan">Partner wireless network</h2>
+        <h3 class="oe_slogan">Allows you to safe wireless network credentials of partners.<br />by BRUDER Datentechnik</h3>
+    </div>
+</section>

BIN
static/src/img/favicon.ico


BIN
static/src/img/favicon.png