Skip to content

Commit

Permalink
[MIG] account_invoice_import_facturx to v12
Browse files Browse the repository at this point in the history
Update technical name of module to remove '-'
Up-port PR OCA#78 Auto-creation of bank accounts upon invoice import is now optional
Fix returned action when using the import wizard
  • Loading branch information
alexis-via committed Sep 1, 2021
1 parent 4edb6de commit 80b848f
Show file tree
Hide file tree
Showing 39 changed files with 92 additions and 352 deletions.
3 changes: 0 additions & 3 deletions account_invoice_import_factur-x/__init__.py

This file was deleted.

234 changes: 0 additions & 234 deletions account_invoice_import_factur-x/tests/files/Factur-X_BASIC-1.xml

This file was deleted.

54 changes: 0 additions & 54 deletions account_invoice_import_factur-x/tests/files/Factur-X_MINIMUM-1.xml

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions account_invoice_import_facturx/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# -*- coding: utf-8 -*-
# © 2015-2017 Akretion (Alexis de Lattre <[email protected]>)
# Copyright 2015-2020 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
'name': 'Account Invoice Import Factur-X',
'version': '10.0.1.0.0',
'category': 'Accounting & Finance',
'version': '12.0.1.0.0',
'category': 'Invoicing Management',
'license': 'AGPL-3',
'summary': 'Import ZUGFeRD and Factur-X supplier invoices/refunds',
'summary': 'Import Factur-X/ZUGFeRD supplier invoices/refunds',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'depends': ['account_invoice_import', 'base_zugferd'],
'website': 'https://github.com/OCA/edi',
'depends': ['account_invoice_import', 'base_facturx'],
'external_dependencies': {'python': ['facturx']},
'data': ['wizard/account_invoice_import_view.xml'],
'demo': ['demo/demo_data.xml'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,26 @@
<field name="user_type_id" ref="account.data_account_type_expenses"/>
</record>

<record id="jolie_boutique" model="res.partner">
<field name="name">Ma jolie boutique</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="True"/>
<field name="customer" eval="False"/>
<field name="street">35 rue de la république</field>
<field name="zip">69001</field>
<field name="city">Lyon</field>
<field name="country_id" ref="base.fr"/>
<field name="vat">FR11999999998</field>
</record>

<record id="jolie_boutique_import_config" model="account.invoice.import.config">
<field name="name">Jolie Boutique</field>
<field name="partner_id" ref="jolie_boutique"/>
<field name="invoice_line_method">1line_no_product</field>
<field name="account_id" ref="charge_account"/>
<field name="tax_ids" eval="[(4, ref('account_invoice_import_facturx.fr_vat_purchase_20'))]"/>
</record>

<record id="lieferant" model="res.partner">
<field name="name">Lieferant GmbH</field>
<field name="is_company" eval="True"/>
Expand Down Expand Up @@ -97,7 +117,7 @@ Versicherungsverein Musterstadt a.G.</field>
<field name="type_tax_use">purchase</field>
<field name="amount">19</field>
<field name="amount_type">percent</field>
<field name="unece_type_id" ref="base_zugferd.tax_type_zf_insurance_tax"/>
<field name="unece_type_id" ref="base_facturx.tax_type_zf_insurance_tax"/>
<field name="unece_categ_id" ref="account_tax_unece.tax_categ_s"/>
<field name="account_id" ref="charge_account"/>
<field name="refund_account_id" ref="charge_account"/>
Expand All @@ -109,7 +129,7 @@ Versicherungsverein Musterstadt a.G.</field>
<field name="type_tax_use">purchase</field>
<field name="amount">16.34</field>
<field name="amount_type">percent</field>
<field name="unece_type_id" ref="base_zugferd.tax_type_zf_insurance_tax"/>
<field name="unece_type_id" ref="base_facturx.tax_type_zf_insurance_tax"/>
<field name="unece_categ_id" ref="account_tax_unece.tax_categ_s"/>
<field name="account_id" ref="charge_account"/>
<field name="refund_account_id" ref="charge_account"/>
Expand Down Expand Up @@ -141,7 +161,7 @@ Versicherungsverein Musterstadt a.G.</field>
<field name="partner_id" ref="test_noline"/>
<field name="invoice_line_method">1line_no_product</field>
<field name="account_id" ref="charge_account"/>
<field name="tax_ids" eval="[(4, ref('account_invoice_import_factur-x.fr_vat_purchase_20'))]"/>
<field name="tax_ids" eval="[(4, ref('account_invoice_import_facturx.fr_vat_purchase_20'))]"/>
</record>

<record id="test_line" model="res.partner">
Expand All @@ -158,7 +178,7 @@ Versicherungsverein Musterstadt a.G.</field>
<field name="partner_id" ref="test_line"/>
<field name="invoice_line_method">nline_no_product</field>
<field name="account_id" ref="charge_account"/>
<field name="tax_ids" eval="[(4, ref('account_invoice_import_factur-x.fr_vat_purchase_20'))]"/>
<field name="tax_ids" eval="[(4, ref('account_invoice_import_facturx.fr_vat_purchase_20'))]"/>
</record>


Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions account_invoice_import_facturx/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Alexis de Lattre <[email protected]>
1 change: 1 addition & 0 deletions account_invoice_import_facturx/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This module is an extension of the module *account_invoice_import*: it adds the ability to import Factur-X 1.0 (i.e. ZUGFeRD 2.0) and older ZUGFeRD 1.0 invoices. The `Factur-X <http://fnfe-mpe.org/factur-x/>`_ standard is based on `CII <http://tfig.unece.org/contents/cross-industry-invoice-cii.htm>`_ (Cross-Industry Invoice) for electronic invoicing. A Factur-X invoice is a PDF invoice with an embedded XML file in CII format that carries structured information about the invoice.
5 changes: 5 additions & 0 deletions account_invoice_import_facturx/readme/INSTALL.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module requires the Python library `factur-x <https://github.com/akretion/factur-x>`_ developped by Akretion. To install it, run:

.. code::
sudo pip3 install --upgrade factur-x
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
# -*- coding: utf-8 -*-

from . import test_facturx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 80b848f

Please sign in to comment.