Skip to content

Commit c7c9ec6

Browse files
simahawkkv1612
authored andcommitted
[ADD] partner_title_order
1 parent 5a35489 commit c7c9ec6

12 files changed

+620
-0
lines changed

partner_title_order/README.rst

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
===================
2+
Partner title order
3+
===================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Beta
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
17+
:target: https://github.com/OCA/partner-contact/tree/14.0/partner_title_order
18+
:alt: OCA/partner-contact
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/partner-contact-14-0/partner-contact-14-0-partner_title_order
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/134/14.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
===================
29+
Partner title order
30+
===================
31+
32+
Add sequence to partner title to be able to determine their order.
33+
34+
**Table of contents**
35+
36+
.. contents::
37+
:local:
38+
39+
Bug Tracker
40+
===========
41+
42+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
43+
In case of trouble, please check there if your issue has already been reported.
44+
If you spotted it first, help us smashing it by providing a detailed and welcomed
45+
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_title_order%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
46+
47+
Do not contact contributors directly about support or help with technical issues.
48+
49+
Credits
50+
=======
51+
52+
Authors
53+
~~~~~~~
54+
55+
* Camptocamp
56+
57+
Contributors
58+
~~~~~~~~~~~~
59+
60+
* Simone Orsi <simone.orsi@camptocamp.com>
61+
* `Trobz <https://trobz.com>`_:
62+
* Khoi Vo <khoivha@trobz.com>
63+
64+
Other credits
65+
~~~~~~~~~~~~~
66+
67+
The development of this module was financially supported by Camptocamp
68+
69+
Maintainers
70+
~~~~~~~~~~~
71+
72+
This module is maintained by the OCA.
73+
74+
.. image:: https://odoo-community.org/logo.png
75+
:alt: Odoo Community Association
76+
:target: https://odoo-community.org
77+
78+
OCA, or the Odoo Community Association, is a nonprofit organization whose
79+
mission is to support the collaborative development of Odoo features and
80+
promote its widespread use.
81+
82+
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/14.0/partner_title_order>`_ project on GitHub.
83+
84+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

partner_title_order/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

partner_title_order/__manifest__.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2020 Camptocamp SA
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
{
4+
"name": "Partner title order",
5+
"summary": "Makes partner title sortable by sequence",
6+
"version": "14.0.1.0.0",
7+
"category": "Hidden",
8+
"author": "Camptocamp",
9+
"license": "AGPL-3",
10+
"depends": [
11+
"base",
12+
],
13+
"website": "https://github.com/OCA/partner-contact",
14+
"data": [
15+
"views/res_partner_title_views.xml",
16+
],
17+
"installable": True,
18+
}
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import res_partner_title
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2020 Camptocamp SA
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl)
3+
4+
from odoo import fields, models
5+
6+
7+
class ResPartnerTitle(models.Model):
8+
_inherit = "res.partner.title"
9+
_order = 'sequence, name'
10+
11+
sequence = fields.Integer(default=10)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Simone Orsi <simone.orsi@camptocamp.com>
2+
* `Trobz <https://trobz.com>`_:
3+
* Khoi Vo <khoivha@trobz.com>
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The development of this module was financially supported by Camptocamp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add sequence to partner title to be able to determine their order.

0 commit comments

Comments
 (0)