Merge pull request #13 from akretion/8-partner-search
[ADD] module partner_search
This commit is contained in:
0
partner_search/__init__.py
Normal file
0
partner_search/__init__.py
Normal file
22
partner_search/__openerp__.py
Normal file
22
partner_search/__openerp__.py
Normal file
@@ -0,0 +1,22 @@
|
||||
# coding: utf-8
|
||||
# © 2016 David BEAL @ Akretion
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
'name': 'Partner Search',
|
||||
'version': '0.8',
|
||||
'category': 'Base',
|
||||
'summary': "Search view improved",
|
||||
'description': """
|
||||
Search view improved: filter on postal code, city, mail, phone, etc...
|
||||
""",
|
||||
'author': 'Akretion',
|
||||
'website': 'http://www.akretion.com',
|
||||
'depends': [
|
||||
'base',
|
||||
],
|
||||
'data': [
|
||||
'partner_view.xml',
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
33
partner_search/i18n/fr_FR.po
Normal file
33
partner_search/i18n/fr_FR.po
Normal file
@@ -0,0 +1,33 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_search
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-02-05 23:48+0100\n"
|
||||
"PO-Revision-Date: 2016-02-05 23:49+0100\n"
|
||||
"Last-Translator: David BEAL <david.beal@akretion.com>\n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr_FR\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: \n"
|
||||
"X-Generator: Poedit 1.8.4\n"
|
||||
|
||||
#. module: partner_search
|
||||
#: view:res.partner:partner_search.view_res_partner_filter
|
||||
msgid "Name, Ref, Email"
|
||||
msgstr "Nom, Ref, Courriel"
|
||||
|
||||
#. module: partner_search
|
||||
#: view:res.partner:partner_search.view_res_partner_filter
|
||||
msgid "Phones"
|
||||
msgstr "Téléphones"
|
||||
|
||||
#. module: partner_search
|
||||
#: view:res.partner:partner_search.view_res_partner_filter
|
||||
msgid "Streets"
|
||||
msgstr "Rues"
|
||||
32
partner_search/i18n/partner_search.pot
Normal file
32
partner_search/i18n/partner_search.pot
Normal file
@@ -0,0 +1,32 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_search
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 8.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-02-05 22:47+0000\n"
|
||||
"PO-Revision-Date: 2016-02-05 22:47+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_search
|
||||
#: view:res.partner:partner_search.view_res_partner_filter
|
||||
msgid "Name, Ref, Email"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_search
|
||||
#: view:res.partner:partner_search.view_res_partner_filter
|
||||
msgid "Phones"
|
||||
msgstr ""
|
||||
|
||||
#. module: partner_search
|
||||
#: view:res.partner:partner_search.view_res_partner_filter
|
||||
msgid "Streets"
|
||||
msgstr ""
|
||||
|
||||
25
partner_search/partner_view.xml
Normal file
25
partner_search/partner_view.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_res_partner_filter" model="ir.ui.view">
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="zip"/>
|
||||
<field name="city"/>
|
||||
<field name="street" string="Streets"
|
||||
filter_domain="['|', ('street', 'like', self), ('street2', 'like', self)]"/>
|
||||
<field name="phone" string="Phones"
|
||||
filter_domain="['|', ('phone', 'like', self), ('mobile', 'like', self)]"/>
|
||||
</field>
|
||||
<!-- Display the real field names of the search -->
|
||||
<field name="name" position="attributes">
|
||||
<attribute name="string">Name, Ref, Email</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
BIN
partner_search/static/src/description/icon.png
Normal file
BIN
partner_search/static/src/description/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 378 B |
Reference in New Issue
Block a user