浏览代码

Filtro en en la vista de factura de cliente, nuevo filtro pro número de factura legal del cliente

Sebas 5 年之前
当前提交
945bf5b0fc
共有 7 个文件被更改,包括 85 次插入0 次删除
  1. 6 0
      __init__.py
  2. 二进制
      __init__.pyc
  3. 51 0
      __openerp__.py
  4. 8 0
      accountinvoice_filter.py
  5. 二进制
      accountinvoice_filter.pyc
  6. 二进制
      static/description/icon.png
  7. 20 0
      view/account_invoice_view.xml

+ 6 - 0
__init__.py

@@ -0,0 +1,6 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from . import accountinvoice_filter

二进制
__init__.pyc


+ 51 - 0
__openerp__.py

@@ -0,0 +1,51 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2015  ADHOC SA  (http://www.adhoc.com.ar)
+#    All Rights Reserved.
+#
+#    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": "Filtros por número de factura legal física",
+    'version': '8.0.0.1.0',
+    'category': 'Tools',
+    'sequence': 14,
+    'author':  'Sebastian Penayo/Eiru',
+    'website': '',
+    'license': 'AGPL-3',
+    'summary': '',
+    'description': """
+Filtros de Facturas por número de factura legal física
+=====================
+Este modulo es una extension del modulo account_invoice que permite filtrar por número de factura legal física.
+""",
+    'depends': [
+        'account',
+    ],
+    'external_dependencies': {
+    },
+    'data': [
+        'view/account_invoice_view.xml'
+    ],
+    'demo': [
+    ],
+    'test': [
+    ],
+    'installable': True,
+    'auto_install': False,
+    'application': False,
+}
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 8 - 0
accountinvoice_filter.py

@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+# For copyright and license notices, see __openerp__.py file in module root
+# directory
+##############################################################################
+from openerp import models, api, fields, _
+from datetime import datetime
+import json

二进制
accountinvoice_filter.pyc


二进制
static/description/icon.png


+ 20 - 0
view/account_invoice_view.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<openerp>
+    <data>
+
+        <record id="view_accountinvoices_filter_search1" model="ir.ui.view">
+            <field name="name">accountinvoices.filter.search1</field>
+            <field name="model">account.invoice</field>
+            <field name="inherit_id" ref="account.view_account_invoice_filter" />
+            <field name="arch" type="xml">
+              <search>
+
+                  <field name="supplier_invoice_number"/>
+
+               </search>
+            </field>
+        </record>
+
+
+    </data>
+</openerp>