diff --git a/addons/event_sale_order/__init__.py b/addons/event_sale_order/__init__.py new file mode 100644 index 00000000000..6e223a0704b --- /dev/null +++ b/addons/event_sale_order/__init__.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + +import sale_order +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + diff --git a/addons/event_sale_order/__openerp__.py b/addons/event_sale_order/__openerp__.py new file mode 100644 index 00000000000..050de2c3f53 --- /dev/null +++ b/addons/event_sale_order/__openerp__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Events Sales Order', + 'version': '0.1', + 'category': 'Tools', + 'complexity': "easy", + 'description': """ +""", + 'author': 'OpenERP SA', + 'depends': ['event','sale'], + 'update_xml': [ + 'sale_order_view.xml', + ], + 'installable': True, + 'active': False, +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/event_sale_order/sale_order.py b/addons/event_sale_order/sale_order.py new file mode 100644 index 00000000000..6143718f1cb --- /dev/null +++ b/addons/event_sale_order/sale_order.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (). +# +# 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 . +# +############################################################################## + + +from osv import fields, osv +class event_sale_order(osv.osv): + _name= 'event.sale_order' +event_sale_order() +class product(osv.osv): + _inherit='product.product' + _columns={ + 'event_ok':fields.boolean('Event') + } +product() diff --git a/addons/event_sale_order/sale_order_view.xml b/addons/event_sale_order/sale_order_view.xml new file mode 100644 index 00000000000..54ce5bb243c --- /dev/null +++ b/addons/event_sale_order/sale_order_view.xml @@ -0,0 +1,16 @@ + + + + + event.product + product.product + form + + + + + + + + +