Pārlūkot izejas kodu

ADD ocultar_impresion_boton

Sebas 6 gadi atpakaļ
revīzija
5417521a9b
7 mainītis faili ar 142 papildinājumiem un 0 dzēšanām
  1. 19 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 46 0
      __openerp__.py
  4. 20 0
      account_invoice_view.xml
  5. 20 0
      purchase_view.xml
  6. 20 0
      sale_view.xml
  7. 17 0
      stock_view.xml

+ 19 - 0
__init__.py

@@ -0,0 +1,19 @@
+# -*- coding: 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/>.
+#
+##############################################################################
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

BIN
__init__.pyc


+ 46 - 0
__openerp__.py

@@ -0,0 +1,46 @@
+# -*- coding: 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/>.
+#
+##############################################################################
+
+{
+    'name' : "Oculta botones de impresión",
+    'author' : 'Eiru Software/Sebastian Penayo',
+    'summary': 'Ventas SO/Compras PO/Factura DO',
+    'description': """
+
+Oculta botones de impresión de formularios principales,
+
+* Ventas Normales, Compras y Facturas.
+
+""",
+    'category': 'Herramientas extras',
+    'sequence': 10,
+    'website' : 'http://www.eiru.com',
+    'images' : [],
+    'depends' : ['account','purchase','sale'],
+    'demo' : [],
+    'data' : [
+            'account_invoice_view.xml',
+            'purchase_view.xml',
+            'sale_view.xml',
+    ],
+    'auto_install': False,
+    'application': True,
+    'installable': True,
+}
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

+ 20 - 0
account_invoice_view.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="invoice_form_externo" model="ir.ui.view">
+            <field name="name">invoice.form.externo</field>
+            <field name="model">account.invoice</field>
+            <field name="inherit_id" ref="account.invoice_form"/>
+            <field name="arch" type="xml">
+            	<data>
+                    <button name="invoice_print" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+                    <button name="invoice_print" string="Print Invoice" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+				</data>
+            </field>
+        </record>
+	</data>
+</openerp>

+ 20 - 0
purchase_view.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="purchase_order_form_externo" model="ir.ui.view">
+            <field name="name">purchase.order.form.externo</field>
+            <field name="model">purchase.order</field>
+            <field name="inherit_id" ref="purchase.purchase_order_form"/>
+            <field name="arch" type="xml">
+            	<data>
+                    <button name="print_quotation" states="draft" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+                    <button name="print_quotation" states="sent" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+				</data>
+            </field>
+        </record>
+	</data>
+</openerp>

+ 20 - 0
sale_view.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_order_form_externo" model="ir.ui.view">
+            <field name="name">view.order.form.externo</field>
+            <field name="model">sale.order</field>
+            <field name="inherit_id" ref="sale.view_order_form"/>
+            <field name="arch" type="xml">
+            	<data>
+                    <button name="print_quotation" states="draft" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+                    <button name="print_quotation" states="sent,progress,manual" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+				</data>
+            </field>
+        </record>
+	</data>
+</openerp>

+ 17 - 0
stock_view.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_picking_out_form_externo" model="ir.ui.view">
+            <field name="name">view.picking.out.form.externo</field>
+            <field name="model">stock.picking.out</field>
+            <field name="inherit_id" ref="stock.view_picking_out_form"/>
+            <field name="arch" type="xml">
+            	<data>
+                    <button name="%(stock.report_picking_list_out)d" position="attributes">
+                    	<attribute name="invisible">True</attribute>
+                    </button>
+				</data>
+            </field>
+        </record>
+	</data>
+</openerp>