Skip to content

Commit 5cac29b

Browse files
committed
[ADD] partner_purchase_manager
Add purchase manager in partner model. MT-4252 @moduon
1 parent 5150da2 commit 5cac29b

File tree

15 files changed

+722
-0
lines changed

15 files changed

+722
-0
lines changed

partner_purchase_manager/README.rst

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
========================
2+
Partner Purchase Manager
3+
========================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:52a5b8f49d4b332e9ef3610e83c80e58a96b6adda20468ffe749eff7196977bd
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Alpha
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
18+
:alt: License: LGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
20+
:target: https://github.com/OCA/partner-contact/tree/16.0/partner_purchase_manager
21+
:alt: OCA/partner-contact
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_purchase_manager
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/partner-contact&target_branch=16.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This module add purchase manager field in partner.
32+
33+
.. IMPORTANT::
34+
This is an alpha version, the data model and design can change at any time without warning.
35+
Only for development or testing purpose, do not use in production.
36+
`More details on development status <https://odoo-community.org/page/development-status>`_
37+
38+
**Table of contents**
39+
40+
.. contents::
41+
:local:
42+
43+
Usage
44+
=====
45+
46+
To use this module, you need to:
47+
48+
#. Go to partner
49+
#. Click on the ``Sales & Purchase`` tab
50+
#. Add user on ``Purchase Manager`` field
51+
52+
Bug Tracker
53+
===========
54+
55+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/issues>`_.
56+
In case of trouble, please check there if your issue has already been reported.
57+
If you spotted it first, help us to smash it by providing a detailed and welcomed
58+
`feedback <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_purchase_manager%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
59+
60+
Do not contact contributors directly about support or help with technical issues.
61+
62+
Credits
63+
=======
64+
65+
Authors
66+
~~~~~~~
67+
68+
* Moduon
69+
70+
Contributors
71+
~~~~~~~~~~~~
72+
73+
* Emilio Pascual (`Moduon <https://www.moduon.team/>`__)
74+
* Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
75+
* Gelo Joga (`Moduon <https://www.moduon.team/>`__)
76+
77+
Maintainers
78+
~~~~~~~~~~~
79+
80+
This module is maintained by the OCA.
81+
82+
.. image:: https://odoo-community.org/logo.png
83+
:alt: Odoo Community Association
84+
:target: https://odoo-community.org
85+
86+
OCA, or the Odoo Community Association, is a nonprofit organization whose
87+
mission is to support the collaborative development of Odoo features and
88+
promote its widespread use.
89+
90+
.. |maintainer-EmilioPascual| image:: https://github.com/EmilioPascual.png?size=40px
91+
:target: https://github.com/EmilioPascual
92+
:alt: EmilioPascual
93+
94+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
95+
96+
|maintainer-EmilioPascual|
97+
98+
This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/16.0/partner_purchase_manager>`_ project on GitHub.
99+
100+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

partner_purchase_manager/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2023 Moduon Team S.L.
2+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
3+
4+
{
5+
"name": "Partner Purchase Manager",
6+
"summary": "Add purchase manager field in partner",
7+
"version": "16.0.1.0.0",
8+
"development_status": "Alpha",
9+
"category": "Purchase",
10+
"website": "https://github.com/OCA/partner-contact",
11+
"author": "Moduon, Odoo Community Association (OCA)",
12+
"maintainers": ["EmilioPascual"],
13+
"license": "LGPL-3",
14+
"application": False,
15+
"installable": True,
16+
"depends": [
17+
"base",
18+
],
19+
"data": [
20+
"views/res_partner_view.xml",
21+
],
22+
}

partner_purchase_manager/i18n/es.po

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * partner_purchase_manager
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2023-11-16 14:52+0000\n"
10+
"PO-Revision-Date: 2023-11-16 15:54+0100\n"
11+
"Last-Translator: Emilio Pascual <[email protected]>\n"
12+
"Language-Team: \n"
13+
"Language: es\n"
14+
"MIME-Version: 1.0\n"
15+
"Content-Type: text/plain; charset=UTF-8\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.4\n"
19+
20+
#. module: partner_purchase_manager
21+
#: model:ir.model,name:partner_purchase_manager.model_res_partner
22+
msgid "Contact"
23+
msgstr "Contacto"
24+
25+
#. module: partner_purchase_manager
26+
#: model_terms:ir.ui.view,arch_db:partner_purchase_manager.view_res_partner_filter_inherit_partner_purchase_manager
27+
msgid "My Suppliers"
28+
msgstr "Mis proveedores"
29+
30+
#. module: partner_purchase_manager
31+
#: model:ir.model.fields,field_description:partner_purchase_manager.field_res_partner__purchase_manager_id
32+
#: model:ir.model.fields,field_description:partner_purchase_manager.field_res_users__purchase_manager_id
33+
#: model_terms:ir.ui.view,arch_db:partner_purchase_manager.view_res_partner_filter_inherit_partner_purchase_manager
34+
msgid "Purchase Manager"
35+
msgstr "Responsable de compras"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * partner_purchase_manager
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0+e\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2023-11-16 14:52+0000\n"
10+
"PO-Revision-Date: 2023-11-16 14:52+0000\n"
11+
"Last-Translator: \n"
12+
"Language-Team: \n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: \n"
17+
18+
#. module: partner_purchase_manager
19+
#: model:ir.model,name:partner_purchase_manager.model_res_partner
20+
msgid "Contact"
21+
msgstr ""
22+
23+
#. module: partner_purchase_manager
24+
#: model_terms:ir.ui.view,arch_db:partner_purchase_manager.view_res_partner_filter_inherit_partner_purchase_manager
25+
msgid "My Suppliers"
26+
msgstr ""
27+
28+
#. module: partner_purchase_manager
29+
#: model:ir.model.fields,field_description:partner_purchase_manager.field_res_partner__purchase_manager_id
30+
#: model:ir.model.fields,field_description:partner_purchase_manager.field_res_users__purchase_manager_id
31+
#: model_terms:ir.ui.view,arch_db:partner_purchase_manager.view_res_partner_filter_inherit_partner_purchase_manager
32+
msgid "Purchase Manager"
33+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import res_partner
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright 2023 Moduon Team S.L.
2+
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0)
3+
4+
5+
from odoo import fields, models
6+
7+
8+
class Partner(models.Model):
9+
_inherit = "res.partner"
10+
11+
purchase_manager_id = fields.Many2one("res.users", string="Purchase Manager")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* Emilio Pascual (`Moduon <https://www.moduon.team/>`__)
2+
* Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
3+
* Gelo Joga (`Moduon <https://www.moduon.team/>`__)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module add purchase manager field in partner.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
To use this module, you need to:
2+
3+
#. Go to partner
4+
#. Click on the ``Sales & Purchase`` tab
5+
#. Add user on ``Purchase Manager`` field
Loading

0 commit comments

Comments
 (0)