From d0af9f97b268b4e5ddd17fd7a5615dafed7ef8e2 Mon Sep 17 00:00:00 2001 From: eloyoussef Date: Sun, 4 Feb 2018 03:41:02 +0100 Subject: [PATCH] first commit --- contact_customized/__init__.py | 1 + contact_customized/__manifest__.py | 19 ++++ contact_customized/i18n/fr.po | 123 +++++++++++++++++++++++++ contact_customized/models/__init__.py | 3 + contact_customized/models/__init__.pyc | Bin 0 -> 167 bytes contact_customized/models/type.py | 55 +++++++++++ contact_customized/models/type.pyc | Bin 0 -> 2413 bytes contact_customized/views/contact.xml | 101 ++++++++++++++++++++ contact_customized/views/type.xml | 46 +++++++++ sample_addon/__init__.py | 0 sample_addon/__manifest__.py | 29 ++++++ 11 files changed, 377 insertions(+) create mode 100755 contact_customized/__init__.py create mode 100755 contact_customized/__manifest__.py create mode 100755 contact_customized/i18n/fr.po create mode 100755 contact_customized/models/__init__.py create mode 100755 contact_customized/models/__init__.pyc create mode 100755 contact_customized/models/type.py create mode 100755 contact_customized/models/type.pyc create mode 100755 contact_customized/views/contact.xml create mode 100755 contact_customized/views/type.xml create mode 100644 sample_addon/__init__.py create mode 100644 sample_addon/__manifest__.py diff --git a/contact_customized/__init__.py b/contact_customized/__init__.py new file mode 100755 index 0000000..bff786c --- /dev/null +++ b/contact_customized/__init__.py @@ -0,0 +1 @@ +import models diff --git a/contact_customized/__manifest__.py b/contact_customized/__manifest__.py new file mode 100755 index 0000000..837f1c4 --- /dev/null +++ b/contact_customized/__manifest__.py @@ -0,0 +1,19 @@ +{ + 'name':'Customized Contact', + 'version': '1.0', + 'author': 'Youssef ELOUAHBY', + 'website': 'http://www.test.ye', + 'sequence': 2, + 'category': 'Tools', + 'summary': 'Customers, Vendors, Partners,...', + 'description': """ + This module allows customization of contacts + """, + 'depends': ['base','contacts'], + 'data': ['views/contact.xml', + 'views/type.xml' + ], + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/contact_customized/i18n/fr.po b/contact_customized/i18n/fr.po new file mode 100755 index 0000000..1fca23b --- /dev/null +++ b/contact_customized/i18n/fr.po @@ -0,0 +1,123 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * contact_customized +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-01-13 17:58+0000\n" +"PO-Revision-Date: 2018-01-13 17:58+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: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_Actif +msgid "Active" +msgstr "Actif" + +#. module: contact_customized +#: model:ir.ui.view,arch_db:contact_customized.view_contact_calendar +msgid "Calendar" +msgstr "Calendrier" + +#. module: contact_customized +#: model:ir.ui.menu,name:contact_customized.configuration_type_contact +msgid "Configuration" +msgstr "Configuration" + +#. module: contact_customized +#: model:ir.actions.act_window,name:contact_customized.contact_type_action +#: model:ir.ui.menu,name:contact_customized.typecontact_menu +msgid "Contact Type" +msgstr "Contact Type" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_res_partner_type_id +#: model:ir.model.fields,field_description:contact_customized.field_res_users_type_id +msgid "Contact type" +msgstr "Type de contact" + +#. module: contact_customized +#: model:ir.ui.view,arch_db:contact_customized.view_contact_pivot +msgid "Contacts" +msgstr "Contacts" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_create_date +msgid "Created on" +msgstr "Créé le" + + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_res_partner_dateOfFirstContact +#: model:ir.model.fields,field_description:contact_customized.field_res_users_dateOfFirstContact +msgid "Date of first contact" +msgstr "Date du 1er contact" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_res_partner_fullAddress +#: model:ir.model.fields,field_description:contact_customized.field_res_users_fullAddress +msgid "Full address" +msgstr "Adresse complète" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_id +msgid "ID" +msgstr "ID" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_res_partner_isVip +#: model:ir.model.fields,field_description:contact_customized.field_res_users_isVip +msgid "Is VIP" +msgstr "Contact privilégié" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type___last_update +msgid "Last Modified on" +msgstr "Dernière Modification le" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: contact_customized +#: model:ir.model,name:contact_customized.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: contact_customized +#: model:ir.model.fields,field_description:contact_customized.field_contact_type_name +msgid "Type" +msgstr "Type" + +#. module: contact_customized +#: sql_constraint:contact.type:0 +msgid "Type must be unique!" +msgstr "Type must be unique!" + +#. module: contact_customized +#: model:ir.ui.view,arch_db:contact_customized.view_partner_search_persocontact_inherited +msgid "VIP" +msgstr "VIP" + diff --git a/contact_customized/models/__init__.py b/contact_customized/models/__init__.py new file mode 100755 index 0000000..94f0878 --- /dev/null +++ b/contact_customized/models/__init__.py @@ -0,0 +1,3 @@ +import type + + diff --git a/contact_customized/models/__init__.pyc b/contact_customized/models/__init__.pyc new file mode 100755 index 0000000000000000000000000000000000000000..ebfecd85c7fe2ac8d42a73b64e5236281b6b1cf8 GIT binary patch literal 167 zcmZSn%*!?FQ)E;!0~9a;X$K%K761|{K*Y$9!@v*)W&~@1WHbK*fu9B=kXgb4A}R|~ zHGnh&f+#iva`p2IO7!zn^7Hi*Q&RHtiuIH8^GXtvOX8DDi%arzGpkZl^mFr5Qge#+ g current_date: + raise Warning('Invalid Date!') diff --git a/contact_customized/models/type.pyc b/contact_customized/models/type.pyc new file mode 100755 index 0000000000000000000000000000000000000000..9005818967cc4985a2c00c197550090619dcfcdc GIT binary patch literal 2413 zcmb_eYi}Dx6usk3ocE(?LMef=0VE7UiIgvVsj9vdQHhpnTNPmmtrpL?U9%5oXB?U; zNQm;+_(l8xIOne21mz1*9Pjna+35`zq#sE+C;d4woY9eDUdnmt&$sYmx8z zOJchh91Cw8%VHPhNpA^<=YQhUn?oxwsBD~vE`Eo(E3DUMSzA~5U@)5YXu~3m&4LSg z>DrM6jC`9lRbD+0D`*euDrAH3^mOdrVCI~=c>H4+Cxi-IfC}({>gHrLPnb3m-~kK< z-vyEg5b0eMyTHIXXbjP<%5$t;mgGrqjXSTxOpo3VINM*r!2K*QPUELdR(XV!BQgT? zp<%ED&M39v^H(na1tW^EamSOqaaO0_!O9aCh{3vHHYtLxsIt=Osgo){p12U`w>eB&W*Coib2d#Jxn2i1LX+q{1t8&&g-Kg8SVRj-h8uxVlW7qilvTT0Gx_>Ae z=!CL?ejpoY2BLy^mc%V$yaVNM9G3v&u(R%HMZK%)T@$;a6IR8piCc%{I{giCn=-nh zc1!HK*bT9pVz0<+D0WNlm%&WwU)4F=Vz07mx2LZD4z;>N2AI>v`Ta4nQUUQb^m(bi z86M@05BJ&|6f>0xWv7%KO^PB0+gRumy}n-{znaHEU5+QXlT^lY7t%~8c{2XM$0zwX zp)@?tzK>(#dKeFRP&{S*^5x| z{vICx8U|PWXCr4KBY^){&Sq_lU;7fCO4Mnjxjl1&y}vs<(tJO2YVo+ZGLq(G=8R;v zr5=+aMS`lwpdM*Ci+j{!@*d4D&HFSTz-SR0g6umj*Se^!5v~{}A7aYeUxw@0g(qsg zkf>{x%=U$6(}XQ}FKa@nC9OoF)P9Xd0IAR(Y=;(PA{8Sos^ptBbLQ&E8NNn-oRj7& zss{|i`>XPQ&XH%0cu<{WMQ&qiX0OM}pRkx{nydOJ<%A)&b%uV< z7n5^ z)eG0;L3N(ijdhJeOPC8ye8TdsA9|e?3G1*=KE>EMJ=*%OwU`Bm!FVD=EjFyh@0uHC zx6?JBtUc=KTZfof<2B5d3Cb>^{#qrFI?mX4F9%NFIbO4@#609b4_fvUp7;NRu7uuf SUw*e3jb`;Dvx&d!>wf{z)%ofG literal 0 HcmV?d00001 diff --git a/contact_customized/views/contact.xml b/contact_customized/views/contact.xml new file mode 100755 index 0000000..47986b3 --- /dev/null +++ b/contact_customized/views/contact.xml @@ -0,0 +1,101 @@ + + + + + + + base.view_partner_form.perso.inherited + res.partner + + + + + + + + + + + + + + base.tree.perso.inherited + res.partner + + + + + + + + + + + + base.srch.perso.inherited + res.partner + + + + + + + + + + + + + + base.kanban.perso.inherited + res.partner + + + + + + + +
  • ,
  • +
  • + +
    + +
    +
    + + + + partner.calendar + res.partner + + + + + + + + + + + partner.pivot + res.partner + + + + + + + + + + + kanban,tree,calendar,pivot,graph,form + + + +
    +
    diff --git a/contact_customized/views/type.xml b/contact_customized/views/type.xml new file mode 100755 index 0000000..5546e4f --- /dev/null +++ b/contact_customized/views/type.xml @@ -0,0 +1,46 @@ + + + + + + + contact search + contact.type + + + + + + + + + + + contact tree + contact.type + + + + + + + + + + + Contact Type + contact.type + form + tree,form + + + + + + + + + + diff --git a/sample_addon/__init__.py b/sample_addon/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sample_addon/__manifest__.py b/sample_addon/__manifest__.py new file mode 100644 index 0000000..c363b54 --- /dev/null +++ b/sample_addon/__manifest__.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- + +# Copyright 2017 Firstname Lastname +# +# 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 . + +{ + 'name': 'Sample module', + 'summary': 'Sample module that does nothing', + 'description': """ Sample module that does nothing """, + 'version': '10.0.0.0.1', + 'category': 'Useless', + 'author': 'Firstname Lastname', + 'license': 'AGPL-3', + 'application': False, + 'installable': True, + 'depends': ['base'] +}