Browse Source

add a product.supplierinfo field and remove useless files

pull/9/head
gregoire 9 years ago
parent
commit
3bb671ed52
  1. 13
      beesdoo_product/views/beesdoo_product.xml
  2. 1
      beesdoo_simplified_view/__init__.py
  3. 24
      beesdoo_simplified_view/__openerp__.py
  4. 100
      beesdoo_simplified_view/views/views.xml

13
beesdoo_product/views/beesdoo_product.xml

@ -68,6 +68,19 @@
</field>
</record>
<record model="ir.ui.view" id="product_template_form_view">
<field name="name">bees.product</field>
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product_template_form_view"/>
<field name="arch" type="xml">
<group name="label" position="after">
<group>
<field name="name"/>
</group>
</group>
</field>
</record>
<!--<record model="ir.ui.view" id="beesdoo_product_label_form">-->
<!--<field name="name">bees.product.label.form</field>-->
<!--<field name="model">beesdoo.product.label</field>-->

1
beesdoo_simplified_view/__init__.py

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

24
beesdoo_simplified_view/__openerp__.py

@ -1,24 +0,0 @@
# -*- 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', 'purchase', ],
# always loaded
'data': [
# 'security/ir.model.access.csv',
'views/views.xml',
],
}

100
beesdoo_simplified_view/views/views.xml

@ -1,100 +0,0 @@
<openerp>
<data>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_sale">
<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="True"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_purchase">
<field name="name">beesdoo_simplified_view list</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="purchase.view_product_supplier_inherit"/>
<field name="arch" type="xml">
<field name="purchase_method" position="replace">
<field name="purchase_method" widget="radio" invisible="True"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_stock">
<field name="name">beesdoo_simplified_view list</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="route_ids" position="replace">
<field name="route_ids" widget="radio" invisible="True"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_stock_sale_condition">
<field name="name">beesdoo_simplified_view list</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<group name="sale_condition" position="replace">
<group name="sale_condition" widget="radio" invisible="True"/>
</group>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_stock_difference">
<field name="name">beesdoo_simplified_view list</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="property_account_creditor_price_difference" position="replace">
<field name="property_account_creditor_price_difference" widget="radio" invisible="True"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_stock_expense">
<field name="name">beesdoo_simplified_view list</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="property_account_expense_id" position="replace">
<field name="property_account_expense_id" widget="radio" invisible="True"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_stock_income">
<field name="name">beesdoo_simplified_view list</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="property_account_income_id" position="replace">
<field name="property_account_income_id" widget="radio" invisible="True"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="beesdoo_simplified_product_view_form_stock_description">
<field name="name">beesdoo_simplified_view list</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<group name="description" position="replace">
<group name="description" invisible="False">
<separator string="Description pour le ramassage" colspan="4"/>
<field name="description_picking"
placeholder="Description for Pickings (Rack, Row and Case Information)" nolabel="1"
colspan="4" modifiers="{}"/>
<field name="description_picking"
placeholder="Description pour les devis" nolabel="1"
colspan="4" modifiers="{}" invisible="True"/>
<field name="description_picking"
placeholder="Description for Vendors" nolabel="1"
colspan="4" modifiers="{}" invisible="True"/>
</group>
</group>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save