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

[ADD][16.0] account_invoice_transmit #1715

Open
wants to merge 6 commits into
base: 16.0
Choose a base branch
from
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
98 changes: 98 additions & 0 deletions account_invoice_transmit/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
================
Invoice Transmit
================

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

.. |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%2Faccount--invoicing-lightgray.png?logo=github
:target: https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_transmit
:alt: OCA/account-invoicing
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/account-invoicing-16-0/account-invoicing-16-0-account_invoice_transmit
: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/account-invoicing&target_branch=16.0
:alt: Try me on Runboat

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

Mass sending of invoices according to the transmit method.

Also have a look at the module account_move_sent_usability

**Table of contents**

.. contents::
:local:

Usage
=====

Select a list of invoices to send. Launch the 'Mass Sending' action.

Vizualize how much invoices will be sent for each available transmit method.
Choose the transmit method to launch.

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-invoicing/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/account-invoicing/issues/new?body=module:%20account_invoice_transmit%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
~~~~~~~

* BCIM

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

* Jacques-Etienne Baudoux (BCIM) <[email protected]>
* Camptocamp
* Acsone SA:

* Denis Roussel <[email protected]>

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-jbaudoux| image:: https://github.com/jbaudoux.png?size=40px
:target: https://github.com/jbaudoux
:alt: jbaudoux

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-jbaudoux|

This module is part of the `OCA/account-invoicing <https://github.com/OCA/account-invoicing/tree/16.0/account_invoice_transmit>`_ 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 account_invoice_transmit/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models, wizards
27 changes: 27 additions & 0 deletions account_invoice_transmit/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Copyright 2015 Jacques-Etienne Baudoux (BCIM) <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Invoice Transmit",
"version": "16.0.1.0.0",
"category": "Accounting/Accounting",
"summary": "Invoice mass sending",
"author": "BCIM, Odoo Community Association (OCA)",
"maintainers": ["jbaudoux"],
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"depends": [
"account_invoice_transmit_method",
"web_notify",
"queue_job",
],
"data": [
"security/ir_model_access.xml",
"views/account_move.xml",
"views/account_invoice_print.xml",
"wizards/account_invoice_transmit.xml",
"data/queue_job_channel.xml",
"data/queue_job_functions.xml",
],
"installable": True,
}
15 changes: 15 additions & 0 deletions account_invoice_transmit/data/queue_job_channel.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="invoice_transmit" model="queue.job.channel">
<field name="name">invoice_transmit</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>
<record id="invoice_transmit_post" model="queue.job.channel">
<field name="name">post</field>
<field name="parent_id" ref="invoice_transmit" />
</record>
<record id="invoice_transmit_email" model="queue.job.channel">
<field name="name">email</field>
<field name="parent_id" ref="invoice_transmit" />
</record>
</odoo>
20 changes: 20 additions & 0 deletions account_invoice_transmit/data/queue_job_functions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2023 ACSONE SA/NV
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>

<record id="job_function_send_invoice_mail" model="queue.job.function">
<field name="model_id" ref="account.model_account_move" />
<field name="method">_transmit_invoice_by_email</field>
<field name="channel_id" ref="invoice_transmit_email" />
<field name="related_action" eval='{"func_name": "related_action_open_invoice"}' />
</record>

<record id="job_function_send_invoice_post" model="queue.job.function">
<field name="model_id" ref="account.model_account_move" />
<field name="method">_transmit_invoice_by_post</field>
<field name="channel_id" ref="invoice_transmit_post" />
<field name="related_action" eval='{"func_name": "related_action_open_invoice"}' />
</record>

</odoo>
Loading
Loading