Skip to content

Commit

Permalink
[IMP] partner_prospect: some code cleaning in order to meet OCA Guide…
Browse files Browse the repository at this point in the history
…lines
  • Loading branch information
oihane committed Jul 13, 2018
1 parent 0cc44a6 commit 4fe7077
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 57 deletions.
14 changes: 8 additions & 6 deletions partner_prospect/README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

================
Partner prospect
Expand All @@ -26,10 +27,9 @@ Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/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/sale-workflow/issues/new?body=module:%20partner_prospect%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

Credits
=======
Expand All @@ -41,6 +41,8 @@ Contributors
* Ana Juaristi <[email protected]>
* Oihane Crucelaegui <[email protected]>

Do not contact contributors directly about support or help with technical issues.

Maintainer
----------

Expand Down
5 changes: 1 addition & 4 deletions partner_prospect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
32 changes: 5 additions & 27 deletions partner_prospect/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,41 +1,19 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# 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/>.
#
##############################################################################
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Partner Prospect",
"version": "11.0.1.0.0",
"license": "AGPL-3",
"category": "Sales Management",
"website": "https://github.com/OCA/sale-workflow",
"author": "AvanzOSC, "
"Serv. Tecnol. Avanzados - Pedro M. Baeza,"
"Odoo Community Association (OCA)",
"website": "http://www.avanzosc.es",
"category": "Sales Management",
"contributors": [
"Esther Martín <[email protected]>",
"Pedro M. Baeza <[email protected]>",
"Ana Juaristi <[email protected]>",
"Oihane Crucelaegui <[email protected]>",
],
"license": "AGPL-3",
"installable": True,
"depends": [
"sale",
],
"data": [
"views/res_partner_view.xml",
],
"installable": True,
}
5 changes: 1 addition & 4 deletions partner_prospect/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import res_partner
7 changes: 2 additions & 5 deletions partner_prospect/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

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


class ResPartner(models.Model):
Expand Down
5 changes: 1 addition & 4 deletions partner_prospect/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import test_partner_prospect
7 changes: 2 additions & 5 deletions partner_prospect/tests/test_partner_prospect.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
# For copyright and license notices, see __openerp__.py file in root directory
##############################################################################
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from openerp.tests.common import TransactionCase
from odoo.tests.common import TransactionCase


class TestPartnerProspect(TransactionCase):
Expand Down
2 changes: 0 additions & 2 deletions partner_prospect/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<data>
<record id="res_partner_prospect_form_view" model="ir.ui.view">
<field name="name">res.partner.prospect.form</field>
<field name="model">res.partner</field>
Expand Down Expand Up @@ -46,5 +45,4 @@
<record id="base.action_partner_customer_form" model="ir.actions.act_window">
<field name="context">{'default_customer':1, 'search_default_customer':1, 'search_default_noprospect': 1, 'default_company_type': 'company','default_is_company': 1}</field>
</record>
</data>
</odoo>

0 comments on commit 4fe7077

Please sign in to comment.