Commit af34b973 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Updated some views.

parent 7ed92d2e
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import ecologistics_storage
ecologistics_storage.ecologistics_storage()
\ No newline at end of file
import ecologistics_storage
\ No newline at end of file
......@@ -10,13 +10,18 @@
'maintainer': 'Cédric Bonhomme @ CRP Henri Tudor',
'summary': 'Access to EPCIS events from a Fosstrak platform.',
'description': """
Manage ...............................
======================================
Access to EPCIS events from a Fosstrak platform
===============================================
Description.
Manage products and events collected by a Fosstrak platform..
""",
'depends': ['base'],
'init_xml' : ['product_view.xml'],
'init_xml' : [],
"update_xml" : ['product_view.xml'],
'data': [
'base_menu.xml'
],
'installable': True,
'active': True,
'auto_install': True,
}
......@@ -21,5 +21,8 @@ class ecologistics_storage(osv.osv):
'active': fields.boolean('Active', help="By unchecking the active field, you may hide a product without deleting it.")
}
_defaults = {
'code' : 'XXX',
'description' : 'Product description',
'active': True,
}
ecologistics_storage()
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_product_tree" model="ir.ui.view">
<field name="name">stock.product.tree</field>
<field name="model">stock.product</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Products">
<field name="code" />
<field name="description" />
<field name="active" />
</tree>
</field>
<record id="view_product_tree" model="stock.product">
<field name="code">stock.product.code</field>
<field name="description">stock.product.description</field>
<field name="active">stock.product.active</field>
</record>
</data>
</openerp>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment