-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] sale_order_invoicing_picking_filter_groping_criteria
- Loading branch information
Showing
14 changed files
with
383 additions
and
0 deletions.
There are no files selected for viewing
112 changes: 112 additions & 0 deletions
112
sale_order_invoicing_picking_filter_groping_criteria/README.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
===================================================== | ||
Sale Order Invoicing Picking Filter Grouping Criteria | ||
===================================================== | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:a6122ba11e3c8e3ffe6e3243f3d076d29b2a67a3d294acecef4ba2532e87bb56 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |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-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/16.0/sale_order_invoicing_picking_filter_groping_criteria | ||
: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-16-0/sale-workflow-16-0-sale_order_invoicing_picking_filter_groping_criteria | ||
: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=16.0 | ||
:alt: Try me on Runboat | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module extends the functionality of | ||
sale_order_invoicing_grouping_criteria and | ||
sale_order_invoicing_picking_filter, to support both the functionality | ||
of selecting the pickings that will be invoiced, and grouping the | ||
generated invoices, when invoicing multiple sales at the same time. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
To configure this module, you need to follow the instructions of the | ||
sale_order_invoicing_picking_filter and | ||
sale_order_invoicing_grouping_criteria modules. | ||
|
||
Usage | ||
===== | ||
|
||
To use this module, you need to: | ||
|
||
1. Go to Sales / To Invoice / Orders to Invoice | ||
2. Select sales orders whose invoicing you want to do. | ||
3. Click on *Action > Create invoices*. | ||
4. Select the pickings whose invoicing you want to do. | ||
5. Click on "Create and View Invoices" button. | ||
6. On that moment, the grouping criteria will be applied, and you will | ||
see different invoices if the criteria doesn't match for the sales. | ||
|
||
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:%20sale_order_invoicing_picking_filter_groping_criteria%0Aversion:%2016.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 | ||
------- | ||
|
||
* Sygel | ||
|
||
Contributors | ||
------------ | ||
|
||
- `Sygel <https://www.sygel.es>`__: | ||
|
||
- Alberto Martínez | ||
- Valentin Vinagre | ||
- Harald Panten | ||
|
||
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. | ||
|
||
.. |maintainer-tisho99| image:: https://github.com/tisho99.png?size=40px | ||
:target: https://github.com/tisho99 | ||
:alt: tisho99 | ||
|
||
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
||
|maintainer-tisho99| | ||
|
||
This module is part of the `OCA/sale-workflow <https://github.com/OCA/sale-workflow/tree/16.0/sale_order_invoicing_picking_filter_groping_criteria>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
3 changes: 3 additions & 0 deletions
3
sale_order_invoicing_picking_filter_groping_criteria/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import wizards |
18 changes: 18 additions & 0 deletions
18
sale_order_invoicing_picking_filter_groping_criteria/__manifest__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2024 Alberto Martínez <alberto.martinez@sygel.es> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
{ | ||
"name": "Sale Order Invoicing Picking Filter Grouping Criteria", | ||
"summary": "Glues the picking filter with sale_order_invoicing_grouping_criteria", | ||
"version": "16.0.1.0.0", | ||
"category": "Invoicing", | ||
"website": "https://github.com/OCA/sale-workflow", | ||
"author": "Sygel, Odoo Community Association (OCA)", | ||
"maintainers": ["tisho99"], | ||
"license": "AGPL-3", | ||
"application": False, | ||
"installable": True, | ||
"depends": [ | ||
"sale_order_invoicing_grouping_criteria", | ||
"sale_order_invoicing_picking_filter", | ||
], | ||
} |
1 change: 1 addition & 0 deletions
1
sale_order_invoicing_picking_filter_groping_criteria/readme/CONFIGURE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
To configure this module, you need to follow the instructions of the sale_order_invoicing_picking_filter and sale_order_invoicing_grouping_criteria modules. |
4 changes: 4 additions & 0 deletions
4
sale_order_invoicing_picking_filter_groping_criteria/readme/CONTRIBUTORS.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- [Sygel](https://www.sygel.es): | ||
- Alberto Martínez | ||
- Valentin Vinagre | ||
- Harald Panten |
1 change: 1 addition & 0 deletions
1
sale_order_invoicing_picking_filter_groping_criteria/readme/DESCRIPTION.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This module extends the functionality of sale_order_invoicing_grouping_criteria and sale_order_invoicing_picking_filter, to support both the functionality of selecting the pickings that will be invoiced, and grouping the generated invoices, when invoicing multiple sales at the same time. |
9 changes: 9 additions & 0 deletions
9
sale_order_invoicing_picking_filter_groping_criteria/readme/USAGE.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
To use this module, you need to: | ||
|
||
1. Go to Sales / To Invoice / Orders to Invoice | ||
2. Select sales orders whose invoicing you want to do. | ||
3. Click on *Action > Create invoices*. | ||
4. Select the pickings whose invoicing you want to do. | ||
5. Click on "Create and View Invoices" button. | ||
6. On that moment, the grouping criteria will be applied, and you will see | ||
different invoices if the criteria doesn't match for the sales. |
Binary file added
BIN
+9.23 KB
sale_order_invoicing_picking_filter_groping_criteria/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 79 additions & 0 deletions
79
sale_order_invoicing_picking_filter_groping_criteria/static/description/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions
124
sale_order_invoicing_picking_filter_groping_criteria/static/description/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<section class="oe_container"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Module name</h2> | ||
<p>This module was written to extend the functionality of ... to support ... and allow you to ...</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container oe_dark"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Installation</h2> | ||
</div> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32">To install this module, you need to: | ||
<ul> | ||
<li>...</li> | ||
</ul> | ||
</p> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm"> | ||
<img src="crm_sc_01.png"> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Configuration</h2> | ||
</div> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32">To configure this module, you need to: | ||
<ul> | ||
<li>...</li> | ||
</ul> | ||
</p> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm"> | ||
<img src="crm_sc_01.png"> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container oe_dark"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Usage</h2> | ||
</div> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32">To use this module, you need to: | ||
<ul> | ||
<li>...</li> | ||
</ul> | ||
</p> | ||
<p class="oe_mt32">For further information, please visit: | ||
<ul> | ||
<li><a href="https://www.odoo.com/forum/help-1">https://www.odoo.com/forum/help-1</a></li> | ||
</ul> | ||
</p> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm"> | ||
<img src="crm_sc_01.png"> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container"> | ||
<div class="oe_row oe_spaced"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Known issues / Roadmap</h2> | ||
</div> | ||
<div class="oe_span6"> | ||
<p class="oe_mt32"> | ||
<ul> | ||
<li>...</li> | ||
</ul> | ||
</p> | ||
</div> | ||
<div class="oe_span6"> | ||
<div class="oe_demo oe_picture oe_screenshot"> | ||
<a href="https://www.odoo.com/saas_master/demo?lang=en_US&module=crm"> | ||
<img src="crm_sc_01.png"> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<section class="oe_container oe_dark"> | ||
<div class="oe_row"> | ||
<div class="oe_span12"> | ||
<h2 class="oe_slogan">Credits</h2> | ||
</div> | ||
<div class="oe_span12"> | ||
<h3>Contributors</h3> | ||
<ul> | ||
<li>Firstname Lastname <<a href="mailto:email.address@example.com">email.address@example.com</a>></li> | ||
</ul> | ||
</div> | ||
<div class="oe_span12"> | ||
<h3>Maintainer</h3> | ||
<p> | ||
This module is maintained by the OCA.<br/> | ||
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.<br/> | ||
To contribute to this module, please visit <a href="http://odoo-community.org">http://odoo-community.org</a>.<br/> | ||
<a href="http://odoo-community.org"><img class="oe_picture oe_centered" src="http://odoo-community.org/logo.png"></a> | ||
</p> | ||
</div> | ||
</div> | ||
</section> |
3 changes: 3 additions & 0 deletions
3
sale_order_invoicing_picking_filter_groping_criteria/wizards/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from . import sale_advance_payment_inv |
22 changes: 22 additions & 0 deletions
22
sale_order_invoicing_picking_filter_groping_criteria/wizards/sale_advance_payment_inv.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Copyright 2024 Alberto Martínez <alberto.martinez@sygel.es> | ||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). | ||
|
||
from odoo import models | ||
|
||
|
||
class SaleAdvancePaymentInv(models.TransientModel): | ||
_inherit = "sale.advance.payment.inv" | ||
|
||
def _create_invoices(self, grouped=False, final=False, date=None): | ||
"""Slice the batch according grouping criteria.""" | ||
order_groups = {} | ||
for order in self.sale_order_ids: | ||
group_key = order._get_sale_invoicing_group_key() | ||
if group_key not in order_groups: | ||
order_groups[group_key] = order | ||
else: | ||
order_groups[group_key] += order | ||
moves = self.env["account.move"] | ||
for group in order_groups.values(): | ||
moves += super()._create_invoices(group) | ||
return moves |
1 change: 1 addition & 0 deletions
1
..._filter_groping_criteria/odoo/addons/sale_order_invoicing_picking_filter_groping_criteria
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../sale_order_invoicing_picking_filter_groping_criteria |
6 changes: 6 additions & 0 deletions
6
setup/sale_order_invoicing_picking_filter_groping_criteria/setup.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import setuptools | ||
|
||
setuptools.setup( | ||
setup_requires=['setuptools-odoo'], | ||
odoo_addon=True, | ||
) |