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

[MIG][16.0] partner_invoicing_mode_weekly (rename account_invoice_mode_weekly) #1514

Open
wants to merge 16 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
85 changes: 85 additions & 0 deletions partner_invoicing_mode_weekly/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
===========================
Account Invoice Mode Weekly
===========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/14.0/account_invoice_mode_weekly
: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-14-0/account-invoicing-14-0-account_invoice_mode_weekly
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/95/14.0
:alt: Try me on Runbot

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

This module allows to select a weekly invoicing mode for a customer.
It is based on `account_invoice_base_invoicing_mode`.
When this mode is selected for a customer, the customer will be automatically
invoiced

**Table of contents**

.. contents::
:local:

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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/account-invoicing/issues/new?body=module:%20account_invoice_mode_weekly%0Aversion:%2014.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
~~~~~~~

* Camptocamp

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

* `Camptocamp <https://www.camptocamp.com>`_:

* Julien Coux <[email protected]>

Other credits
~~~~~~~~~~~~~

The development of this module has been financially supported by:

* Camptocamp

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/account-invoicing <https://github.com/OCA/account-invoicing/tree/14.0/account_invoice_mode_weekly>`_ 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 partner_invoicing_mode_weekly/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
22 changes: 22 additions & 0 deletions partner_invoicing_mode_weekly/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2021 Camptocamp
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Invoice Mode Weekly",
"version": "16.0.1.0.0",
"summary": "Create invoices automatically on a weekly basis.",
"author": "Camptocamp, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-invoicing",
"license": "AGPL-3",
"category": "Accounting & Finance",
"depends": [
"account",
"partner_invoicing_mode",
"queue_job",
"sale",
],
"data": [
"data/ir_cron.xml",
"data/queue_job_data.xml",
"views/res_config_settings_views.xml",
],
}
18 changes: 18 additions & 0 deletions partner_invoicing_mode_weekly/data/ir_cron.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="1">
<record forcecreate="True" id="ir_cron_generate_weekly_invoice" model="ir.cron">
<field name="name">Generate Weekly Invoices</field>
<field eval="True" name="active" />
<field name="user_id" ref="base.user_root" />
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field eval="False" name="doall" />
<field name="model_id" ref="model_sale_order" />
<field name="code">model.cron_generate_weekly_invoices()</field>
<field
name="nextcall"
eval="(DateTime.now().replace(hour=1,minute=0).strftime('%Y-%m-%d %H:%M:%S'))"
/>
</record>
</odoo>
15 changes: 15 additions & 0 deletions partner_invoicing_mode_weekly/data/queue_job_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- Queue Job Channel -->
<record id="invoice_weekly" model="queue.job.channel">
<field name="name">invoice_weekly</field>
<field name="parent_id" ref="queue_job.channel_root" />
</record>

<!-- Queue Job Function -->
<record id="job_function_generate_invoices_by_partner" model="queue.job.function">
<field name="model_id" ref="sale.model_sale_order" />
<field name="method">_generate_invoices_by_partner</field>
<field name="channel_id" ref="invoice_weekly" />
</record>
</odoo>
155 changes: 155 additions & 0 deletions partner_invoicing_mode_weekly/i18n/account_invoice_mode_weekly.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_mode_weekly
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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: account_invoice_mode_weekly
#: model_terms:ir.ui.view,arch_db:account_invoice_mode_weekly.res_config_settings_view_form
msgid "<span class=\"o_form_label\">Weekly Invoicing Options</span>"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model,name:account_invoice_mode_weekly.model_res_company
msgid "Companies"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model,name:account_invoice_mode_weekly.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model,name:account_invoice_mode_weekly.model_res_partner
msgid "Contact"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,help:account_invoice_mode_weekly.field_res_company__invoicing_mode_weekly_day_todo
#: model:ir.model.fields,help:account_invoice_mode_weekly.field_res_config_settings__res_invoicing_mode_weekly_day_todo
msgid "Day of the week to execute the invoicing."
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_company__display_name
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_config_settings__display_name
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_partner__display_name
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_sale_order__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__4
msgid "Friday"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.actions.server,name:account_invoice_mode_weekly.ir_cron_generate_weekly_invoice_ir_actions_server
#: model:ir.cron,cron_name:account_invoice_mode_weekly.ir_cron_generate_weekly_invoice
#: model:ir.cron,name:account_invoice_mode_weekly.ir_cron_generate_weekly_invoice
msgid "Generate Weekly Invoices"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_company__id
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_config_settings__id
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_partner__id
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_sale_order__id
msgid "ID"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_partner__invoicing_mode
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_users__invoicing_mode
msgid "Invoicing Mode"
msgstr ""

#. module: account_invoice_mode_weekly
#: model_terms:ir.ui.view,arch_db:account_invoice_mode_weekly.res_config_settings_view_form
msgid "Invoicing Weekly"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_company____last_update
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_config_settings____last_update
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_partner____last_update
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_sale_order____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_invoice_mode_weekly
#: model_terms:ir.ui.view,arch_db:account_invoice_mode_weekly.res_config_settings_view_form
msgid "Last executed on"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,help:account_invoice_mode_weekly.field_res_company__invoicing_mode_weekly_last_execution
#: model:ir.model.fields,help:account_invoice_mode_weekly.field_res_config_settings__invoicing_mode_weekly_last_execution
msgid "Last execution of weekly invoicing."
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__0
msgid "Monday"
msgstr ""

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

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__5
msgid "Saturday"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__6
msgid "Sunday"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__3
msgid "Thursday"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__1
msgid "Tuesday"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_company__invoicing_mode_weekly_day_todo__2
msgid "Wednesday"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields.selection,name:account_invoice_mode_weekly.selection__res_partner__invoicing_mode__weekly
msgid "Weekly"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_company__invoicing_mode_weekly_day_todo
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_config_settings__res_invoicing_mode_weekly_day_todo
msgid "Weekly Invoicing Day"
msgstr ""

#. module: account_invoice_mode_weekly
#: model_terms:ir.ui.view,arch_db:account_invoice_mode_weekly.res_config_settings_view_form
msgid "Weekly invoicing day"
msgstr ""

#. module: account_invoice_mode_weekly
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_company__invoicing_mode_weekly_last_execution
#: model:ir.model.fields,field_description:account_invoice_mode_weekly.field_res_config_settings__invoicing_mode_weekly_last_execution
msgid "Weekly last execution"
msgstr ""
Loading
Loading