Skip to content

Commit

Permalink
Merge e1cb367 into 39b6896
Browse files Browse the repository at this point in the history
  • Loading branch information
foutoucour committed Dec 5, 2014
2 parents 39b6896 + e1cb367 commit 5a806ff
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 0 deletions.
21 changes: 21 additions & 0 deletions product_template_header/__init__.py
@@ -0,0 +1,21 @@
# -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2010 - 2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# 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/>.
#
##############################################################################
48 changes: 48 additions & 0 deletions product_template_header/__openerp__.py
@@ -0,0 +1,48 @@
# -*- encoding: utf-8 -*-
#
# OpenERP, Open Source Management Solution
# This module copyright (C) 2014 Savoir-faire Linux
# (<http://www.savoirfairelinux.com>).
#
# 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 Template Header',
'version': '1.0',
'author': 'Savoir-faire Linux',
'maintainer': 'Savoir-faire Linux',
'website': 'http://www.savoirfairelinux.com',
'category': 'Sales',
'summary': 'Add a header to product template views',
'description': """
Product Template Header
=======================
This custom module adds a header to product template form view
Contributors
------------
* Jordi Riera (jordi.riera@savoirfairelinux.com)
* William BEVERLLY (william.beverlly@savoirfairelinux.com)
""",
'depends': [
'product',
],
'external_dependencies': {},
'data': [
'views/product_template.xml'
],
'installable': True,
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions product_template_header/views/product_template.xml
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="product_template_header" model="ir.ui.view">
<field name="name">product.template.header</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<field name="is_product_variant" position="before">
<header>
</header>
</field>
</field>
</record>
</data>
</openerp>

0 comments on commit 5a806ff

Please sign in to comment.