Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][MIG] contract_membership_delegated_partner: Migration to version 16.0 #154

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions contract_membership_delegated_partner/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
====================================
Contract Membership Delegate Partner
====================================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:c4020c68b59b21ae66b2994b471cfe1a4937f29c88563360af3857147dffa3e3
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
:target: https://odoo-community.org/page/development-status
:alt: Production/Stable
.. |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%2Fvertical--association-lightgray.png?logo=github
:target: https://github.com/OCA/vertical-association/tree/15.0/contract_membership_delegated_partner
:alt: OCA/vertical-association
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/vertical-association-15-0/vertical-association-15-0-contract_membership_delegated_partner
: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/vertical-association&target_branch=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to set the delegated membership at the contract so the
recurring invoices automatically have it set.

**Table of contents**

.. contents::
:local:

Installation
============

You'll need to install the module contract from https://github.com/OCA/contract

Configuration
=============

In *Settings > Users > <your_user>* set *Delegated partner in membership*
permission on.

Usage
=====

#. Set the delegated partner in contract.
#. The recurring invoices will set this partner as delegated partner from now
on.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/vertical-association/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/vertical-association/issues/new?body=module:%20contract_membership_delegated_partner%0Aversion:%2015.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
~~~~~~~

* Tecnativa

Contributors
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`__:

* David Vidal
* Rafael Blasco
* Ernesto Tejeda

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.

This module is part of the `OCA/vertical-association <https://github.com/OCA/vertical-association/tree/15.0/contract_membership_delegated_partner>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions contract_membership_delegated_partner/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
16 changes: 16 additions & 0 deletions contract_membership_delegated_partner/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2017-23 Tecnativa - David Vidal
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Contract Membership Delegate Partner",
"version": "16.0.1.0.0",
"development_status": "Production/Stable",
"category": "Membership",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"website": "https://github.com/OCA/vertical-association",
"license": "AGPL-3",
"summary": "Set delegate membership on the contract",
"depends": ["membership_delegated_partner", "contract"],
"data": ["views/contract.xml"],
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_membership_delegated_partner
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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: contract_membership_delegated_partner
#: model:ir.model,name:contract_membership_delegated_partner.model_contract_contract
msgid "Contract"
msgstr ""

#. module: contract_membership_delegated_partner
#: model:ir.model.fields,field_description:contract_membership_delegated_partner.field_contract_contract__delegated_member_id
msgid "Delegated Member"
msgstr ""
32 changes: 32 additions & 0 deletions contract_membership_delegated_partner/i18n/de.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_membership_delegated_partner
#
# Translators:
# Rudolf Schnapka <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-12 19:14+0000\n"
"PO-Revision-Date: 2018-01-12 19:14+0000\n"
"Last-Translator: Rudolf Schnapka <[email protected]>, 2018\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"Language: de\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"

#. module: contract_membership_delegated_partner
#: model:ir.model,name:contract_membership_delegated_partner.model_contract_contract
msgid "Contract"
msgstr ""

#. module: contract_membership_delegated_partner
#: model:ir.model.fields,field_description:contract_membership_delegated_partner.field_contract_contract__delegated_member_id
msgid "Delegated Member"
msgstr "Delegationsmitglied"

#~ msgid "Analytic Account"
#~ msgstr "Vertragskonto"
33 changes: 33 additions & 0 deletions contract_membership_delegated_partner/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_membership_delegated_partner
#
# Translators:
# enjolras <[email protected]>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-28 01:55+0000\n"
"PO-Revision-Date: 2020-08-13 14:59+0000\n"
"Last-Translator: GorkaMagra <[email protected]>\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\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 3.10\n"

#. module: contract_membership_delegated_partner
#: model:ir.model,name:contract_membership_delegated_partner.model_contract_contract
msgid "Contract"
msgstr "Contrato"

#. module: contract_membership_delegated_partner
#: model:ir.model.fields,field_description:contract_membership_delegated_partner.field_contract_contract__delegated_member_id
msgid "Delegated Member"
msgstr "Miembro delegado"

#~ msgid "Analytic Account"
#~ msgstr "Cuenta analítica"
27 changes: 27 additions & 0 deletions contract_membership_delegated_partner/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * contract_membership_delegated_partner
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-05-12 13:34+0000\n"
"Last-Translator: mymage <[email protected]>\n"
"Language-Team: none\n"
"Language: it\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.14.1\n"

#. module: contract_membership_delegated_partner
#: model:ir.model,name:contract_membership_delegated_partner.model_contract_contract
msgid "Contract"
msgstr "Contratto"

#. module: contract_membership_delegated_partner
#: model:ir.model.fields,field_description:contract_membership_delegated_partner.field_contract_contract__delegated_member_id
msgid "Delegated Member"
msgstr "Iscritto con delega"
1 change: 1 addition & 0 deletions contract_membership_delegated_partner/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import contract
18 changes: 18 additions & 0 deletions contract_membership_delegated_partner/models/contract.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2017-19 Tecnativa - David Vidal
# Copyright 2023 Tecnativa - Carolina Fernandez
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models


class AccountAnalyticAccount(models.Model):
_inherit = "contract.contract"

delegated_member_id = fields.Many2one(
comodel_name="res.partner",
string="Delegated Member",
)

def _prepare_invoice(self, date_invoice, journal=None):
invoice_vals = super()._prepare_invoice(date_invoice, journal=journal)
invoice_vals["delegated_member_id"] = self.delegated_member_id.id
return invoice_vals
2 changes: 2 additions & 0 deletions contract_membership_delegated_partner/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
In *Settings > Users > <your_user>* set *Delegated partner in membership*
permission on.
6 changes: 6 additions & 0 deletions contract_membership_delegated_partner/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
* `Tecnativa <https://www.tecnativa.com>`__:

* David Vidal
* Rafael Blasco
* Ernesto Tejeda
* Carolina Fernandez
2 changes: 2 additions & 0 deletions contract_membership_delegated_partner/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
This module allows to set the delegated membership at the contract so the
recurring invoices automatically have it set.
1 change: 1 addition & 0 deletions contract_membership_delegated_partner/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You'll need to install the module contract from https://github.com/OCA/contract
3 changes: 3 additions & 0 deletions contract_membership_delegated_partner/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#. Set the delegated partner in contract.
#. The recurring invoices will set this partner as delegated partner from now
on.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading