deisy 5 anos atrás
pai
commit
21f686a1dd

BIN
__init__.pyc


+ 19 - 14
__openerp__.py

@@ -19,25 +19,30 @@
 #
 ##############################################################################
 {
-    'name': 'Partner Credit Limit',
+    'name': 'Validaciones para DIKASA',
     'version': '8.0.1.1.0',
-    'summary': 'Valida límite de crédito, límite de cheque y morosidad',
-    'description': """Partner Credit Limit
-    When approving a Sale Order it computes the sum of:
-        * The credit the Partner has to paid
-        * The amount of Sale Orders aproved but not yet invoiced
-        * The invoices that are in draft state
-        * The amount of the Sale Order to be aproved
-    and compares it with the credit limit of the partner. If the
-    credit limit is less it does not allow to approve the Sale
-    Order""",
-    'author': 'ADHOC SA/Eiru',
+    'summary': '',
+    'description': """
+        Valida:
+        -límite de crédito
+        -límite de cheque
+        -morosidad
+        -tipo de proveedor
+        -stock
+    """,
+    'author': 'Eiru',
     'license': 'AGPL-3',
-    'depends': ['sale','account','extra_data_dikasa','sale_invoice_credit_check','eiru_payments_invoices'],
+    'depends': [
+        'sale',
+        'purchase',
+        'account',
+        'extra_data_dikasa',
+        'sale_invoice_credit_check',
+        'eiru_payments_invoices'],
     'data': [
-        'security/partner_credit_limit_security.xml',
         'views/template.xml',
         'views/partner_view.xml',
+
         ],
     'installable': True,
 }

+ 0 - 28
i18n/en.po

@@ -1,28 +0,0 @@
-# Translation of Odoo Server.
-# This file contains the translation of the following modules:
-# * partner_credit_limit
-# 
-# Translators:
-msgid ""
-msgstr ""
-"Project-Id-Version: odoo-addons (8.0)\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-09-09 23:57+0000\n"
-"PO-Revision-Date: 2015-09-01 18:01+0000\n"
-"Last-Translator: Juan Jose Scarafia <scarafia.juanjose@gmail.com>\n"
-"Language-Team: English (http://www.transifex.com/adhoc/ingadhoc-odoo-addons-8-0/language/en/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: \n"
-"Language: en\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#. module: partner_credit_limit
-#: model:res.groups,name:partner_credit_limit.credit_config
-msgid "Config Credit Limit On partners"
-msgstr "Config Credit Limit On partners"
-
-#. module: partner_credit_limit
-#: model:ir.model,name:partner_credit_limit.model_sale_order
-msgid "Sales Order"
-msgstr "Sales Order"

+ 0 - 28
i18n/es.po

@@ -1,28 +0,0 @@
-# Translation of Odoo Server.
-# This file contains the translation of the following modules:
-# * partner_credit_limit
-# 
-# Translators:
-msgid ""
-msgstr ""
-"Project-Id-Version: odoo-addons (8.0)\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2016-01-05 13:55+0000\n"
-"PO-Revision-Date: 2015-09-01 18:01+0000\n"
-"Last-Translator: <>\n"
-"Language-Team: Spanish (http://www.transifex.com/adhoc/ingadhoc-odoo-addons-8-0/language/es/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: \n"
-"Language: es\n"
-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-
-#. module: partner_credit_limit
-#: model:res.groups,name:partner_credit_limit.credit_config
-msgid "Config Credit Limit On partners"
-msgstr ""
-
-#. module: partner_credit_limit
-#: model:ir.model,name:partner_credit_limit.model_sale_order
-msgid "Sales Order"
-msgstr "Pedido de venta"

BIN
models/__init__.pyc


BIN
models/account_invoice.pyc


BIN
models/sale.pyc


+ 0 - 8
security/partner_credit_limit_security.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<openerp>
-<data noupdate="0">
-    <record id="credit_config" model="res.groups">
-        <field name="name">Permitir cambiar límites de crédito</field>
-    </record>
-</data>
-</openerp>

+ 3 - 19
views/partner_view.xml

@@ -6,29 +6,13 @@
             <field name="name">res.partner.partner_credit_limit.form</field>
             <field name="model">res.partner</field>
             <field name="inherit_id" ref="account.view_partner_property_form"/>
+            <field name="groups_id" eval="[(6, 0, [ref('base.group_sale_salesman')])]"/>
             <field name="arch" type="xml">
-                <xpath expr="//form[@string='Partners']//field[@name='credit_limit']" position="attributes">
+                <xpath expr="//field[@name='credit_limit']" position="attributes">
                     <attribute name="readonly">1</attribute>
                 </xpath>
-                <xpath expr="//form[@string='Partners']//field[@name='check_limit']" position="attributes">
-                    <attribute name="readonly">1</attribute>
-                </xpath>
-            </field>
-        </record>
-        <!-- Make not readonly for user_edit_credit_limit  -->
-        <record id="view_credit_editable_partner_form" model="ir.ui.view">
-            <field name="name">res.partner.partner_credit_limit.form</field>
-            <field name="model">res.partner</field>
-            <field name="inherit_id" ref="partner_credit_limit.view_credit_readonly_partner_form"/>
-            <field name="groups_id" eval="[(6, 0, [ref('partner_credit_limit.credit_config')])]"/>
-            <field name="arch" type="xml">
-                <xpath expr="//form[@string='Partners']//field[@name='credit_limit']" position="attributes">
-                    <attribute name="readonly">0</attribute>
-                </xpath>
-                <xpath expr="//form[@string='Partners']//field[@name='check_limit']" position="attributes">
-                    <attribute name="readonly">0</attribute>
-                </xpath>
             </field>
         </record>
+
     </data>
 </openerp>