Skip to content

Commit 60b07fd

Browse files
committed
[T-8592][MIG] partner_code_program_account: migration to 18.0
1 parent f361716 commit 60b07fd

11 files changed

Lines changed: 557 additions & 42 deletions

File tree

Lines changed: 49 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,89 @@
1-
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
2-
:target: http://www.gnu.org/licenses/agpl
3-
:alt: License: AGPL-3
4-
51
============================
6-
Partner code program Account
2+
Partner Code Program Account
73
============================
84

9-
This module adds the partner code program in invoices and invoices reports
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:8d90e8479ee331095a1ec9e80556691b3956775a08f72789b9b61301e01b131d
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1012
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-sygel--technology%2Fsy--partner--contact-lightgray.png?logo=github
20+
:target: https://github.com/sygel-technology/sy-partner-contact/tree/18.0/partner_code_program_account
21+
:alt: sygel-technology/sy-partner-contact
1122

12-
Usage
13-
=====
23+
|badge1| |badge2| |badge3|
1424

15-
To use this module, you need to:
25+
This module adds the partner code program in invoices and invoices
26+
reports
1627

17-
#. Create new program codes in Contacts / Configuration / Code Programs
18-
#. Edit the code program of a partner of type company in the address field of the partner form
19-
#. Create a account move with that partner. Now you can filter and group by code program
28+
**Table of contents**
2029

30+
.. contents::
31+
:local:
2132

2233
Installation
2334
============
2435

2536
To install this module, you need to:
2637

27-
#. Only install
28-
38+
- Only install
2939

3040
Configuration
3141
=============
3242

3343
To configure this module, you need to:
3444

35-
#. Only install
45+
- Only install
3646

47+
Usage
48+
=====
49+
50+
To use this module, you need to:
51+
52+
1. Create new program codes in Contacts / Configuration / Code Programs
53+
2. Edit the code program of a partner of type company in the address
54+
field of the partner form
55+
3. Create a account move with that partner. Now you can filter and group
56+
by code program
3757

3858
Bug Tracker
3959
===========
4060

41-
Bugs and errors are managed in `issues of GitHub <https://github.com/sygel-technology/sy-partner-contact/issues>`_.
42-
In case of problems, please check if your problem has already been
43-
reported. If you are the first to discover it, help us solving it by indicating
44-
a detailed description `here <https://github.com/sygel-technology/sy-partner-contact/issues/new>`_.
61+
Bugs are tracked on `GitHub Issues <https://github.com/sygel-technology/sy-partner-contact/issues>`_.
62+
In case of trouble, please check there if your issue has already been reported.
63+
If you spotted it first, help us to smash it by providing a detailed and welcomed
64+
`feedback <https://github.com/sygel-technology/sy-partner-contact/issues/new?body=module:%20partner_code_program_account%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
4565

4666
Do not contact contributors directly about support or help with technical issues.
4767

48-
4968
Credits
5069
=======
5170

5271
Authors
53-
~~~~~~~
54-
55-
* Sygel, Odoo Community Association (OCA)
72+
-------
5673

74+
* Sygel
5775

5876
Contributors
59-
~~~~~~~~~~~~
60-
61-
* Valentin Vinagre <valentin.vinagre@sygel.es>
62-
* Alberto Martínez <alberto.martinez@sygel.es>
63-
64-
65-
Maintainer
66-
~~~~~~~~~~
77+
------------
6778

68-
This module is maintained by Sygel.
79+
- `Sygel <https://www.sygel.es>`__:
6980

70-
.. image:: https://www.sygel.es/logo.png
71-
:alt: Sygel
72-
:target: https://www.sygel.es
81+
- Valentín Vinagre
82+
- Alberto Martínez
7383

74-
This module is part of the `Sygel/sy-partner-contact <https://github.com/sygel-technology/sy-partner-contact>`_.
84+
Maintainers
85+
-----------
7586

76-
To contribute to this module, please visit https://github.com/sygel-technology/.
87+
This module is part of the `sygel-technology/sy-partner-contact <https://github.com/sygel-technology/sy-partner-contact/tree/18.0/partner_code_program_account>`_ project on GitHub.
7788

89+
You are welcome to contribute.

partner_code_program_account/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Partner Code Program Account",
55
"summary": "Adds the partner code program fields on accounting",
6-
"version": "17.0.1.0.0",
6+
"version": "18.0.1.0.0",
77
"category": "Partner Management",
88
"website": "https://github.com/sygel-technology/sy-partner-contact",
99
"author": "Sygel",
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Copyright 2024 Alberto Martínez <alberto.martinez@sygel.es>
22
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
33

4-
from odoo import fields, models
4+
from odoo import api, fields, models
5+
from odoo.tools import SQL
56

67

78
class AccountInvoiceReport(models.Model):
@@ -12,6 +13,6 @@ class AccountInvoiceReport(models.Model):
1213
comodel_name="res.partner.code.program",
1314
)
1415

15-
def _select(self):
16-
select_str = super()._select()
17-
return "%s, partner.code_program_id" % select_str
16+
@api.model
17+
def _select(self) -> SQL:
18+
return SQL("%s, partner.code_program_id AS code_program_id", super()._select())
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To configure this module, you need to:
2+
3+
- Only install
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- [Sygel](https://www.sygel.es):
2+
- Valentín Vinagre
3+
- Alberto Martínez
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module adds the partner code program in invoices and invoices reports
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To install this module, you need to:
2+
3+
- Only install
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
To use this module, you need to:
2+
3+
1. Create new program codes in Contacts / Configuration / Code Programs
4+
2. Edit the code program of a partner of type company in the address field of the partner form
5+
3. Create a account move with that partner. Now you can filter and group by code program

0 commit comments

Comments
 (0)