Skip to content

Commit

Permalink
Merge PR #202 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by sbidoul
  • Loading branch information
OCA-git-bot committed Feb 22, 2024
2 parents 39151d1 + e51d1f2 commit f0cb4b0
Show file tree
Hide file tree
Showing 18 changed files with 5,013 additions and 0 deletions.
117 changes: 117 additions & 0 deletions l10n_be_antibiotic_tax/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
=========================
Belgium Antibiotics Taxes
=========================

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

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

This is a data module which extends the l10n_be chart of taxes
to support Antibiotics Taxes.

**Table of contents**

.. contents::
:local:

Installation
============

There is no specific installation procedure for this module.

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

If you install this module after instanciating the chart of account
for your company, it is recommanded to use the account_chart_update
module from the OCA/account-financial-tools repository .

You may also need to customize your invoice layout to render
these antibiotic taxes in the desired way.

Usage
=====

To use this module, you need to add the antibiotic
taxes on the products which are subjected to these rules:

* https://www.fagg-afmps.be/fr/veterinaire/medicaments/medicaments/distribution/taxe_antibiotique

You must make sure that the sequences of the ANTIOTIC taxes
is smaller than the sequences of the VAT taxes so the VAT is correctly
computed on top of the ANTIBIOTIC taxes. The sequences are correct
when using l10n_be_taxes.

The module also define a specific tax code template for antibiotic taxes which
may help in reporting, and specific expense and income account templates.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/119/9.0

For further information, please visit:

* https://www.odoo.com/forum/help-1

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

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-belgium/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/l10n-belgium/issues/new?body=module:%20l10n_be_antibiotic_tax%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 sprl
* Okia

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

* 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.

This module is part of the `OCA/l10n-belgium <https://github.com/OCA/l10n-belgium/tree/16.0/l10n_be_antibiotic_tax>`_ 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 l10n_be_antibiotic_tax/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .hooks import post_init_hook
22 changes: 22 additions & 0 deletions l10n_be_antibiotic_tax/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2016 BCIM sprl(http://www.bcim.be)
# Copyright 2017 Okia SPRL (https://okia.be)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Belgium Antibiotics Taxes",
"summary": "Data module to support antibiotics taxes",
"version": "16.0.1.0.0",
"author": "BCIM sprl, Okia, Odoo Community Association (OCA)",
"category": "Generic Modules/Accounting",
"website": "https://github.com/OCA/l10n-belgium",
"depends": ["account", "l10n_be"],
"data": [
"data/account_tax_code_template.xml",
"data/account_account_template_data.xml",
"data/account_tax_template_antibiotic_out_data.xml",
"data/account_tax_template_antibiotic_in_data.xml",
],
"license": "AGPL-3",
"installable": True,
"post_init_hook": "post_init_hook",
}
20 changes: 20 additions & 0 deletions l10n_be_antibiotic_tax/data/account_account_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<record id="antibiotic_income_account" model="account.account.template">
<field name="name">ANTIBIOTIC Sale</field>
<field name="code">70097</field>
<field name="account_type">income</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]" />
</record>

<record id="antibiotic_expense_account" model="account.account.template">
<field name="name">ANTIBIOTIC Purchase</field>
<field name="code">60197</field>
<field name="account_type">expense</field>
<field name="chart_template_id" ref="l10n_be.l10nbe_chart_template" />
<field name="tag_ids" eval="[(6,0,[ref('account.account_tag_operating')])]" />
</record>

</odoo>
8 changes: 8 additions & 0 deletions l10n_be_antibiotic_tax/data/account_tax_code_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>

<record id="tax_tag_antibiotax" model="account.account.tag">
<field name="name">Antibiotic Taxes</field>
</record>

</odoo>
Loading

0 comments on commit f0cb4b0

Please sign in to comment.