Skip to content

Commit

Permalink
[FIX] format
Browse files Browse the repository at this point in the history
  • Loading branch information
noahzaozao committed Aug 24, 2016
1 parent 927c9c2 commit 354af50
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 39 deletions.
50 changes: 38 additions & 12 deletions connector_dns/README.rst
@@ -1,8 +1,9 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

=============
Connector Dns
Connector DNS
=============

This module aims to allows to manage your DNS domain through Odoo.
Expand All @@ -19,42 +20,67 @@ Configuration

To configure this module, you need to:

* No specific configuration needed.
#. Go to ...

.. figure:: path/to/local/image.png
:alt: alternative description
:width: 600 px

Usage
=====

To use this module, you need to:

#. Go to ...

For further information, please visit:
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/{repo_id}/{branch}

* https://www.odoo.com/forum/help-1
.. repo_id is available in https://github.com/OCA/maintainer-tools/blob/master/tools/repos_with_ids.txt
.. branch is "8.0" for example
Known issues / Roadmap
======================

* TBD

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/{project_repo}/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.

Credits
=======

Images
------

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

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

* Eric Caudal <eric.caudal@elico-corp.com>
* Noah Wang <noah.wang@elico-corp.com>
* Liu Lixia <liu.lixia@elico-corp.com>
* Liu Lixia <contact@elico-corp.com>
* Augustin Cisterne-Kaas
* Contact <contact@elico-corp.com>

Maintainer
----------

.. image:: http://odoo-community.org/logo.png
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
:target: https://odoo-community.org

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization
whose mission is to support the collaborative development of Odoo features
and promote its widespread use.
OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

To contribute to this module, please visit http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.
22 changes: 2 additions & 20 deletions connector_dns/connector.py
@@ -1,24 +1,6 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2010-2015 Elico Corp (<http://www.elico-corp.com>)
# Authors: Liu Lixia, Augustin Cisterne-Kaas
#
# 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 2015 Elico Corp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from openerp import models, fields
from openerp.addons.connector.connector import (Environment)
from openerp.addons.connector.checkpoint import checkpoint
Expand Down
19 changes: 15 additions & 4 deletions connector_dns/dns_menu.xml
Expand Up @@ -5,11 +5,22 @@
name="DNS"
parent="connector.menu_connector_root"/>

<menuitem name="Backends" id="menu_dns_backend" parent="menu_dns" sequence="10" action="dns_backend_action"/>
<menuitem name="Backends"
id="menu_dns_backend"
parent="menu_dns"
sequence="10"
action="dns_backend_action"/>

<menuitem name="Domains" id="menu_dns_domain" parent="menu_dns" sequence="20" action="dns_domain_action"/>

<menuitem name="Records" id="menu_dns_record" parent="menu_dns" sequence="30" action="dns_record_action"/>
<menuitem name="Domains"
id="menu_dns_domain"
parent="menu_dns"
sequence="20"
action="dns_domain_action"/>

<menuitem name="Records"
id="menu_dns_record"
parent="menu_dns"
sequence="30"
action="dns_record_action"/>
</data>
</openerp>
6 changes: 3 additions & 3 deletions connector_dns/dns_view.xml
Expand Up @@ -80,14 +80,14 @@
<div class="oe_title" style="width: 390px;">
<label class="oe_edit_only" for="name" string="Name"/>
<h1>
<field name="name" class="oe_inline" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="name" class="oe_inline" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</h1>
</div>
<group>
<field name="backend_id" attrs="{'readonly':[('state','!=','draft')]}"/>
<field name="backend_id" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
</group>
<label for="record_ids" string='Subdomains'/>
<field name="record_ids" attrs="{'readonly':[('state','!=','done')]}">
<field name="record_ids" attrs="{'readonly': [('state', '!=', 'done')]}">
<tree editable="bottom">
<field name="name"/>
<field name="domain_id" invisible="1"/>
Expand Down

0 comments on commit 354af50

Please sign in to comment.