浏览代码

Campo Lógico anticipo en account invoice

sebas 2 年之前
当前提交
8dcfdc08e1
共有 7 个文件被更改,包括 95 次插入0 次删除
  1. 12 0
      __init__.py
  2. 二进制
      __init__.pyc
  3. 35 0
      __openerp__.py
  4. 30 0
      account_invoice.py
  5. 二进制
      account_invoice.pyc
  6. 18 0
      account_invoice_view.xml
  7. 二进制
      static/description/icon.png

+ 12 - 0
__init__.py

@@ -0,0 +1,12 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#                                                                               #
+#    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/>.      #
+#                                                                               #
+#################################################################################
+###################################################################################
+# Product Brand is an Openobject module wich enable Brand management for products #
+###################################################################################
+from . import account_invoice

二进制
__init__.pyc


+ 35 - 0
__openerp__.py

@@ -0,0 +1,35 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#
+#                                                                               #
+#    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/>.      #
+#                                                                               #
+#################################################################################
+###################################################################################
+# Product features is an Openobject module wich enable features management for products #
+###################################################################################
+{
+    'name': 'Campo Lógico anticipo en account invoice',
+    'version': '0.1',
+    'category': 'Product',
+    'description': """
+Campo Lógico anticipo en account invoice
+========================================
+
+Campo Lógico anticipo en account invoice y estado si es un anticipo de pago la factura para separar de ventas normales
+
+    """,
+    'author': 'Eiru/Sebastian Penayo',
+    'website': 'http://www.eiru.com',
+    'depends': ['base','account'],
+    'data': [
+        'account_invoice_view.xml'
+    ],
+    'installable': True,
+}

+ 30 - 0
account_invoice.py

@@ -0,0 +1,30 @@
+# -*- encoding: utf-8 -*-
+#################################################################################
+#                                                                               #
+#    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/>.      #
+#                                                                               #
+#################################################################################
+
+from openerp import models, fields, api
+
+class account_invoice(models.Model):
+    _inherit = 'account.invoice'
+    _name = 'account.invoice'
+
+    is_anticipo = fields.Boolean('Es un Anticipo')
+
+
+    _defaults = {
+        'is_anticipo': False
+    }

二进制
account_invoice.pyc


+ 18 - 0
account_invoice_view.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<openerp>
+    <data>
+        <record id="account_invoice_anticipo" model="ir.ui.view">
+            <field name="name">account.invoice.anticipo</field>
+            <field name="model">account.invoice</field>
+            <field name="inherit_id" ref="account.invoice_form" />
+            <field name="arch" type="xml">
+                <field name="account_id" position="after">
+                        <field name="is_anticipo"/>
+                </field>
+            </field>
+        </record>
+
+
+    </data>
+</openerp>

二进制
static/description/icon.png