فهرست منبع

commit inicial

Rodney Enciso Arias 8 سال پیش
کامیت
1b9a50e7ca
6فایلهای تغییر یافته به همراه64 افزوده شده و 0 حذف شده
  1. 1 0
      __init__.py
  2. BIN
      __init__.pyc
  3. 47 0
      __openerp__.py
  4. 1 0
      models/__init__.py
  5. BIN
      models/__init__.pyc
  6. 15 0
      views/product_view.xml

+ 1 - 0
__init__.py

@@ -0,0 +1 @@
+from . import models

BIN
__init__.pyc


+ 47 - 0
__openerp__.py

@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    Copyright (C) 2015  BMyA SA / Blanco Martin & Asociados
+#    (http://blancomartin.cl)
+#    All Rights Reserved.o
+#
+#    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': 'Product Hide Tabs',
+    'version': '8.0.0.1.0',
+    'category': 'Products',
+    'sequence': 14,
+    'summary': 'Invoicing, Commercial, Partners',
+    'description': """
+Product Hide Tabs
+=================
+This is a security feature, in order to hide sale/inventory tabs in product
+form view.
+    """,
+    'author':  'Blanco Martin & Asociados',
+    'website': 'http://blancomartin.cl',
+    'images': [
+    ],
+    'depends': [
+        'stock',
+    ],
+    'data': [
+        'views/product_view.xml',
+    ],
+    'installable': True,
+    'auto_install': False,
+    'application': False,
+}

+ 1 - 0
models/__init__.py

@@ -0,0 +1 @@
+# models

BIN
models/__init__.pyc


+ 15 - 0
views/product_view.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+    	 <record id="product_template_hide_tabs" model="ir.ui.view">
+            <field name="name">product.template_hide_tabs</field>
+            <field name="model">product.template</field>
+            <field name="inherit_id" ref="product.product_template_form_view"/>
+            <field name="arch" type="xml">
+                <xpath expr="//form/sheet/notebook//page[@string='Inventory']" position="attributes">
+                	<attribute name="attrs">{'invisible':True}</attribute>
+                </xpath>
+            </field>
+        </record>
+    </data>
+</openerp>