forked from OCA/partner-contact
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1356 from OCA/18.0
Syncing from upstream OCA/partner-contact (18.0)
- Loading branch information
Showing
20 changed files
with
896 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
================ | ||
Partner Priority | ||
================ | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:e48ceb94a582b2b011e688116639399d5e3713edd27569af735c78c5e2291745 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github | ||
:target: https://github.com/OCA/partner-contact/tree/18.0/partner_priority | ||
:alt: OCA/partner-contact | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/partner-contact-18-0/partner-contact-18-0-partner_priority | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=18.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module adds priority on partners. Priorities can be used to rank | ||
partners or as a way to mark the sensitivity level of a customer. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
1. Configure via CONTACT -> CONFIGURATION -> PRIORITIES. | ||
2. Set the priority level on the partner form. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_priority%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
------- | ||
|
||
* Patrick Wilson | ||
|
||
Contributors | ||
------------ | ||
|
||
- Patrick Wilson <[email protected]> | ||
- Tharathip Chaweewongphan <[email protected]> | ||
- `Tecnativa <https://www.tecnativa.com>`__: | ||
|
||
- Juan Carlos Oñate | ||
|
||
Maintainers | ||
----------- | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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. | ||
|
||
.. |maintainer-patrickrwilson| image:: https://github.com/patrickrwilson.png?size=40px | ||
:target: https://github.com/patrickrwilson | ||
:alt: patrickrwilson | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-patrickrwilson| | ||
|
||
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/18.0/partner_priority>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Copyright 2019 Patrick Wilson <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
"name": "Partner Priority", | ||
"summary": "Adds priority to partners.", | ||
"author": "Patrick Wilson, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/partner-contact", | ||
"category": "Customer Relationship Management", | ||
"version": "18.0.1.0.0", | ||
"license": "AGPL-3", | ||
"depends": ["contacts"], | ||
"data": [ | ||
"views/res_partner.xml", | ||
"views/partner_priority.xml", | ||
"security/ir.model.access.csv", | ||
"data/partner_priority_data.xml", | ||
], | ||
"development_status": "Beta", | ||
"maintainers": ["patrickrwilson"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!-- Copyright 2019 Patrick Wilson <[email protected]> | ||
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). --> | ||
<odoo noupdate="1"> | ||
<record id="res_partner_priority_low" model="partner.priority"> | ||
<field name="name">Low</field> | ||
<field name="description">Low Priority</field> | ||
<field name="sequence">1</field> | ||
</record> | ||
<record id="res_partner_priority_normal" model="partner.priority"> | ||
<field name="name">Normal</field> | ||
<field name="description">Normal Priority</field> | ||
<field name="sequence">3</field> | ||
</record> | ||
<record id="res_partner_priority_elevated" model="partner.priority"> | ||
<field name="name">Elevated</field> | ||
<field name="description">Elevated Priority</field> | ||
<field name="sequence">5</field> | ||
</record> | ||
<record id="res_partner_priority_critical" model="partner.priority"> | ||
<field name="name">Critical</field> | ||
<field name="description">Critical Priority</field> | ||
<field name="sequence">8</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_priority | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 15.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2023-10-09 07:40+0000\n" | ||
"Last-Translator: Ivorra78 <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: es\n" | ||
"MIME-Version: 1.0\n" | ||
"Content-Type: text/plain; charset=UTF-8\n" | ||
"Content-Transfer-Encoding: \n" | ||
"Plural-Forms: nplurals=2; plural=n != 1;\n" | ||
"X-Generator: Weblate 4.17\n" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model,name:partner_priority.model_res_partner | ||
msgid "Contact" | ||
msgstr "Contacto" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__create_uid | ||
msgid "Created by" | ||
msgstr "Creado por" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__create_date | ||
msgid "Created on" | ||
msgstr "Creado el" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__description | ||
msgid "Description" | ||
msgstr "Descripción" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__display_name | ||
msgid "Display Name" | ||
msgstr "Mostrar Nombre" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__id | ||
msgid "ID" | ||
msgstr "ID (identificación)" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority____last_update | ||
msgid "Last Modified on" | ||
msgstr "Última Modificación el" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__write_uid | ||
msgid "Last Updated by" | ||
msgstr "Última actualización por" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__write_date | ||
msgid "Last Updated on" | ||
msgstr "Última Actualización el" | ||
|
||
#. module: partner_priority | ||
#: model_terms:ir.ui.view,arch_db:partner_priority.partner_priority_view_form | ||
msgid "Name" | ||
msgstr "Nombre" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model,name:partner_priority.model_partner_priority | ||
msgid "Partner Priority" | ||
msgstr "Socio Prioritario" | ||
|
||
#. module: partner_priority | ||
#: model:ir.ui.menu,name:partner_priority.res_partner_priority_menu | ||
msgid "Priorities" | ||
msgstr "Prioridades" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__name | ||
#: model:ir.model.fields,field_description:partner_priority.field_res_partner__priority_id | ||
#: model:ir.model.fields,field_description:partner_priority.field_res_users__priority_id | ||
#: model_terms:ir.ui.view,arch_db:partner_priority.partner_priority_view_form | ||
#: model_terms:ir.ui.view,arch_db:partner_priority.view_res_partner_filter | ||
msgid "Priority" | ||
msgstr "Prioridad" | ||
|
||
#. module: partner_priority | ||
#: model:ir.actions.act_window,name:partner_priority.partner_priority_action | ||
msgid "Priority Action" | ||
msgstr "Acción Prioritaria" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__sequence | ||
msgid "Sequence" | ||
msgstr "Secuencia" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * partner_priority | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 18.0\n" | ||
"Report-Msgid-Bugs-To: \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_priority | ||
#: model:ir.model,name:partner_priority.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.ui.menu,name:partner_priority.res_partner_priority_menu | ||
msgid "Contact Priorities" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__create_uid | ||
msgid "Created by" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__create_date | ||
msgid "Created on" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__description | ||
msgid "Description" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__display_name | ||
msgid "Display Name" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__id | ||
msgid "ID" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__write_uid | ||
msgid "Last Updated by" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__write_date | ||
msgid "Last Updated on" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model_terms:ir.ui.view,arch_db:partner_priority.partner_priority_view_form | ||
msgid "Name" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model,name:partner_priority.model_partner_priority | ||
msgid "Partner Priority" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__name | ||
#: model:ir.model.fields,field_description:partner_priority.field_res_partner__priority_id | ||
#: model:ir.model.fields,field_description:partner_priority.field_res_users__priority_id | ||
#: model_terms:ir.ui.view,arch_db:partner_priority.partner_priority_view_form | ||
#: model_terms:ir.ui.view,arch_db:partner_priority.view_res_partner_filter | ||
msgid "Priority" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.actions.act_window,name:partner_priority.partner_priority_action | ||
msgid "Priority Action" | ||
msgstr "" | ||
|
||
#. module: partner_priority | ||
#: model:ir.model.fields,field_description:partner_priority.field_partner_priority__sequence | ||
msgid "Sequence" | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import partner_priority | ||
from . import res_partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2019 Patrick Wilson <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class PartnerPriority(models.Model): | ||
_name = "partner.priority" | ||
_order = "sequence" | ||
_description = "Partner Priority" | ||
|
||
name = fields.Char(string="Priority", required=True) | ||
description = fields.Text(required=True) | ||
sequence = fields.Integer( | ||
required=True, | ||
default=0, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright 2019 Patrick Wilson <[email protected]> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResPartner(models.Model): | ||
_inherit = "res.partner" | ||
|
||
priority_id = fields.Many2one("partner.priority") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- Patrick Wilson \<<[email protected]>\> | ||
- Tharathip Chaweewongphan \<<[email protected]>\> | ||
- [Tecnativa](https://www.tecnativa.com): | ||
- Juan Carlos Oñate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
This module adds priority on partners. Priorities can be used to rank | ||
partners or as a way to mark the sensitivity level of a customer. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
To use this module, you need to: | ||
|
||
1. Configure via CONTACT -\> CONFIGURATION -\> PRIORITIES. | ||
2. Set the priority level on the partner form. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
access_partner_priority_user,partner.priority.user,model_partner_priority,base.group_user,1,0,0,0, | ||
access_partner_priority_manager,partner.priority.manager,model_partner_priority,base.group_partner_manager,1,1,1,1, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.