Skip to content

Commit

Permalink
[ADD] setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA-git-bot authored and eugen-don committed Jun 13, 2017
1 parent 07175f2 commit 8c4727f
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 76 deletions.
23 changes: 21 additions & 2 deletions mgmtsystem_review/README.rst
@@ -1,3 +1,7 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

========================
Management System Review
========================
Expand Down Expand Up @@ -27,23 +31,38 @@ To use this module, you need to:

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/128/8.0
:target: https://runbot.odoo-community.org/runbot/128/10.0

Known issues / Roadmap
======================

* Please report any issue to https://github.com/OCA/management-system/issues
Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/Management-system/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback `here <https://github.com/OCA/
Management-system/issues/new?body=module:%20
mgmtsystem_review%0Aversion:%20
10.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.


Credits
=======

Images
------

* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.

Contributors
------------

* Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com>
* Loïc Faure-Lacroix <loic.lacroix@savoirfairelinux.com>
* Gervais Naoussi <gervaisnaoussi@gmail.com>
* Luk Vermeylen <luk@allmas-it.be>
* Eugen Don <eugen.don@don-systems.de>

Maintainer
----------
Expand Down
26 changes: 5 additions & 21 deletions mgmtsystem_review/__manifest__.py
@@ -1,26 +1,10 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# 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/>.
#
##############################################################################
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Management System - Review",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"author": "Savoir-faire Linux, Odoo Community Association (OCA)",
"website": "http://www.savoirfairelinux.com",
"license": "AGPL-3",
Expand All @@ -37,5 +21,5 @@
'report/review.xml',
'report/report.xml',
],
'installable': False,
'installable': True,
}
23 changes: 3 additions & 20 deletions mgmtsystem_review/models/mgmtsystem_review.py
@@ -1,25 +1,8 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# 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/>.
#
##############################################################################
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import api, fields, models
from odoo import api, fields, models


class MgmtsystemReview(models.Model):
Expand Down
29 changes: 6 additions & 23 deletions mgmtsystem_review/models/mgmtsystem_review_line.py
@@ -1,25 +1,8 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
#
# 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/>.
#
##############################################################################
# Copyright (C) 2010 Savoir-faire Linux (<http://www.savoirfairelinux.com>).
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import fields, models
from odoo import fields, models


class MgmtsystemReviewLine(models.Model):
Expand All @@ -36,17 +19,17 @@ class MgmtsystemReviewLine(models.Model):
action_id = fields.Many2one(
'mgmtsystem.action',
'Action',
select=True)
index=True)
nonconformity_id = fields.Many2one(
'mgmtsystem.nonconformity',
'Nonconformity',
select=True)
index=True)
decision = fields.Text('Decision')
review_id = fields.Many2one(
'mgmtsystem.review',
'Review',
ondelete='cascade',
select=True)
index=True)
company_id = fields.Many2one(
'res.company',
'Company',
Expand Down
2 changes: 0 additions & 2 deletions mgmtsystem_review/report/report.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<report id="review_report_mgmtsystem_review"
string="Review report"
model="mgmtsystem.review"
Expand All @@ -14,5 +13,4 @@
</t>
</t>
</template>
</data>
</odoo>
2 changes: 0 additions & 2 deletions mgmtsystem_review/report/review.xml
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="review_report">

<t t-call="report.external_layout">
Expand Down Expand Up @@ -143,5 +142,4 @@
</div>
</t>
</template>
</data>
</odoo>
2 changes: 1 addition & 1 deletion mgmtsystem_review/tests/test_create_review.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from openerp.tests import common
from odoo.tests import common
from datetime import datetime


Expand Down
8 changes: 3 additions & 5 deletions mgmtsystem_review/views/mgmtsystem_review.xml
@@ -1,5 +1,4 @@
<odoo>
<data>

<!-- Review Lines -->

Expand Down Expand Up @@ -87,8 +86,8 @@
<field name="arch" type="xml">
<search string="Reviews">
<group>
<filter name="current" icon="terp-document-new" domain="[('state','=','open')]" string="Open" help="Open Reviews"/>
<filter icon="terp-camera_test" domain="[('state','=','done')]" string="Closed" help="Closed Reviews"/>
<filter name="current" domain="[('state','=','open')]" string="Open" help="Open Reviews"/>
<filter domain="[('state','=','done')]" string="Closed" help="Closed Reviews"/>
<separator orientation="vertical"/>
<field name="name"/>
<field name="date"/>
Expand All @@ -105,7 +104,7 @@
<field name="arch" type="xml">
<form string="Review">
<header>
<button name="button_close" string="Close" states="open" type="object" icon="gtk-jump-to"/>
<button name="button_close" string="Close" states="open" type="object"/>
<field name="state" widget="statusbar" select="1" readonly="1"/>
</header>
<sheet>
Expand Down Expand Up @@ -190,5 +189,4 @@
sequence="50"
groups="mgmtsystem.group_mgmtsystem_manager"/>

</data>
</odoo>

0 comments on commit 8c4727f

Please sign in to comment.