RemiFr82
6 months ago
4 changed files with 164 additions and 0 deletions
-
2partner_contact_persons/__init__.py
-
50partner_contact_persons/__manifest__.py
-
37partner_contact_persons/i18n/fr.po
-
75partner_contact_persons/views/res_partner.xml
@ -0,0 +1,2 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
@ -0,0 +1,50 @@ |
|||
# -*- coding: utf-8 -*- |
|||
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). |
|||
{ |
|||
"name": "Persons menu in Contacts", |
|||
"version": "16.0.1.0.0", |
|||
"summary": "Module summary", |
|||
"description": """ |
|||
Module description |
|||
""", |
|||
"author": "RemiFr82", |
|||
"contributors": "", |
|||
"maintainer": "RemiFr82", |
|||
"website": "https://git.myceliandre.fr/RemiFr82/odoo-contact-addons.git", |
|||
"license": "AGPL-3", |
|||
"category": "Customer Relationship Management", |
|||
# "price": 0, |
|||
# "currency": "EUR", |
|||
"application": False, |
|||
"installable": True, |
|||
"auto_install": False, |
|||
# "pre_init_hook": "", |
|||
# "post_init_hook": "", |
|||
# "uninstall_hook": "", |
|||
# "excludes": [], |
|||
# "external_dependencies": [], |
|||
"depends": [ |
|||
"contacts", |
|||
], |
|||
"data": [ |
|||
# Base data |
|||
# "data/ir_model.xml", |
|||
# Security |
|||
# 'security/res_groups.xml', |
|||
# 'security/ir.model.access.csv', |
|||
# 'security/ir_rule.xml', |
|||
# Views |
|||
"views/res_partner.xml", |
|||
# Wizards |
|||
# 'wizards/transient_model.xml', |
|||
# Reports |
|||
# 'reports/report_templates.xml', |
|||
# 'reports/sql_view.xml', |
|||
], |
|||
# "assets": [], |
|||
# "css": [], |
|||
# "images": [], |
|||
# "js": [], |
|||
# "test": [], |
|||
# "demo": [], |
|||
} |
@ -0,0 +1,37 @@ |
|||
# Translation of Odoo Server. |
|||
# This file contains the translation of the following modules: |
|||
# * partner_contact_persons |
|||
# |
|||
msgid "" |
|||
msgstr "" |
|||
"Project-Id-Version: Odoo Server 16.0-20230613\n" |
|||
"Report-Msgid-Bugs-To: \n" |
|||
"POT-Creation-Date: 2024-05-29 12:58+0000\n" |
|||
"PO-Revision-Date: 2024-05-29 12: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: partner_contact_persons |
|||
#: model_terms:ir.actions.act_window,help:partner_contact_persons.action_persons |
|||
msgid "Create a Contact in your address book" |
|||
msgstr "Créer un contact dans votre carnet d'adresses" |
|||
|
|||
#. module: partner_contact_persons |
|||
#: model_terms:ir.actions.act_window,help:partner_contact_persons.action_persons |
|||
msgid "Odoo helps you track all activities related to your contacts." |
|||
msgstr "Odoo vous aide à suivre toutes les activités liées à vos contacts." |
|||
|
|||
#. module: partner_contact_persons |
|||
#: model:ir.actions.act_window,name:partner_contact_persons.action_persons |
|||
#: model:ir.ui.menu,name:partner_contact_persons.res_partner_menu_persons |
|||
msgid "Persons" |
|||
msgstr "Personnes" |
|||
|
|||
#. module: partner_contact_persons |
|||
#: model_terms:ir.ui.view,arch_db:partner_contact_persons.res_partner_view_search |
|||
msgid "Search Person" |
|||
msgstr "Cherche une personne" |
@ -0,0 +1,75 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<!-- License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). --> |
|||
<odoo> |
|||
|
|||
<record id="res_partner_view_search" model="ir.ui.view"> |
|||
<field name="name">res.partner.view.search.persons</field> |
|||
<field name="model">res.partner</field> |
|||
<field name="inherit_id" ref="base.view_res_partner_filter" /> |
|||
<field name="mode">primary</field> |
|||
<field name="arch" type="xml"> |
|||
<search position="attributes"> |
|||
<attribute name="string">Search Person</attribute> |
|||
</search> |
|||
</field> |
|||
</record> |
|||
|
|||
<!-- ACTIONS --> |
|||
|
|||
<record id="action_persons" model="ir.actions.act_window"> |
|||
<field name="name">Persons</field> |
|||
<field name="type">ir.actions.act_window</field> |
|||
<field name="res_model">res.partner</field> |
|||
<field name="view_mode">tree,kanban,form,activity</field> |
|||
<field name="search_view_id" ref="res_partner_view_search" /> |
|||
<field name="context">{'default_is_company': False, |
|||
'search_default_type_person':1,}</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Create a Contact in your address book |
|||
</p> |
|||
<p> |
|||
Odoo helps you track all activities related to your contacts. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
|
|||
<record id="action_persons_view_kanban" model="ir.actions.act_window.view"> |
|||
<field name="sequence" eval="0" /> |
|||
<field name="view_mode">kanban</field> |
|||
<field name="view_id" ref="base.res_partner_kanban_view" /> |
|||
<field name="act_window_id" ref="action_persons" /> |
|||
</record> |
|||
|
|||
<record id="action_persons_view_tree" model="ir.actions.act_window.view"> |
|||
<field name="sequence" eval="1" /> |
|||
<field name="view_mode">tree</field> |
|||
<field name="view_id" ref="base.view_partner_tree" /> |
|||
<field name="act_window_id" ref="action_persons" /> |
|||
</record> |
|||
|
|||
<record id="action_persons_view_form" model="ir.actions.act_window.view"> |
|||
<field name="sequence" eval="2" /> |
|||
<field name="view_mode">form</field> |
|||
<field name="view_id" ref="base.view_partner_form" /> |
|||
<field name="act_window_id" ref="action_persons" /> |
|||
</record> |
|||
|
|||
<!-- MENUS --> |
|||
|
|||
<record id="contacts.res_partner_menu_contacts" model="ir.ui.menu"> |
|||
<field name="name">Companies</field> |
|||
</record> |
|||
|
|||
<menuitem |
|||
id="res_partner_menu_persons" |
|||
name="Persons" |
|||
action="action_persons" |
|||
parent="contacts.menu_contacts" |
|||
sequence="3" /> |
|||
|
|||
<record id="contacts.res_partner_menu_config" model="ir.ui.menu"> |
|||
<field name="sequence">4</field> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue