-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
intrastat_product: auto reformatting to prepare v17 migration
- Loading branch information
1 parent
fa64996
commit ef41f02
Showing
17 changed files
with
218 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["whool"] | ||
build-backend = "whool.buildapi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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, ... | ||
|
||
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). | ||
|
||
It is possible to allow encoding the intrastat transaction details on | ||
the purchase/sale invoice via the | ||
"intrastat_product.group_invoice_intrastat_transaction_detail" usability | ||
group. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
- Alexis de Lattre, Akretion \<<alexis.delattre@akretion.com>\> | ||
|
||
- Luc De Meyer, Noviat \<<info@noviat.com>\> | ||
|
||
- Denis Roussel \<<denis.roussel@acsone.eu>\> | ||
|
||
- Tecnativa \<www.tecnativa.com\>: | ||
|
||
> - João Marques | ||
> - Víctor Martínez |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
This module contains common objects and fields for the Intrastat Product | ||
reporting. | ||
|
||
It should be used in combination with country-specific Intrastat Product | ||
reporting modules such as: | ||
|
||
- *l10n_fr_intrastat_product*: the module for the *Déclaration d'Echange | ||
de Biens* (DEB) for France | ||
- *l10n_be_intrastat_product*: the module for the Intrastat Product | ||
Declaration for Belgium | ||
|
||
These country-specific modules can be found in the OCA localization for | ||
those countries. |
This file was deleted.
Oops, something went wrong.
3 changes: 2 additions & 1 deletion
3
intrastat_product/readme/INSTALL.rst → intrastat_product/readme/INSTALL.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
This module is NOT compatible with the *account_intrastat* module from Odoo Enterprise. | ||
This module is NOT compatible with the *account_intrastat* module from | ||
Odoo Enterprise. |
6 changes: 4 additions & 2 deletions
6
intrastat_product/readme/ROADMAP.rst → intrastat_product/readme/ROADMAP.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
The declaration is based upon the invoices of the corresponding tax declaration period. | ||
The declaration is based upon the invoices of the corresponding tax | ||
declaration period. | ||
|
||
An option to generate the intrastat declaration based upon the dates of the physical movements of goods is currently not available. | ||
An option to generate the intrastat declaration based upon the dates of | ||
the physical movements of goods is currently not available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
This module is used in combination with the country-specific | ||
localization module(s). | ||
|
||
**Coding guidelines for localization module:** | ||
|
||
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. | ||
|
||
- Declaration Object | ||
|
||
Create a new class as follows: | ||
|
||
``` python | ||
class L10nCcIntrastatProductDeclaration(models.Model): | ||
_name = 'l10n.cc.intrastat.product.declaration' | ||
_description = "Intrastat Product Declaration for YourCountry" | ||
_inherit = ['intrastat.product.declaration', 'mail.thread'] | ||
``` | ||
|
||
whereby cc = your country code | ||
|
||
- Computation & Declaration Lines | ||
|
||
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). | ||
|
||
Adapt also the parent_id fields of the newly created objects (cf. | ||
l10n_be_intrastat_product as example). | ||
|
||
- XML Files: Menu, Action, Views | ||
|
||
Cf. l10n_be_istrastat_product as example, replace "be" by your Country | ||
Code. | ||
|
||
**Other functionality added by this module:** | ||
|
||
- Compute the Intrastat Lines in an invoice. For this, your user needs | ||
to be in the "Technical / Invoice Intrastat Transaction Details" | ||
group. Go to the "Intrastat transaction details" tab and press | ||
**Compute** |
Oops, something went wrong.