Skip to content

Commit

Permalink
[ADD] sale_order_partner_invoice_period
Browse files Browse the repository at this point in the history
Adds a selector of period to invoice directions.
  • Loading branch information
DantePereyra committed Nov 20, 2024
1 parent d56870d commit 0266a7c
Show file tree
Hide file tree
Showing 14 changed files with 717 additions and 0 deletions.
60 changes: 60 additions & 0 deletions sale_order_partner_invoice_period/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
======================
Partner Invoice Period
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:a939bca2525b4823de1a42085310d7c9a30bc7fe9b2d1e5aef8d17bc1ab30e36
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-solvosci%2Fslv--sale-lightgray.png?logo=github
:target: https://github.com/solvosci/slv-sale/tree/17.0/sale_order_partner_invoice_period
:alt: solvosci/slv-sale

|badge1| |badge2| |badge3|

Adds a selector of period to invoice directions.

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/solvosci/slv-sale/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/solvosci/slv-sale/issues/new?body=module:%20sale_order_partner_invoice_period%0Aversion:%2017.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
~~~~~~~

* Solvos

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

* Dante Pereyra <[email protected]>

Maintainers
~~~~~~~~~~~

This module is part of the `solvosci/slv-sale <https://github.com/solvosci/slv-sale/tree/17.0/sale_order_partner_invoice_period>`_ project on GitHub.

You are welcome to contribute.
1 change: 1 addition & 0 deletions sale_order_partner_invoice_period/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
19 changes: 19 additions & 0 deletions sale_order_partner_invoice_period/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# © 2024 Solvos Consultoría Informática (<http://www.solvos.es>)
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
{
"name": "Partner Invoice Period",
"summary": """ Adds selection of period to invoice direction """,
"author": "Solvos",
"license": "LGPL-3",
"version": "17.0.1.0.0",
"category": "Sales/Sales",
"website": "https://github.com/solvosci/slv-sale",
"depends": [
"sale"
],
"data": [
"views/res_partner_view.xml",
"views/sale_order_view.xml"
],
'installable': True,
}
63 changes: 63 additions & 0 deletions sale_order_partner_invoice_period/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_partner_invoice_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-20 14:49+0000\n"
"PO-Revision-Date: 2024-11-20 14:49+0000\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: sale_order_partner_invoice_period
#: model:ir.model,name:sale_order_partner_invoice_period.model_res_partner
msgid "Contact"
msgstr "Contacto"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__daily
msgid "Daily"
msgstr "Diaria"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__fortnightly
msgid "Fortnightly"
msgstr "Quincenal"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields,field_description:sale_order_partner_invoice_period.field_res_partner__invoice_period
#: model:ir.model.fields,field_description:sale_order_partner_invoice_period.field_res_users__invoice_period
#: model:ir.model.fields,field_description:sale_order_partner_invoice_period.field_sale_order__partner_invoice_period
msgid "Invoice Period"
msgstr "Periodo de facturación"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__monthly
msgid "Monthly"
msgstr "Mensual"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__quarterly
msgid "Quarterly"
msgstr "Trimestral"

#. module: sale_order_partner_invoice_period
#: model:ir.model,name:sale_order_partner_invoice_period.model_sale_order
msgid "Sales Order"
msgstr "Pedido de venta"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__weekly
msgid "Weekly"
msgstr "Semanal"

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__yearly
msgid "Yearly"
msgstr "Anual"
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_partner_invoice_period
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-20 14:48+0000\n"
"PO-Revision-Date: 2024-11-20 14:48+0000\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: sale_order_partner_invoice_period
#: model:ir.model,name:sale_order_partner_invoice_period.model_res_partner
msgid "Contact"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__daily
msgid "Daily"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__fortnightly
msgid "Fortnightly"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields,field_description:sale_order_partner_invoice_period.field_res_partner__invoice_period
#: model:ir.model.fields,field_description:sale_order_partner_invoice_period.field_res_users__invoice_period
#: model:ir.model.fields,field_description:sale_order_partner_invoice_period.field_sale_order__partner_invoice_period
msgid "Invoice Period"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__monthly
msgid "Monthly"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__quarterly
msgid "Quarterly"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model,name:sale_order_partner_invoice_period.model_sale_order
msgid "Sales Order"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__weekly
msgid "Weekly"
msgstr ""

#. module: sale_order_partner_invoice_period
#: model:ir.model.fields.selection,name:sale_order_partner_invoice_period.selection__res_partner__invoice_period__yearly
msgid "Yearly"
msgstr ""
2 changes: 2 additions & 0 deletions sale_order_partner_invoice_period/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import res_partner
from . import sale_order
18 changes: 18 additions & 0 deletions sale_order_partner_invoice_period/models/res_partner.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# © 2024 Solvos Consultoría Informática (<http://www.solvos.es>)
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
from odoo import models, fields

class ResPartner(models.Model):
_inherit = "res.partner"


invoice_period = fields.Selection(
[
('daily','Daily'),
('weekly','Weekly'),
('fortnightly','Fortnightly'),
('monthly','Monthly'),
('quarterly','Quarterly'),
('yearly','Yearly')
]
)
12 changes: 12 additions & 0 deletions sale_order_partner_invoice_period/models/sale_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# © 2024 Solvos Consultoría Informática (<http://www.solvos.es>)
# License LGPL-3 - See http://www.gnu.org/licenses/lgpl-3.0.html
from odoo import models, fields

class SaleOrder(models.Model):
_inherit = "sale.order"

partner_invoice_period = fields.Selection(
related='partner_invoice_id.invoice_period',
string="Invoice Period",
store=True
)
1 change: 1 addition & 0 deletions sale_order_partner_invoice_period/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Dante Pereyra <[email protected]>
1 change: 1 addition & 0 deletions sale_order_partner_invoice_period/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Adds a selector of period to invoice directions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0266a7c

Please sign in to comment.