[NEW] partner_profiles_geolocalize_usability: create add-on
This commit is contained in:
committed by
Stéphan Sainléger
parent
ac95e1537c
commit
d2e558f13e
2
partner_profiles_geolocalize_usability/.gitignore
vendored
Normal file
2
partner_profiles_geolocalize_usability/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.*~
|
||||
*pyc
|
53
partner_profiles_geolocalize_usability/README.rst
Normal file
53
partner_profiles_geolocalize_usability/README.rst
Normal file
@@ -0,0 +1,53 @@
|
||||
======================================
|
||||
partner_profiles_geolocalize_usability
|
||||
======================================
|
||||
|
||||
Adapt geolocalize usability to partner profiles logic
|
||||
|
||||
Installation
|
||||
============
|
||||
|
||||
Use Odoo normal module installation procedure to install
|
||||
``partner_profiles_geolocalize_usability``.
|
||||
|
||||
Description
|
||||
===========
|
||||
|
||||
This module adds the geolocation data in the form view of public profiles.
|
||||
|
||||
Configuration
|
||||
=============
|
||||
|
||||
No configuration needed.
|
||||
|
||||
Known issues / Roadmap
|
||||
======================
|
||||
|
||||
None yet.
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `our issues website <https://github.com/elabore-coop/partner-tools/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
|
||||
=======
|
||||
|
||||
Contributors
|
||||
------------
|
||||
|
||||
* Stéphan Sainléger
|
||||
|
||||
Funders
|
||||
-------
|
||||
|
||||
The development of this module has been financially supported by:
|
||||
* Elabore (https://elabore.coop)
|
||||
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
This module is maintained by Elabore.
|
5
partner_profiles_geolocalize_usability/__init__.py
Normal file
5
partner_profiles_geolocalize_usability/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# from . import models
|
||||
# from . import controllers
|
||||
# from . import wizard
|
38
partner_profiles_geolocalize_usability/__manifest__.py
Normal file
38
partner_profiles_geolocalize_usability/__manifest__.py
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 2023 Stéphan Sainléger (Elabore)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
{
|
||||
"name": "partner_profiles_geolocalize_usability",
|
||||
"version": "12.0.1.0.0",
|
||||
"author": "Elabore",
|
||||
"website": "https://elabore.coop",
|
||||
"maintainer": "Stéphan Sainléger",
|
||||
"license": "AGPL-3",
|
||||
"category": "Tools",
|
||||
"summary": "Adapt geolocalize usability to partner profiles logic",
|
||||
# any module necessary for this one to work correctly
|
||||
"depends": [
|
||||
"base",
|
||||
"partner_geolocalize_usability",
|
||||
"partner_profiles",
|
||||
],
|
||||
"qweb": [
|
||||
# "static/src/xml/*.xml",
|
||||
],
|
||||
"external_dependencies": {
|
||||
"python": [],
|
||||
},
|
||||
# always loaded
|
||||
"data": [
|
||||
"views/res_partner.xml",
|
||||
],
|
||||
# only loaded in demonstration mode
|
||||
"demo": [],
|
||||
"js": [],
|
||||
"css": [],
|
||||
"installable": True,
|
||||
# Install this module automatically if all dependency have been previously
|
||||
# and independently installed. Used for synergetic or glue modules.
|
||||
"auto_install": False,
|
||||
"application": False,
|
||||
}
|
1
partner_profiles_geolocalize_usability/i18n/README
Normal file
1
partner_profiles_geolocalize_usability/i18n/README
Normal file
@@ -0,0 +1 @@
|
||||
This directory should contain the *.po for Odoo translation.
|
22
partner_profiles_geolocalize_usability/i18n/fr.po
Normal file
22
partner_profiles_geolocalize_usability/i18n/fr.po
Normal file
@@ -0,0 +1,22 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_profiles_geolocalize_usability
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-09-12 13:52+0000\n"
|
||||
"PO-Revision-Date: 2023-09-12 13:52+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_profiles_geolocalize_usability
|
||||
#: model_terms:ir.ui.view,arch_db:partner_profiles_geolocalize_usability.partner_geolocalize_form_view_public
|
||||
msgid "Geolocate"
|
||||
msgstr "Géolocaliser"
|
||||
|
@@ -0,0 +1,22 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * partner_profiles_geolocalize_usability
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 12.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-09-12 13:51+0000\n"
|
||||
"PO-Revision-Date: 2023-09-12 13:51+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_profiles_geolocalize_usability
|
||||
#: model_terms:ir.ui.view,arch_db:partner_profiles_geolocalize_usability.partner_geolocalize_form_view_public
|
||||
msgid "Geolocate"
|
||||
msgstr ""
|
||||
|
24
partner_profiles_geolocalize_usability/views/res_partner.xml
Normal file
24
partner_profiles_geolocalize_usability/views/res_partner.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="partner_geolocalize_form_view_public">
|
||||
<field name="name">partner.gogocarto.form.public</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="partner_profiles.partner_profiles_form_view" />
|
||||
<field name='priority'>99</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@id='public_data']" position="inside">
|
||||
<group>
|
||||
<field name="manual_geolocate" />
|
||||
<button
|
||||
string="Geolocate"
|
||||
name="geo_localize"
|
||||
colspan="2"
|
||||
icon="fa-check"
|
||||
type="object" attrs="{'invisible':[('manual_geolocate', '=', True)]}" />
|
||||
<field name="partner_latitude" attrs="{'readonly':[('manual_geolocate', '=', False)]}" />
|
||||
<field name="partner_longitude" attrs="{'readonly':[('manual_geolocate', '=', False)]}" />
|
||||
</group>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
Reference in New Issue
Block a user