Khushboo Bhatt(openerp) has proposed merging lp:~openerp-dev/openobject-addons/trunk-hr_car-vta-base_reminder-kbh into lp:~openerp-dev/openobject-addons/trunk-fleet-apa.
Requested reviews: Amit Patel (OpenERP) (apa-tiny) For more details, see: https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-hr_car-vta-base_reminder-kbh/+merge/122619 Hello, I have added new module that is: Base_reminder And created object and views of reminder. Thanks, KBH. -- https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-hr_car-vta-base_reminder-kbh/+merge/122619 Your team OpenERP R&D Team is subscribed to branch lp:~openerp-dev/openobject-addons/trunk-fleet-apa.
=== added directory 'base_reminder' === added file 'base_reminder/__init__.py' --- base_reminder/__init__.py 1970-01-01 00:00:00 +0000 +++ base_reminder/__init__.py 2012-09-04 06:37:50 +0000 @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + +import base_reminder + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'base_reminder/__openerp__.py' --- base_reminder/__openerp__.py 1970-01-01 00:00:00 +0000 +++ base_reminder/__openerp__.py 2012-09-04 06:37:50 +0000 @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + + +{ + 'name': 'Reminder', + 'version': '1.0', + 'category': 'Hidden/Dependency', + "sequence": 2, + 'description': """ +Service reminders help you stay on top of a vehicle's service +and preventative maintenance schedule. +Set a reminder based on time, usage (miles, km, hours) or both. +""", + 'author': 'OpenERP SA', + 'website': 'http://www.openerp.com', + 'depends': ['email_template'], + 'init_xml': [], + 'update_xml': ['base_reminder_view.xml'], + 'demo_xml': [], + 'test': [], + 'installable': True, + 'application': True, + 'auto_install': False, + 'certificate': '', + 'images': [], +} +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'base_reminder/base_reminder.py' --- base_reminder/base_reminder.py 1970-01-01 00:00:00 +0000 +++ base_reminder/base_reminder.py 2012-09-04 06:37:50 +0000 @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). +# +# 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 <http://www.gnu.org/licenses/>. +# +############################################################################## + +from osv import fields, osv + +class reminder_reminder(osv.osv): + """ + Reminder Information + """ + _name = 'reminder.reminder' + _description = 'Reminder Information' + + _columns = { + 'next_date': fields.date("Next Date"), + 'meter_interval': fields.float("Meter Interval",), + 'time_interval': fields.float("Time Interval",), + 'template_id': fields.many2one('email.template', "Template"), + 'select_schedule': fields.selection([('day', 'Day(s)'), ('week', 'Week(s)'), ('month', 'Month(s)'), ('year', 'Year(s)')], 'Schedule', ), + } + + _defaults = { + 'select_schedule': 'day' + } + +reminder_reminder() +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'base_reminder/base_reminder_view.xml' --- base_reminder/base_reminder_view.xml 1970-01-01 00:00:00 +0000 +++ base_reminder/base_reminder_view.xml 2012-09-04 06:37:50 +0000 @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + + <record id="base_reminder_form_view" model="ir.ui.view"> + <field name="name">reminder.reminder.form</field> + <field name="model">reminder.reminder</field> + <field name="arch" type="xml"> + <form string="reminder details" version="7.0"> + <header> + </header> + <sheet> + <div class="oe_title"> + <label for="next_date" string="Date" class="oe_edit_only"/> + <h1> + <field name="next_date" class="oe_inline"/> + </h1> + <label for="meter_interval" class="oe_edit_only"/> + <h2> + <field name="meter_interval"/> Miles + </h2> + <label for="time_interval" class="oe_edit_only"/> + <h2> + <field name="time_interval" class="oe_inline"/> + <field name="select_schedule" class="oe_inline"/> + </h2> + </div> + <group> + <field name="template_id"/> + </group> + </sheet> + </form> + </field> + </record> + + <record id="base_reminder_tree_view" model="ir.ui.view"> + <field name="name">reminder.reminder.tree</field> + <field name="model">reminder.reminder</field> + <field name="arch" type="xml"> + <tree string="reminder details"> + <field name="next_date"/> + <field name="meter_interval"/> + <field name="time_interval"/> + <field name="select_schedule"/> + <field name="template_id"/> + </tree> + </field> + </record> + + <record id="action_base_reminder_form" model="ir.actions.act_window"> + <field name="name">Reminder</field> + <field name="type">ir.actions.act_window</field> + <field name="res_model">reminder.reminder</field> + <field name="view_type">form</field> + <field name="view_mode">tree,form</field> + <field name="view_id" ref="base_reminder.base_reminder_tree_view"/> + </record> + + <menuitem id="menu_main_reminder" name="Reminder" + sequence="50" /> + <menuitem id="menu_reminder" name="Reminder" parent="menu_main_reminder"/> + <menuitem id="menu_service_reminder" name="Service Reminder" parent="menu_reminder" + action="action_base_reminder_form"/> + + </data> +</openerp> \ No newline at end of file
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-gtk Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-dev-gtk More help : https://help.launchpad.net/ListHelp

