9 changed files with 254 additions and 0 deletions
-
68partner_contact_affected_by_terrorism/README.rst
-
19partner_contact_affected_by_terrorism/__init__.py
-
32partner_contact_affected_by_terrorism/__openerp__.py
-
28partner_contact_affected_by_terrorism/i18n/es.po
-
27partner_contact_affected_by_terrorism/i18n/partner_contact_affected_by_terrorism.pot
-
25partner_contact_affected_by_terrorism/models.py
-
BINpartner_contact_affected_by_terrorism/static/description/icon.png
-
35partner_contact_affected_by_terrorism/static/description/icon.svg
-
20partner_contact_affected_by_terrorism/views/res_partner.xml
@ -0,0 +1,68 @@ |
|||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg |
|||
:alt: License: AGPL-3 |
|||
|
|||
Module name |
|||
=========== |
|||
|
|||
This module was written to extend the functionality of Odoo to support having a |
|||
checkbox that indicates if your contacts have been affected by terrorism. |
|||
|
|||
Installation |
|||
============ |
|||
|
|||
To install this module, you need to: |
|||
|
|||
* Install the OCA repository `partner-contact`_. |
|||
|
|||
Configuration |
|||
============= |
|||
|
|||
No configuration is needed. |
|||
|
|||
Usage |
|||
===== |
|||
|
|||
To use this module, you need to: |
|||
|
|||
* Edit or create a partner. |
|||
* Ensure it is **not** a company. |
|||
* Go to the *Personal Information* sheet. |
|||
* Set the *Affected by terrorism* checkbox there. |
|||
|
|||
For further information, please visit: |
|||
|
|||
* https://www.odoo.com/forum/help-1 |
|||
* https://github.com/OCA/partner-contact/ |
|||
|
|||
Known issues / Roadmap |
|||
====================== |
|||
|
|||
* None. |
|||
|
|||
Credits |
|||
======= |
|||
|
|||
* Icon from `Font Awesome <http://fontawesome.io/>`_. |
|||
|
|||
Contributors |
|||
------------ |
|||
|
|||
* Jairo Llopis <j.llopis@grupoesoc.es> |
|||
|
|||
Maintainer |
|||
---------- |
|||
|
|||
.. image:: https://odoo-community.org/logo.png |
|||
:alt: Odoo Community Association |
|||
: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. |
|||
|
|||
To contribute to this module, please visit http://odoo-community.org. |
|||
|
|||
|
|||
.. _partner-contact: https://github.com/OCA/partner-contact/ |
@ -0,0 +1,19 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
# Odoo, Open Source Management Solution |
|||
# Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|||
# |
|||
# 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 . import models |
@ -0,0 +1,32 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
# Odoo, Open Source Management Solution |
|||
# Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|||
# |
|||
# 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": "Contact affected by terrorism", |
|||
"summary": "Know if a contact has been affected by terrorism", |
|||
"version": "1.0.0", |
|||
"author": "Odoo Community Association (OCA)", |
|||
"category": "Customer Relationship Management", |
|||
"website": "https://odoo-community.org/", |
|||
"depends": [ |
|||
"partner_contact_personal_information_page", |
|||
], |
|||
"data": [ |
|||
"views/res_partner.xml", |
|||
], |
|||
} |
@ -0,0 +1,28 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * partner_contact_affected_by_terrorism |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0-20150514\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2015-05-25 11:48+0000\n" |
|||
"PO-Revision-Date: 2015-05-25 13:49+0100\n" |
|||
"Last-Translator: Jairo Llopis <j.llopis@grupoesoc.es>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: 8bit\n" |
|||
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
|||
"X-Generator: Poedit 1.7.6\n" |
|||
"Language: es_ES\n" |
|||
|
|||
#. module: partner_contact_affected_by_terrorism |
|||
#: field:res.partner,affected_by_terrorism:0 |
|||
msgid "Affected by terrorism" |
|||
msgstr "Afectado por terrorismo" |
|||
|
|||
#. module: partner_contact_affected_by_terrorism |
|||
#: model:ir.model,name:partner_contact_affected_by_terrorism.model_res_partner |
|||
msgid "Partner" |
|||
msgstr "Empresa" |
@ -0,0 +1,27 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * partner_contact_affected_by_terrorism |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 8.0-20150514\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2015-05-25 11:48+0000\n" |
|||
"PO-Revision-Date: 2015-05-25 11:48+0000\n" |
|||
"Last-Translator: <>\n" |
|||
"Language-Team: \n" |
|||
"MIME-Version: 1.0\n" |
|||
"Content-Type: text/plain; charset=UTF-8\n" |
|||
"Content-Transfer-Encoding: \n" |
|||
"Plural-Forms: \n" |
|||
|
|||
#. module: partner_contact_affected_by_terrorism |
|||
#: field:res.partner,affected_by_terrorism:0 |
|||
msgid "Affected by terrorism" |
|||
msgstr "" |
|||
|
|||
#. module: partner_contact_affected_by_terrorism |
|||
#: model:ir.model,name:partner_contact_affected_by_terrorism.model_res_partner |
|||
msgid "Partner" |
|||
msgstr "" |
|||
|
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
|
|||
# Odoo, Open Source Management Solution |
|||
# Copyright (C) 2014-2015 Grupo ESOC <www.grupoesoc.es> |
|||
# |
|||
# 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 openerp import fields, models |
|||
|
|||
|
|||
class Partner(models.Model): |
|||
_inherit = "res.partner" |
|||
|
|||
affected_by_terrorism = fields.Boolean() |
After Width: 100 | Height: 100 | Size: 1.9 KiB |
@ -0,0 +1,35 @@ |
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
|||
<svg |
|||
xmlns:dc="http://purl.org/dc/elements/1.1/" |
|||
xmlns:cc="http://creativecommons.org/ns#" |
|||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
|||
xmlns:svg="http://www.w3.org/2000/svg" |
|||
xmlns="http://www.w3.org/2000/svg" |
|||
width="128" |
|||
height="128" |
|||
id="svg3035" |
|||
version="1.1"> |
|||
<defs |
|||
id="defs3037" /> |
|||
<metadata |
|||
id="metadata3040"> |
|||
<rdf:RDF> |
|||
<cc:Work |
|||
rdf:about=""> |
|||
<dc:format>image/svg+xml</dc:format> |
|||
<dc:type |
|||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> |
|||
<dc:title></dc:title> |
|||
</cc:Work> |
|||
</rdf:RDF> |
|||
</metadata> |
|||
<text |
|||
id="text3338" |
|||
y="107.83778" |
|||
x="64" |
|||
style="font-style:normal;font-weight:normal;font-size:122.74576569px;line-height:125%;font-family:Sans;text-align:center;letter-spacing:0px;word-spacing:0px;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" |
|||
xml:space="preserve"><tspan |
|||
y="107.83778" |
|||
x="64" |
|||
id="tspan3340"></tspan></text> |
|||
</svg> |
@ -0,0 +1,20 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<openerp> |
|||
<data> |
|||
|
|||
<record id="form" model="ir.ui.view"> |
|||
<field name="name">Affected by terrorism field</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" |
|||
ref="partner_contact_personal_information_page.personal_information"/> |
|||
<field name="arch" type="xml"> |
|||
<data> |
|||
<xpath expr="//group[@name='personal_information_group']"> |
|||
<field name="affected_by_terrorism"/> |
|||
</xpath> |
|||
</data> |
|||
</field> |
|||
</record> |
|||
|
|||
</data> |
|||
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue