Skip to content

Commit

Permalink
[IMP] base_scheduler_creator clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis de Lattre authored and sebastienbeau committed Aug 22, 2011
1 parent cb4dd47 commit 4ea06a3
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 52 deletions.
34 changes: 18 additions & 16 deletions base_scheduler_creator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# -*- coding: utf-8 -*-
# -*- encoding: utf-8 -*-
#########################################################################
# #
# Copyright (C) 2010 Sébastien Beau #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU 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 General Public License for more details. #
# #
#You should have received a copy of the GNU General Public License #
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
#
# Base scheduler creator module for OpenERP
# Copyright (C) 2010 Sébastien Beau <[email protected]>
#
# 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 schedulder_creator
41 changes: 22 additions & 19 deletions base_scheduler_creator/__openerp__.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,36 @@
# -*- coding: utf-8 -*-
# -*- encoding: utf-8 -*-
#########################################################################
# #
# Copyright (C) 2010 Sébastien Beau #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU 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 General Public License for more details. #
# #
#You should have received a copy of the GNU General Public License #
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
#
# Base scheduler creator module for OpenERP
# Copyright (C) 2010 Sébastien Beau <[email protected]>
#
# 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" : "base_scheduler_creator",
"version" : "1.0",
"depends" : [],
"license": "AGPL-3",
"depends" : ["base"],
"author" : "Akretion",
"description": """Allows the automatic creation of a scheduler.""",
"website" : "http://www.akretion.com/",
"category" : "Customer Modules",
"category" : "Generic Modules/Other",
"init_xml" : [],
"demo_xml" : [],
"update_xml" : ["schedulder_creator.xml"],
"active": False,
"installable": True,

}
32 changes: 17 additions & 15 deletions base_scheduler_creator/schedulder_creator.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# -*- encoding: utf-8 -*-
#########################################################################
# #
# Copyright (C) 2010 Sébastien Beau #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU 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 General Public License for more details. #
# #
#You should have received a copy of the GNU General Public License #
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
#
# Base scheduler creator module for OpenERP
# Copyright (C) 2010 Sébastien Beau <[email protected]>
#
# 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
Expand Down
3 changes: 1 addition & 2 deletions base_scheduler_creator/schedulder_creator.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

<record id="scheduler_creator_wizard" model="ir.ui.view">
<field name="name">scheduler.creator.wizard.form</field>
<field name="priority">20</field>
<field name="model">scheduler.creator.wizard</field>
<field name="type">form</field>
<field name="arch" type="xml">
Expand All @@ -21,7 +20,7 @@
</record>

<record id="action_scheduler_creator_wizard" model="ir.actions.act_window">
<field name="name">create a scheduler</field>
<field name="name">Create a scheduler</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">scheduler.creator.wizard</field>
<field name="view_type">form</field>
Expand Down

0 comments on commit 4ea06a3

Please sign in to comment.