Skip to content

Commit ba3b33b

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

File tree

14 files changed

+625
-0
lines changed

14 files changed

+625
-0
lines changed

partner_title_order/README.rst

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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+
Add sequence to partner title to be able to determine their order.
29+
30+
**Table of contents**
31+
32+
.. contents::
33+
:local:
34+
35+
Bug Tracker
36+
===========
37+
38+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
39+
In case of trouble, please check there if your issue has already been reported.
40+
If you spotted it first, help us smashing it by providing a detailed and welcomed
41+
`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**>`_.
42+
43+
Do not contact contributors directly about support or help with technical issues.
44+
45+
Credits
46+
=======
47+
48+
Authors
49+
~~~~~~~
50+
51+
* Camptocamp
52+
53+
Contributors
54+
~~~~~~~~~~~~
55+
56+
* Simone Orsi <simone.orsi@camptocamp.com>
57+
* `Trobz <https://trobz.com>`_:
58+
* Khoi Vo <khoivha@trobz.com>
59+
60+
Other credits
61+
~~~~~~~~~~~~~
62+
63+
**Financial support**
64+
65+
* Cosanum
66+
* Camptocamp R&D
67+
68+
Maintainers
69+
~~~~~~~~~~~
70+
71+
This module is maintained by the OCA.
72+
73+
.. image:: https://odoo-community.org/logo.png
74+
:alt: Odoo Community Association
75+
:target: https://odoo-community.org
76+
77+
OCA, or the Odoo Community Association, is a nonprofit organization whose
78+
mission is to support the collaborative development of Odoo features and
79+
promote its widespread use.
80+
81+
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/14.0/partner_title_order>`_ project on GitHub.
82+
83+
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": "Odoo Community Association (OCA)",
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>
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**Financial support**
2+
3+
* Cosanum
4+
* Camptocamp R&D
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)