Skip to content
Open
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
84 changes: 84 additions & 0 deletions sale_invoice_product_not_alone/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
=========================
Product not invoice alone
=========================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
:target: https://odoo-community.org/page/development-status
:alt: Alpha
.. |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%2Fsale--workflow-lightgray.png?logo=github
:target: https://github.com/OCA/sale-workflow/tree/18.0/product_not_invoice_alone
:alt: OCA/sale-workflow
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-workflow-18-0/sale-workflow-18-0-product_not_invoice_alone
: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/sale-workflow&target_branch=18.0
:alt: Try me on Runboat

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

This module allows to set on product if it can be invoice alone. This
make those sale order not to appear on orders to invoice.

.. IMPORTANT::
This is an alpha version, the data model and design can change at any time without warning.
Only for development or testing purpose, do not use in production.
`More details on development status <https://odoo-community.org/page/development-status>`_

**Table of contents**

.. contents::
:local:

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-workflow/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/sale-workflow/issues/new?body=module:%20product_not_invoice_alone%0Aversion:%2018.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>`__ :

- Eduardo Ezerouali

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/sale-workflow <https://github.com/OCA/sale-workflow/tree/18.0/product_not_invoice_alone>`_ 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 sale_invoice_product_not_alone/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
15 changes: 15 additions & 0 deletions sale_invoice_product_not_alone/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright 2026 Tecnativa - Eduardo Ezerouali
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "Sale invoice product not invoice alone",
"summary": "Set products to not invoice alone",
"version": "18.0.1.0.0",
"development_status": "Alpha",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/sale-workflow",
"category": "Sales Management",
"license": "AGPL-3",
"depends": ["sale"],
"data": ["views/product_template_views.xml"],
"installable": True,
}
32 changes: 32 additions & 0 deletions sale_invoice_product_not_alone/i18n/es.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:
# * sale_invoice_product_not_alone
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-05-27 07:45+0000\n"
"PO-Revision-Date: 2026-05-27 07:45+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_invoice_product_not_alone
#: model:ir.model.fields,field_description:sale_invoice_product_not_alone.field_product_product__avoid_invoice_alone
#: model:ir.model.fields,field_description:sale_invoice_product_not_alone.field_product_template__avoid_invoice_alone
msgid "Avoid Invoice Alone"
msgstr "No Facturar Solo"

#. module: sale_invoice_product_not_alone
#: model:ir.model,name:sale_invoice_product_not_alone.model_product_template
msgid "Product"
msgstr "Producto"

#. module: sale_invoice_product_not_alone
#: model:ir.model,name:sale_invoice_product_not_alone.model_sale_order_line
msgid "Sales Order Line"
msgstr "Línea de pedido de venta"
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:
# * sale_invoice_product_not_alone
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 18.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-05-27 07:44+0000\n"
"PO-Revision-Date: 2026-05-27 07:44+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_invoice_product_not_alone
#: model:ir.model.fields,field_description:sale_invoice_product_not_alone.field_product_product__avoid_invoice_alone
#: model:ir.model.fields,field_description:sale_invoice_product_not_alone.field_product_template__avoid_invoice_alone
msgid "Avoid Invoice Alone"
msgstr ""

#. module: sale_invoice_product_not_alone
#: model:ir.model,name:sale_invoice_product_not_alone.model_product_template
msgid "Product"
msgstr ""

#. module: sale_invoice_product_not_alone
#: model:ir.model,name:sale_invoice_product_not_alone.model_sale_order_line
msgid "Sales Order Line"
msgstr ""
2 changes: 2 additions & 0 deletions sale_invoice_product_not_alone/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import product_template
from . import sale_order_line
10 changes: 10 additions & 0 deletions sale_invoice_product_not_alone/models/product_template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright 2026 Tecnativa - Eduardo Ezerouali
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html)

from odoo import fields, models


class ProductTemplate(models.Model):
_inherit = "product.template"

avoid_invoice_alone = fields.Boolean()
13 changes: 13 additions & 0 deletions sale_invoice_product_not_alone/models/sale_order_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2026 Tecnativa - Eduardo Ezerouali
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).

from odoo import models


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

def _can_be_invoiced_alone(self):
return (
super()._can_be_invoiced_alone() and not self.product_id.avoid_invoice_alone
)
3 changes: 3 additions & 0 deletions sale_invoice_product_not_alone/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
3 changes: 3 additions & 0 deletions sale_invoice_product_not_alone/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- [Tecnativa](https://www.tecnativa.com) :
- Eduardo Ezerouali
- Carlos Dauden
1 change: 1 addition & 0 deletions sale_invoice_product_not_alone/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module allows to set on product if it can be invoiced alone. This makes those sale orders not to appear.
Loading
Loading