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

[18.0][MIG] account_invoice_inter_company #757

Open
wants to merge 81 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
d0a961e
[10.0] [MIG] account_invoice_inter_company (#71)
chafique-delli Jan 12, 2018
bacfea7
[11.0][MIG] Port account_invoice_inter_company + refactoring
astirpe Jan 13, 2018
46eb6f3
[FIX] Set company False and fix French vat.
etobella Jun 27, 2018
bc851ad
[FIX] account_invoice_inter_company: Move demo data to test
yajo Sep 14, 2018
d1c4ae7
[11.0][IMP] account_invoice_inter_company: option to avoid product_id…
astirpe Oct 12, 2018
1011d85
PORT 12.0 account_invoice_inter_company
bealdav Feb 13, 2019
9348fd9
FIX doc and dependencies
bealdav Feb 13, 2019
1d124d2
FIX account_invoice_inter_company: switch config related field to rea…
bealdav Mar 19, 2019
333d347
IMP invoice_inter_cpny: settings layout
bealdav Mar 19, 2019
0113fb5
FIX doc according remarks
bealdav May 22, 2019
2a041af
Update account_invoice_inter_company/models/account_invoice.py
bealdav May 23, 2019
579f667
[FIX] account_invoice_inter_company: Compatibility with password_secu…
yajo Jul 17, 2019
9b02bd1
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 17, 2019
35c237c
Fix tests when product are not shared between commpanies
florian-dacosta Sep 30, 2019
1beead5
[FIX] account_invoice_inter_company: Tests
max3903 Nov 7, 2019
190b317
Added translation using Weblate (Croatian)
badbole Nov 14, 2019
f1ab370
account_invoice_inter_company 12.0.1.0.1
OCA-git-bot Dec 10, 2019
bf69260
Added translation using Weblate (Italian)
eLBati Feb 20, 2020
67f2084
[IMP] account_invoice_inter_company: black, isort
AdriaGForgeFlow Mar 27, 2020
1594935
[13.0][MIG] account_invoice_inter_company
AdriaGForgeFlow Mar 27, 2020
3679df7
add extra config settings:
JordiBForgeFlow Mar 31, 2020
a064d2c
[IMP] res_config_settings view
AdriaGForgeFlow Mar 31, 2020
bedf113
Translated using Weblate (Chinese (Simplified))
dong-z Apr 7, 2020
736dbe3
[13.0][FIX] account_invoice_inter_company: Solved problems for create…
CarlosRoca13 Apr 23, 2020
12dc42d
[FIX] account_invoice_inter_company: onchange_helper dep
chienandalu May 21, 2020
cec86bc
[IMP] account_invoice_inter_company: Move analytic info between invoices
pedrobaeza Jun 1, 2020
c7899e0
[FIX] account_invoice_inter_company: Handle invoices in multi-line
pedrobaeza Jun 1, 2020
de198ba
account_invoice_inter_company 13.0.2.0.0
OCA-git-bot Jun 18, 2020
eea0cc8
Update translation files
oca-transbot Jun 18, 2020
402cc7a
account_invoice_inter_company 13.0.2.0.1
OCA-git-bot Jul 3, 2020
1a5e583
[FIX]account_invoice_inter_company
AaronHForgeFlow Jul 7, 2020
dbdf04a
IMP acc_inv_inter_cpny: detect intercompany with commercial_partner_id
bealdav Aug 11, 2020
68f032e
account_invoice_inter_company 13.0.2.0.2
OCA-git-bot Aug 11, 2020
36f5914
Update translation files
oca-transbot Aug 16, 2020
5039fdb
Added translation using Weblate (Spanish (Argentina))
ibuioli Oct 25, 2020
92e3eb4
[IMP]account_invoice_inter_company
AaronHForgeFlow Oct 29, 2020
f1d687a
account_invoice_inter_company 13.0.2.0.3
OCA-git-bot Oct 30, 2020
c0b9988
FIX acc_inv_inter_cpny: behavior with standard security rule
bealdav Sep 24, 2020
6dfc10b
[FIX] account_invoice_intercompany: display lines
chienandalu Nov 11, 2020
9306512
[FIX] read access is conditionned by company_ids now (not company_id)
Dec 3, 2020
c1d0e23
account_invoice_inter_company 13.0.2.0.4
OCA-git-bot Dec 3, 2020
2d496d1
[IMP] account_invoice_inter_company: black, isort, prettier
Dec 4, 2020
46ad159
[MIG] account_invoice_inter_company: Migration to 14.0
Dec 4, 2020
cd7ac4e
[FIX] migrate to 14.0
Dec 4, 2020
baec028
Added translation using Weblate (Spanish)
anasuarez1 Mar 9, 2021
795de4a
[FIX] account_invoice_inter_company: draft button
chienandalu Jun 3, 2021
3af6157
[FIX] account_invoice_intercompany: filter moves with type entry
chienandalu Jun 8, 2021
750ca0e
[FIX+IMP] account_invoice_inter_company: Remove VAT + useless records
pedrobaeza Mar 30, 2021
dcf5efa
Translated using Weblate (Spanish (Argentina))
ibuioli Jul 9, 2021
bec84f6
Translated using Weblate (Croatian)
MatijaKrolo Oct 8, 2021
97aadd7
IMP inv_inter_cpny: add partner_shipping_id field
bealdav Oct 13, 2021
d51de21
account_invoice_inter_company 14.0.1.0.2
OCA-git-bot Oct 20, 2021
993dc03
[FIX] account_invoice_inter_company: Delete default_journal_id key if…
omar7r Nov 4, 2021
7112853
account_invoice_inter_company 14.0.1.0.3
OCA-git-bot Nov 27, 2021
d353d5a
[IMP] account_invoice_inter_company: black, isort, prettier
ChrisOForgeFlow Feb 18, 2022
3746678
[15.0][MIG] account_invoice_inter_company
ChrisOForgeFlow Feb 18, 2022
c30c73f
[IMP] compare only on untaxed amount, companies can apply differents …
ChrisOForgeFlow Jul 26, 2022
fc3ce06
Add compatibility between account_invoice_inter_company and modules s…
florian-dacosta Mar 11, 2022
ed70099
[IMP] account_invoice_inter_company: Speed improvement
igallart Apr 29, 2022
b8b6087
account_invoice_inter_company: fix check product
sebastienbeau Jun 11, 2022
ce4fe32
[FIX] account_invoice_inter_company : run test at post install
metaminux Dec 7, 2022
c247c7c
[MIG] account_invoice_inter_company: Migration to 16.0
chafique-delli Jan 6, 2023
d7925dc
account_invoice_inter_company 16.0.1.0.1
OCA-git-bot Mar 2, 2023
8214131
Translated using Weblate (Spanish)
Ivorra78 Aug 22, 2023
bb8a04c
[UPD] README.rst
OCA-git-bot Sep 3, 2023
2a0dbfc
Translated using Weblate (Spanish (Argentina))
ibuioli Nov 2, 2023
2675961
[FIX] account_invoice_inter_company: Remove self company
renda-dev Oct 25, 2023
d5c4a61
Translated using Weblate (Italian)
mymage Feb 13, 2024
c1f1cfb
[IMP] account_invoice_inter_company: pre-commit auto fixes
cuongnmtm Feb 26, 2024
13c8052
[MIG] account_invoice_inter_company: Migration to 17.0
cuongnmtm Mar 15, 2024
648752e
[UPD] Update account_invoice_inter_company.pot
Aug 30, 2024
e4354c1
[BOT] post-merge updates
OCA-git-bot Aug 30, 2024
3023877
Update translation files
weblate Aug 30, 2024
c9aec51
Translated using Weblate (Italian)
mymage Aug 31, 2024
6131cbb
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 16, 2024
1003267
[IMP] account_invoice_inter_company: propagate invoice payment reference
JordiMForgeFlow Nov 28, 2024
99a6d2d
[BOT] post-merge updates
OCA-git-bot Nov 28, 2024
708403a
[IMP] account_invoice_inter_company: pre-commit auto fixes
HviorForgeFlow Jan 20, 2025
01f1a49
[MIG] account_invoice_inter_company: Migration to 18.0
HviorForgeFlow Jan 20, 2025
a57e342
[IMP] account_invoice_inter_company: add setting to disable or enable…
MarinaAForgeFlow May 30, 2024
bf96433
[IMP] account_invoice_inter_company : Ensure supplier reference is se…
florian-dacosta Sep 27, 2024
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
129 changes: 129 additions & 0 deletions account_invoice_inter_company/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
======================
Inter Company Invoices
======================

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

.. |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/18.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-18-0/multi-company-18-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=18.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:%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
-------

* 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]>
- Hector Villarreal <[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/18.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": "18.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="type">service</field>
</record>
</odoo>
193 changes: 193 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,193 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_inter_company
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.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 ""
"Automatically generate counterpart documents for orders/invoices between "
"companies"
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"
msgstr ""

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

#. module: account_invoice_inter_company
#: model:ir.model.fields,field_description:account_invoice_inter_company.field_res_company__invoice_auto_validation
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 "Invoices User"
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/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_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