Rodney Enciso Arias před 7 roky
revize
8ee6308f83
3 změnil soubory, kde provedl 93 přidání a 0 odebrání
  1. 30 0
      __init__.py
  2. 40 0
      __openerp__.py
  3. 23 0
      crm_lead_view.xml

+ 30 - 0
__init__.py

@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+# Copyright (c) 2012 Cubic ERP - Teradata SAC. (http://cubicerp.com).
+#
+# WARNING: This program as such is intended to be used by professional
+# programmers who take the whole responsability of assessing all potential
+# consequences resulting from its eventual inadequacies and bugs
+# End users who are looking for a ready-to-use solution with commercial
+# garantees and support are strongly adviced to contract a Free Software
+# Service Company
+#
+# 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 2
+# 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, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+#
+##############################################################################
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 40 - 0
__openerp__.py

@@ -0,0 +1,40 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+#    OpenERP, Open Source Management Solution
+#    Copyright (C) 2012 Cubic ERP - Teradata SAC (<http://cubicerp.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/>.
+#
+##############################################################################
+{
+    "name": "States Inherited (Recursive Ubication) extends for crm",
+    "version": "1.0",
+    "description": """
+        Add parent state to standard state and transform the states on recursive ubication
+        """,
+    "author": "Cubic ERP / Eiru Software - Rodney Enciso Arias",
+    "website": "http://www.eiru.com.py",
+    "category": "Others",
+    "depends": ["base","base_state_ubication","crm"],
+    "data":[
+            "crm_lead_view.xml",
+            ],
+    "demo_xml": [ ],
+    "update_xml": [ ],
+    "active": False,
+    "installable": True,
+    "certificate" : "",
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 23 - 0
crm_lead_view.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+        <record model="ir.ui.view" id="crm_form_states">
+            <field name='name'>crm.form.states</field>
+            <field name='model'>crm.lead</field>
+            <field name="inherit_id" ref="crm.crm_case_form_view_leads"/>
+            <field name='type'>form</field>
+            <field name='arch' type='xml'>
+                <field name="state_id" position="replace"/>
+                <field name="country_id" position="replace"/>
+                <field name="zip" position="replace"/>
+                <field name="city" position="replace"/>
+                <field name="street2" position="after">
+                    <field name="country_id" placeholder="Country" class="oe_no_button" options='{"no_open": True,"no_create":True}'/>
+                    <field name="state_id" class="oe_no_button" placeholder="Ubication" style="width: 100%%" options='{"no_open": True,"no_create":True}' domain="[('country_id','=',country_id),('type','=','normal')]" string="Ubication"/>
+                    <field name="zip" invisible="1"/>
+                    <field name="city" placeholder="Ciudad"/>
+                </field>
+            </field>
+        </record>  
+    </data>
+</openerp>