Search 1.9 billion lines of Odoo code on GitHub

intrastat_product

Author: brain-tec AG, Akretion, Noviat, Odoo Community Association (OCA)
License: AGPL-3
Branch: 14.0
Repository: brain-tec/intrastat
Dependencies: account, base, intrastat_base, product_harmonized_system, purchase_stock, report_xlsx_helper, sale_stock, and stock
Languages: HTML (416, 10.7%), PO File (633, 16.3%), Python (1667, 42.9%), XML (1035, 26.6%), and reStructuredText (137, 3.5%)
Other branches: 10.0, 10.0-add-type-to-view, 11.0, 11.0-mig-intrastat_product, 11.0-pass-declaration-to-xls-template, 11.0-xp, 12-intrastat-reminder-m2m-table, 12.0, 13-brexit-support, 13.0, 13.0-intrastat_product-fix_compute_hs_code_id, 15.0, 15.0-ocabot-update-dotfiles, 8.0, 9.0, and pass-declaration-to-xls-template
Other repositories: BenjaHe/intrastat-extrastat, Bubbles-IT/intrastat, Bubbles-IT/noviat-apps, CGenie/intrastat, CatsAndDogsbvba/noviat-apps, Change2improve/intrastat-extrastat, DudhatShivam/noviat-apps, FullBringEc/noviat-apps, Gabinete-Digital/intrastat-extrastat, Guobower/noviat-apps, ICTSTUDIO/noviat-apps, ITISAG-OCA/intrastat, Idealisconsulting/noviat-apps, Ingeos/intrastat-extrastat, Ingeos/noviat-apps, LionMathias/intrastat-extrastat, NL66278/noviat-apps, NeatNerdPrime/intrastat-extrastat, Noviat/intrastat, OCA-MUK/intrastat-extrastat, OCA/intrastat-extrastat, OdooBulgaria/noviat-apps, Organize-IT/noviat-apps, OutillageStEtienne/intrastat, PieterPaulussen/noviat-apps, SVQTQ/noviat-apps, SetRac/noviat-apps, SeuMarco/intrastat-extrastat, StefanRijnhart/noviat-apps, Tecnativa/intrastat, Tonow-c2c/intrastat-extrastat, VisiionSolucionesTecnologicas/intrastat, aaltinisik/intrastat-extrastat, acsone/intrastat-extrastat, akretion/account-financial-reporting, akretion/intrastat-extrastat, akretion/noviat-apps, alanljj/noviat-apps, apachesep/intrastat, apetbiz/intrastat, aroodooteam/noviat-apps, aurestic/intrastat, bealdav/intrastat-extrastat, brain-tec/noviat-apps, bvkl/intrastat, cameroun/noviat-apps, camptocamp/intrastat-extrastat, clagoa/noviat-apps, coopaname/noviat-apps, damdam-s/account-financial-reporting, diagramsoftware/intrastat, diggy128/intrastat, doomsterinc/noviat-apps, druidoo-dev/intrastat-extrastat, eezee-it/noviat-apps, factorlibre/intrastat-extrastat, fjouatte/intrastat-extrastat, flocalhost/intrastat-extrastat, francislouie/noviat-apps, gfcapalbo/noviat-apps, guewen/intrastat-extrastat, gurneyalex/account-financial-reporting, haroldtamo/intrastat, haryoran04/noviat-apps, haylahi/noviat-apps, hbrunn/account-financial-reporting, hbrunn/noviat-apps, ilexius/noviat-apps, johanvhg/noviat-apps, kossovo/noviat-apps, lbelorgey/intrastat-extrastat, leemannd/intrastat, lfreeke/intrastat, lideritjnma/intrastat-extrastat, likaiyuan/noviat-apps, lonelyleaves/noviat-apps, lubonbvba/noviat-apps, luc-demeyer/account-financial-reporting, luc-demeyer/intrastat-extrastat, luc-demeyer/noviat-apps, mah007/noviat-apps, marionumza/noviat-apps, markrobinson85/noviat-apps, mdietrichc2c/noviat-apps, mohamedhagag/noviat-apps, odof/intrastat, odoo-modules/noviat-apps, open-synergy/intrastat, ovnicraft/noviat-apps, petypi/noviat-apps, praxya/intrastat, pscloud/intrastat, redblow/intrastat-extrastat, rkhalil1990/noviat-apps, rven/noviat-apps, sanube/intrastat-extrastat, sasakuma/noviat-apps, schout-it/noviat-apps, sunflowerit/intrastat, sunflowerit/noviat-apps, suningwz/noviat-apps, syci/noviat-apps, taktik/noviat-apps, ursais/intrastat, van-orsouw-consultancy/noviat-apps, and vidtsin/noviat-apps

<h1 class="title">Intrastat Product</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/intrastat-extrastat/tree/14.0/intrastat_product"><img alt="OCA/intrastat-extrastat" src="https://img.shields.io/badge/github-OCA%2Fintrastat--extrastat-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/intrastat-extrastat-14-0/intrastat-extrastat-14-0-intrastat_product"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/227/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module contains common objects and fields for the Intrastat Product reporting.</p> <p>It should be used in combination with country-specific Intrastat Product reporting modules such as:</p> <ul class="simple"> <li><em>l10n_fr_intrastat_product</em>: the module for the <em>Déclaration d'Echange de Biens</em> (DEB) for France</li> <li><em>l10n_be_intrastat_product</em>: the module for the Intrastat Product Declaration for Belgium</li> </ul> <p>These country-specific modules can be found in the OCA localization for those countries.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#installation" id="id1">Installation</a></li> <li><a class="reference internal" href="#configuration" id="id2">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id3">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id4">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id5">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id6">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id7">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id8">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id9">Maintainers</a></li> </ul> </li> </ul> </div> <a name="installation"></a> <h2><a class="toc-backref" href="#id1">Installation</a></h2> <p>This module is NOT compatible with the <em>account_intrastat</em> module from Odoo Enterprise.</p> <a name="configuration"></a> <h2><a class="toc-backref" href="#id2">Configuration</a></h2> <p>By default the intrastat declaration is generated based upon the product record master data. Hence unexpected results may occur in case this master data is not accurate, e.g. wrong or missing weight, country of origin, ...</p> <div class="line-block"> <div class="line"><br /></div> </div> <p>This can be corrected by changing the appropriate fields when analysing the intrastat declaration but this can be challenging in case of large transaction volumes and especially in the specific use case where the product weight cannot be encoded correctly on the product records (e.g. products with variable weight).</p> <div class="line-block"> <div class="line"><br /></div> </div> <p>It is possible to allow encoding the intrastat transaction details on the purchase/sale invoice via the &quot;intrastat_product.group_invoice_intrastat_transaction_detail&quot; usability group.</p> <a name="usage"></a> <h2><a class="toc-backref" href="#id3">Usage</a></h2> <p>This module is used in combination with the country-specific localization module(s).</p> <p><strong>Coding guidelines for localization module:</strong></p> <p>We recommend to start by copying an existing module, e.g. l10n_be_intrastat_product and adapt the code for the specific needs of your country.</p> <ul> <li><p class="first">Declaration Object</p> <p>Create a new class as follows:</p> <pre> <code lang="python">class L10nCcIntrastatProductDeclaration(models.Model): _name = 'l10n.cc.intrastat.product.declaration' _description = &quot;Intrastat Product Declaration for YourCountry&quot; _inherit = ['intrastat.product.declaration', 'mail.thread']</code> </pre> <p>whereby cc = your country code</p> </li> <li><p class="first">Computation &amp; Declaration Lines</p> <p>Create also new objects inheriting from the Computation and Declaration Line Objects so that you can add methods or customise the methods from the base modules (make a PR when the customization or new method is required for multiple countries).</p> <p>Adapt also the parent_id fields of the newly created objects (cf. l10n_be_intrastat_product as example).</p> </li> <li><p class="first">XML Files: Menu, Action, Views</p> <p>Cf. l10n_be_istrastat_product as example, replace &quot;be&quot; by your Country Code.</p> </li> </ul> <p><strong>Other functionality added by this module:</strong></p> <ul class="simple"> <li>Compute the Intrastat Lines in an invoice. For this, your user needs to be in the &quot;Technical / Invoice Intrastat Transaction Details&quot; group. Go to the &quot;Intrastat transaction details&quot; tab and press <strong>Compute</strong></li> </ul> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id4">Known issues / Roadmap</a></h2> <p>The declaration is based upon the invoices of the corresponding tax declaration period.</p> <p>An option to generate the intrastat declaration based upon the dates of the physical movements of goods is currently not available.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id5">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/intrastat-extrastat/issues">GitHub Issues</a>. 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 <a class="reference external" href="https://github.com/OCA/intrastat-extrastat/issues/new?body=module:%20intrastat_product%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id6">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id7">Authors</a></h3> <ul class="simple"> <li>brain-tec AG</li> <li>Akretion</li> <li>Noviat</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id8">Contributors</a></h3> <ul> <li><p class="first">Alexis de Lattre, Akretion &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</p> </li> <li><p class="first">Luc De Meyer, Noviat &lt;<a class="reference external" href="mailto:info&#64;noviat.com">info&#64;noviat.com</a>&gt;</p> </li> <li><p class="first">Tecnativa &lt;www.tecnativa.com&gt;:</p> <blockquote> <ul class="simple"> <li>João Marques</li> </ul> </blockquote> </li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id9">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/intrastat-extrastat/tree/14.0/intrastat_product">OCA/intrastat-extrastat</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>