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

Initial commit.

parents
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import ecologistics_storage
ecologistics_storage.ecologistics_storage()
\ No newline at end of file
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# /usr/share/pyshared/openerp/addons/stock/
{
'name': 'Ecologistics - Storage',
'version': '0.1',
'category': 'Wharehouse',
'sequence': 3,
'author': 'Cédric Bonhomme @ CRP Henri Tudor',
'summary': 'Access to EPCIS events from a Fosstrak platform.',
'description': """
Manage ...............................
======================================
Description.
""",
'depends': [],
'init_xml' : ['product_view.xml'],
'installable': True,
'application': False,
'auto_install': False,
}
\ No newline at end of file
#! /usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
#
# Module: ecologistics_storage
#
##############################################################################
from openerp.osv import fields, osv
import time
class ecologistics_storage(osv.osv):
"""
"""
_name = "stock.product"
_description = "Product"
_columns = {
'code': fields.char('Code', size=100, required=True, help"EPCIS code of the product."),
'description': fields.char('Description', size=100, required=True, help"Description of the product."),
'active': fields.boolean('Active', help="By unchecking the active field, you may hide a product without deleting it.")
}
_defaults = {
'active': True,
}
<?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>
</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