Skip to content

Commit

Permalink
Merge PR #595 into 17.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Aug 30, 2024
2 parents 9581f9d + de949d1 commit 69afa1c
Show file tree
Hide file tree
Showing 27 changed files with 4,003 additions and 0 deletions.
128 changes: 128 additions & 0 deletions account_invoice_inter_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
======================
Inter Company Invoices
======================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:705c323d012dad5f7fabb63c188aaef08b3ca0eaa5bba80b15583c6525e12d73
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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%2Fmulti--company-lightgray.png?logo=github
:target: https://github.com/OCA/multi-company/tree/17.0/account_invoice_inter_company
:alt: OCA/multi-company
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/multi-company-17-0/multi-company-17-0-account_invoice_inter_company
: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/multi-company&target_branch=17.0
:alt: Try me on Runboat

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

This module is usefull if there are multiple companies in the same Odoo
database and those companies sell goods or services among themselves. It
allow to create an invoice in company A from an invoice in company B.

Imagine you have company A and company B in the same Odoo database.
First scenario: company B create an invoice with company A as customer.
The module will automate the generation of the supplier invoice in
company A. Second scenario: company A create an invoice with company B
as supplier. The module will automate the generation of the customer
invoice in company B.

**Table of contents**

.. contents::
:local:

Configuration
=============

To configure this module, you need to go to the menu *Settings > General
Settings*, go to the tab *Companies / Inter Company OCA features*

You now have access to other options *Intercompany user for invoices*
and *Invoice Auto Validation*.

To customize products sharing don't hesitate to override
\_compute_share_product() in res.company model.

Known issues / Roadmap
======================

- This module cannot be fully used in combination with
remove_odoo_entreprise module. If you need both, uninstall
remove_odoo_entreprise, complete settings with
account_invoice_inter_company and then re-install
remove_odoo_entreprise.
- Product mapping: would be nice to have a matrix with the products
on the left side and on the top row the companies.

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

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

* Odoo SA
* Akretion

Contributors
------------

- Odoo S.A. (original module inter_company_rules)
- Andrea Stirpe <[email protected]>
- Adria Gil Sorribes <[email protected]>
- Christopher Ormaza <[email protected]>
- \`Akretion <https://www.akretion.com>\`:

- Chafique Delli <[email protected]>
- Alexis de Lattre <[email protected]>
- David Beal <[email protected]>

- \`Tecnativa <https://www.tecnativa.com>\`:

- Jairo Llopis
- David Vidal
- Pedro M. Baeza

- Isaac Gallart <[email protected]>
- \`Komit <https://komit-consulting.com>\`:

- Cuong Nguyen Mtm <[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.

This module is part of the `OCA/multi-company <https://github.com/OCA/multi-company/tree/17.0/account_invoice_inter_company>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions account_invoice_inter_company/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright 2013-2014 Odoo SA
# Copyright 2015-2017 Chafique Delli <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import models
24 changes: 24 additions & 0 deletions account_invoice_inter_company/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2013-2014 Odoo SA
# Copyright 2015-2017 Chafique Delli <[email protected]>
# Copyright 2020 Tecnativa - David Vidal
# Copyright 2020 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Inter Company Invoices",
"summary": "Intercompany invoice rules",
"version": "17.0.1.0.0",
"category": "Accounting & Finance",
"website": "https://github.com/OCA/multi-company",
"author": "Odoo SA, Akretion, Odoo Community Association (OCA)",
"license": "AGPL-3",
"depends": ["account", "base_setup"],
"data": [
"views/account_move_views.xml",
"views/res_config_settings_view.xml",
],
"demo": [
"demo/inter_company_demo.xml",
],
"installable": True,
}
13 changes: 13 additions & 0 deletions account_invoice_inter_company/demo/inter_company_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!--
Create inter company product
-->
<record id="product_consultant_multi_company" model="product.product">
<field name="name">Service Multi Company</field>
<field name="uom_id" ref="uom.product_uom_hour" />
<field name="uom_po_id" ref="uom.product_uom_hour" />
<field name="categ_id" ref="product.product_category_3" />
<field name="detailed_type">service</field>
</record>
</odoo>
216 changes: 216 additions & 0 deletions account_invoice_inter_company/i18n/account_invoice_inter_company.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_inter_company
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid "%(company_name)s - Canceled Invoice: %(invoice_name)s"
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid "%(company_name)s - Invoice: %(invoice_name)s"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_bank_statement_line__auto_generated
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_move__auto_generated
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_payment__auto_generated
msgid "Auto Generated Document"
msgstr ""

#. module: account_invoice_inter_company
#: model_terms:ir.ui.view,arch_db:account_invoice_inter_company.res_config_settings_view_form
msgid "Common Product Catalog"
msgstr ""

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

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

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_company__intercompany_invoice_user_id
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_config_settings__intercompany_invoice_user_id
msgid "Inter Company Invoice User"
msgstr ""

#. module: account_invoice_inter_company
#: model_terms:ir.ui.view,arch_db:account_invoice_inter_company.res_config_settings_view_form
msgid ""
"Inter Company OCA features\n"
" <span class=\"fa fa-lg fa-building-o\" title=\"Values set here are company-specific.\" aria-label=\"Values set here are company-specific.\" groups=\"base.group_multi_company\" role=\"img\"/>"
msgstr ""

#. module: account_invoice_inter_company
#: model_terms:ir.ui.view,arch_db:account_invoice_inter_company.res_config_settings_view_form
msgid "Intercompany user for invoices"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_company__invoice_auto_validation
#: model_terms:ir.ui.view,arch_db:account_invoice_inter_company.res_config_settings_view_form
msgid "Invoice Auto Validation"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_config_settings__invoice_auto_validation
msgid "Invoices Auto Validation"
msgstr ""

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

#. module: account_invoice_inter_company
#: model:ir.model,name:account_invoice_inter_company.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model,name:account_invoice_inter_company.model_account_move_line
msgid "Journal Item"
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/tests/test_inter_company_invoice.py:0
#, python-format
msgid "No Chart of Account Template has been defined !"
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid ""
"Please define %(dest_journal_type)s journal for this company: "
"\"%(dest_company_name)s\" (id:%(dest_company_id)d)."
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,help:account_invoice_inter_company.field_res_company__intercompany_invoice_user_id
msgid ""
"Responsible user for creation of invoices triggered by intercompany rules."
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,help:account_invoice_inter_company.field_res_config_settings__intercompany_invoice_user_id
msgid ""
"Responsible user for creation of invoices triggered by intercompany rules. "
"If not set the user initiating thetransaction will be used"
msgstr ""

#. module: account_invoice_inter_company
#: model:product.template,name:account_invoice_inter_company.product_consultant_multi_company_product_template
msgid "Service Multi Company"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_company__company_share_product
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_config_settings__company_share_product
msgid "Share product to all companies"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,help:account_invoice_inter_company.field_res_company__company_share_product
#: model:ir.model.fields,help:account_invoice_inter_company.field_res_config_settings__company_share_product
msgid ""
"Share your product to all companies defined in your instance.\n"
" * Checked : Product are visible for every company, even if a company is defined on the partner.\n"
" * Unchecked : Each company can see only its product (product where company is defined). Product not related to a company are visible for all companies."
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_bank_statement_line__auto_invoice_id
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_move__auto_invoice_id
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_payment__auto_invoice_id
msgid "Source Invoice"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_account_move_line__auto_invoice_line_id
msgid "Source Invoice Line"
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid ""
"The invoice line '%(line_name)s' doesn't have a product. All invoice lines "
"should have a product for inter-company invoices."
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid ""
"This is an autogenerated multi company invoice and you're trying to modify "
"the amount, which will differ from the source one (%s)"
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid ""
"WARNING!!!!! Failure in the inter-company invoice creation process: the "
"total amount of this invoice is %(dest_amount_total)s but the total amount "
"of the invoice %(invoice_name)s in the company %(company_name)s is "
"%(amount_total)s"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,help:account_invoice_inter_company.field_res_company__invoice_auto_validation
msgid ""
"When an invoice is created by a multi company rule for this company, it will"
" automatically validate it"
msgstr ""

#. module: account_invoice_inter_company
#: model:ir.model.fields,help:account_invoice_inter_company.field_res_config_settings__invoice_auto_validation
msgid ""
"When an invoice is created by a multi company rule for this company, it will"
" automatically validate it."
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid ""
"You can't modify this invoice as it has an inter company invoice that's in posted state.\n"
"Invoice %(invoice_name)s to %(partner_name)s"
msgstr ""

#. module: account_invoice_inter_company
#. odoo-python
#: code:addons/account_invoice_inter_company/models/account_move.py:0
#, python-format
msgid ""
"You cannot create invoice in company '%(dest_company_name)s' with product "
"'%(product_name)s' because it is not multicompany"
msgstr ""
Loading

0 comments on commit 69afa1c

Please sign in to comment.