Browse Source

[ADD] Remove invoice policy field from product view

pull/9/head
gregoire 9 years ago
parent
commit
ea67680360
  1. 1
      beesdoo_simplified_view/__init__.py
  2. 24
      beesdoo_simplified_view/__openerp__.py
  3. 16
      beesdoo_simplified_view/views/views.xml

1
beesdoo_simplified_view/__init__.py

@ -0,0 +1 @@
# -*- coding: utf-8 -*-

24
beesdoo_simplified_view/__openerp__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
{
'name': "beesdoo_simplified_view",
'description': """
Long description of module's purpose
""",
# Categories can be used to filter modules in modules listing
# Check https://github.com/odoo/odoo/blob/master/openerp/addons/base/module/module_data.xml
# for the full list
'category': 'Sales',
'version': '0.1',
# any module necessary for this one to work correctly
'depends': ['base','sale'],
# always loaded
'data': [
# 'security/ir.model.access.csv',
'views/views.xml',
],
}

16
beesdoo_simplified_view/views/views.xml

@ -0,0 +1,16 @@
<openerp>
<data>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form">
<field name="name">beesdoo_simplified_view list</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="sale.product_template_form_view_invoice_policy"/>
<field name="arch" type="xml">
<field name="invoice_policy" position="replace">
<field name="invoice_policy" widget="radio" invisible="False"/>
</field>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save