Browse Source

Quitar contado credito de account invoice.

sebas 4 years ago
parent
commit
a10c166bbb

+ 1 - 3
__init__.py

@@ -16,7 +16,5 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.      #
 #                                                                               #
 #################################################################################
-###################################################################################
-# Product Brand is an Openobject module wich enable Brand management for products #
-###################################################################################
+
 from . import factura_venta_imperio, nota_credito_imperio, account_invoice, res_currency

+ 0 - 0
__init__.pyc


+ 0 - 1
__openerp__.py

@@ -36,7 +36,6 @@ Formato para imprimir la factura legal de imperio
     'data': [
         'factura_venta_imperio.xml',
         'nota_credito_imperio.xml',
-        'account_invoice_view.xml',
         'res_currency_view.xml'
     ],
     'installable': True,

+ 20 - 20
account_invoice.py

@@ -19,23 +19,23 @@
 
 from openerp import models, fields, api
 
-class account_invoice(models.Model):
-    _inherit = 'account.invoice'
-    _name = 'account.invoice'
-
-    contado = fields.Boolean('Contado')
-    credito = fields.Boolean('Crédito')
-
-    _defaults = {
-        'contado': True
-    }
-
-    @api.one
-    @api.onchange('credito')
-    def cambiar_estado_credito(self):
-        self.contado = not self.credito
-
-    @api.one
-    @api.onchange('contado')
-    def cambiar_estado_contado(self):
-        self.credito = not self.contado
+# class account_invoice(models.Model):
+#     _inherit = 'account.invoice'
+#     _name = 'account.invoice'
+#
+#     contado = fields.Boolean('Contado')
+#     credito = fields.Boolean('Crédito')
+#
+#     _defaults = {
+#         'contado': True
+#     }
+#
+#     @api.one
+#     @api.onchange('credito')
+#     def cambiar_estado_credito(self):
+#         self.contado = not self.credito
+#
+#     @api.one
+#     @api.onchange('contado')
+#     def cambiar_estado_contado(self):
+#         self.credito = not self.contado

+ 0 - 0
account_invoice.pyc


+ 2 - 2
account_invoice_view.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 
-<openerp>
+<!-- <openerp>
     <data>
         <record id="account_invoice_cred_cont" model="ir.ui.view">
             <field name="name">account.invoice.cred.cont</field>
@@ -14,4 +14,4 @@
             </field>
         </record>
     </data>
-</openerp>
+</openerp> -->

+ 0 - 0
factura_venta_imperio.pyc


+ 0 - 0
nota_credito_imperio.pyc


+ 0 - 0
res_currency.pyc


+ 0 - 0
static/description/icon.png