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

[16.0][MIG] EMEBI (ex-DEB) l10n_fr_intrastat_product #413

Merged
merged 184 commits into from
Jun 9, 2023
Merged
Changes from 1 commit
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
3cf6d5a
Started work on l10n_fr_intrastat_product
Mar 31, 2011
6c7f50c
First alpha version of the new module "l10n_fr_intrastat_product". Fi…
Apr 1, 2011
a631d5b
More work on full DEB+DES implementation. Added full support for "tra…
Apr 3, 2011
cb7bc87
Converted some fields on report_intrastat_product/service to many2one…
Apr 4, 2011
39c9fe3
In report_intrastat_product_line, remplace the 2 country fields from …
Apr 4, 2011
1cb4ce5
Complete change of design for intrastat_type ! Now that report_intras…
Apr 4, 2011
8946352
Renamed some fields Now manages the specifications of the different p…
Apr 5, 2011
381edab
"Date done" converted to date + time. Re-order fields in intrastat_se…
Apr 6, 2011
8593e25
Better interface when entering DEB lines manually. Commit before I br…
Apr 6, 2011
b17e094
Brand new XML view for intrastat_product, for better usability (dynam…
Apr 6, 2011
ed55840
Move the check on weight higher in the code to avoid a crash when wei…
Apr 7, 2011
1c1b01d
Removed from prints (not all yet)
Apr 7, 2011
67fb6ce
Error in the inherit of view, which can cause a crash in the product …
Apr 8, 2011
130bb88
Desactivate a check temporaryly.
Apr 8, 2011
e7d06de
Add pricelist on res_company to compute the stat value Ability to fac…
Apr 9, 2011
c372667
- demo data : Add department on warehouse - removed the use of "user"…
Apr 9, 2011
621bcb0
Removed unused code in SQL query (this "id" field was required when i…
Apr 9, 2011
1e6b14d
- For "generate lines from picking", exclude picking from sale orders…
Apr 13, 2011
1d5f263
Full re-design of intrastat types : probably requires deleting the re…
Apr 18, 2011
2d1b763
New important feature : ability to exlude invoice lines that have a s…
Apr 20, 2011
847bac5
Label updated.
Apr 20, 2011
9033133
Bug when opening picking.
Apr 20, 2011
e289860
Support for some triangular operations (not all yet) [FIX] an issue w…
Apr 21, 2011
6798c43
Moved some demo data from l10n_fr_intrastat_product to intrastat_base…
Apr 26, 2011
7b35c03
Moved the field exclude_from_intrastat_if_present of account.tax from…
May 9, 2011
a3b01e6
User interface enhancements.
May 9, 2011
a2f5a46
Remove check that would block the manual creation of intrastat produc…
May 9, 2011
64d7b43
More fixes in manual creation of DEB lines (more to come...)
May 9, 2011
b066542
partner VAT is now saved when entering the DEB line manually.
May 9, 2011
15b9bac
It is now possible to set the H.S. code on the product category. Some…
May 15, 2011
291b1d8
. Implemented the fiscal representative : for example, when you ship …
Jun 6, 2011
288eb95
Update of some strings before translation. Started translation work.
Jun 10, 2011
3dad92b
Better error message when fiscal rep is missing.
Jun 10, 2011
e18a782
Some fixes in strings. Finished translation to French.
Jul 8, 2011
935975c
Add missing import
Jul 8, 2011
0ede772
Modify demo data.
Jul 8, 2011
8b0097e
Translation and strings update. Add demo data.
Aug 16, 2011
95433da
Port to OpenERP v6 Add seach views for Intrastat product and Intrasta…
Aug 16, 2011
adefb52
Remove select="2", which is useless in v6
Aug 17, 2011
1dac4a1
l10n_fr_intrastat_service : Moved the raise if the Partner VAT number…
Sep 5, 2011
2ef3889
Same modification as my previous commit for DEB : when we sell to a p…
Sep 7, 2011
9b8ecd3
Update translations.
Sep 9, 2011
c2a5804
Updated licence pointer.
Jan 30, 2012
b251378
Copy-paste comment error fixed !
Jan 30, 2012
b32c13f
Now manage UoM other than PCE. If the UoM required by the H.S. code i…
Feb 27, 2012
32fb10d
Longer description for HS code.
Mar 14, 2012
faf1b0d
Now support weight computation when UoM category is "Unit" and UoM !=…
Mar 14, 2012
dabc4a3
Fixes bug 955065 : don't declare DEB lines with value = 0
Mar 14, 2012
a743e69
l10n_fr_intrastat_product - SaleOrder's method action_invoice_create …
yvaucher May 10, 2012
705e635
Add option "is_accessory_cost" on product.template : If the invoice h…
Jun 5, 2012
604df7d
Update FR translation.
Jun 5, 2012
cbfb241
Add demo value for department.
Jun 7, 2012
b08e31e
Do not inherit action_invoice_create in sale.py and stock.py We now i…
Jun 7, 2012
c76ccbe
Use the new logger API of OpenERP 6.1 Move the "EU fiscal representat…
Jul 16, 2012
aaaf482
Rewrote the constraint of product.supplierinfo, for better perfs. Tha…
Sep 24, 2012
9946cb9
Code clean-up : - context is not passed in constraints - don't use la…
Nov 27, 2012
90b2628
IMPORTANT CHANGE : - All EU countries should now be intrastat=True, i…
Apr 23, 2013
3971bb1
As stated in BOD dated 05/01/2012, mouvements for repairs are not req…
Apr 23, 2013
4e03cc4
Initial port to v7.0. Not tested a lot for the moment.
Apr 24, 2013
24111e8
Continue removal of mouvements for repairs (cf BOD dated 05/01/2012)
Apr 24, 2013
1531cb7
Fix wrong code.
May 1, 2013
7dd31b3
Introduce a big hack to make the fields added on stock.picking work R…
May 1, 2013
f20d123
Adapt views to new v7.0 style. Replace "note" field by the mail.threa…
May 7, 2013
247e8fa
Handle the case where an invoice has products with 0 value and access…
May 16, 2013
92c17f2
Use the GREAT feature widget="monetary"
May 17, 2013
0af8d64
on picking, address_id -> partner_id
May 17, 2013
1c83495
Should now be compatible with both OCB and RS-OCB Add field import_ob…
Jun 3, 2013
8278436
Crash on intrastat_product.py line 334 reported by Frederic Clementi.
Jun 9, 2013
8ada04e
Add an e-mail reminder for l10n_fr_intrastat_product and l10n_fr_intr…
Aug 26, 2013
940ddb1
Better form view of product category, courtesy of David Beal.
Aug 26, 2013
29d31c0
Add the H.S. code description in the display name of the H.S. code
Sep 27, 2013
5acaec6
Fix to make the module truly usable when user is not part of the grou…
Oct 23, 2013
dee6128
Remove irrelevant comment.
Dec 15, 2013
4be972a
Add ir.rule for multi-company. Better "OpenERP v7 style/ergonomy" for…
Feb 1, 2014
6729851
Only send reminder for French companies.
Mar 8, 2014
3ff175e
Use l10n_fr_* : use the method _company_default_get() intrastat_base …
Apr 14, 2014
1cc0e95
Add context in on_change (to be able to use web_context_tunnel) XSD f…
Apr 14, 2014
a167ed5
Set fields country_id and intrastat_id invisible when type = service.
Apr 14, 2014
2a70424
l10n_fr_intrastat_service : update POT file and FR translation. l10n_…
Apr 14, 2014
204eda8
Continue the work on port to v8.0
Jul 3, 2014
4c2c172
Add intrastat_type_data and update demo data accordingly Remove versi…
Jul 3, 2014
8439ae7
Update graph view for intrastat.product, to split between import and …
Jul 3, 2014
75ca395
Inherit the new _prepare method that has been introduced in v8.0 for …
Jul 5, 2014
dd48aa4
When the obligation level for import is none, the type of the DEB is …
Oct 30, 2014
6274303
Add module intrastat_product. Rename report.intrastat.product to l10n…
Nov 28, 2014
9a67dfb
Rename field country_id to origin_country_id (TODO : write mig script…
Dec 1, 2014
cbc44ec
Take into accout the remarks of Guewen
Dec 12, 2014
16c11d7
Move intrastat_code and uom_id of report.intrastat.code from l10n_fr_…
Dec 13, 2014
52b2245
intrastat_base + l10n_fr_intrastat_service : port to new API
Dec 26, 2014
e48edc6
Continue the move to the new API/flake8
Dec 29, 2014
e0bb07d
Port intrastat.type to the new API
Dec 31, 2014
1cc19d8
Make dutch ICP report workable on odoo 8.0 [FIX] Some small changes i…
NL66278 Feb 4, 2015
8b7f69d
Continue the port to the new API Access for intrastat report to accou…
Feb 7, 2015
fad3ce9
Continue port to new API + PEP8. First working version.
Feb 9, 2015
2f103ca
FIX validation of department
Feb 10, 2015
fd83ca8
Fix a crash in Import DEB Update strings
May 10, 2015
f463a90
Update translation and adapt a few strings
May 11, 2015
990e8ac
PEP8 compliant Port a line of code that was commented with a TODO
May 11, 2015
ae4b594
Remove comment
May 11, 2015
41f1bbf
Update FR intrastat module for intrastat v3 !
alexis-via Nov 13, 2015
7257781
Update views following changes in intrastat_product
alexis-via Nov 17, 2015
02efba5
FIX XML export for introductions
alexis-via Dec 9, 2015
9628e64
Take into accout negative lines in total fiscal amount (régime = 25)
alexis-via Dec 12, 2015
f99517e
Add migration script for DES
alexis-via Dec 15, 2015
6cf2627
FIX crash on generate computation lines on arrivals
alexis-via Jan 8, 2016
fdddb54
Add warning when country of origin is missing on arrivals/extended
alexis-via Jan 8, 2016
f103097
Adapt to latest changes in module intrastat_product
alexis-via Jan 10, 2016
9609104
Adapt to latest changes in intrastat_product
alexis-via Apr 10, 2016
5168020
Remove unused files
alexis-via Apr 28, 2016
e933b5a
Fix bug in a constraint in intrastat_transaction.py
alexis-via Jun 13, 2016
183f6bf
Remove dead files stock_view.xml and invoice_view.xml
alexis-via Jan 17, 2017
08d7e2e
Pylint fixes
alexis-via Jan 17, 2017
96b8ca7
Port l10n_fr_intrastat_service to v10
alexis-via Jan 18, 2017
2bd1121
Port DEB to v10
alexis-via Mar 8, 2017
e1f7c55
Update README for DEB and DES
alexis-via Mar 8, 2017
5a24304
Put DEB menu before DES menu
alexis-via Mar 8, 2017
ea5be93
FIX XML file generation for DEB
alexis-via Mar 8, 2017
806582e
Add post_install script for easier configuration
alexis-via Mar 8, 2017
4bf4f48
Add auto-configuration of taxes in post_install script
alexis-via Mar 9, 2017
277a90e
Update README for DES
alexis-via Apr 25, 2017
e47d1cd
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
5089582
OCA Transbot updated translations from Transifex
oca-transbot Dec 2, 2017
dca2dbb
Type of invoice in search of DEB lines
alexis-via May 14, 2018
591d0ab
Pylint fixes
alexis-via May 15, 2018
f47e4a1
OCA Transbot updated translations from Transifex
oca-transbot May 19, 2018
b7e9263
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
90cdf9c
Update l10n_fr_intrastat_product.pot
oca-travis Jun 22, 2018
d39e221
Restore fields for report (they were dropped during v8 to v10 migration)
alexis-via Jun 22, 2018
0abf468
Update l10n_fr_intrastat_product.pot
oca-travis Jul 12, 2018
13288d5
Source department on arrival DEB
alexis-via Jul 14, 2018
a27e008
Update l10n_fr_intrastat_product.pot
oca-travis Jul 27, 2018
7556d55
l10n_fr_intrastat_product: Migration to 11.0
rvalyi Oct 21, 2018
22cdc03
Auto-configure account.tax.template
alexis-via Dec 6, 2018
f610b52
FIX email reminder
alexis-via Dec 6, 2018
10058af
DEB reminder
alexis-via Dec 17, 2018
cafa170
l10n_fr_intrastat_product: Update FR translation
alexis-via Dec 29, 2018
45ea40a
Add button "Goto Prodou@ne"
alexis-via Dec 29, 2018
2482e63
Update translation files
oca-transbot Mar 3, 2019
8af62ab
icon.png
OCA-git-bot Apr 3, 2019
05e67b1
[MIG] l10n_fr_intrastat_product to v12
alexis-via May 28, 2019
5deb161
l10n_fr_intrastat_product: inherit XLSX reports to add FR-specific cols
alexis-via May 29, 2019
f8d50df
[UPD] README.rst
OCA-git-bot Jun 3, 2019
2bc349b
[IMP] Remove l10n_fr_siret dependency
Jun 4, 2019
02963a0
[UPD] README.rst
OCA-git-bot Jul 29, 2019
b019d01
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Jul 29, 2019
61523f7
Update translation files
oca-transbot Jul 29, 2019
1879930
ADD fr_partner_vat to xls report
Jun 24, 2019
c92af84
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Feb 1, 2020
1a51ca9
Update translation files
oca-transbot Feb 1, 2020
c475770
FIX non compliant code with oca rules
bealdav Feb 18, 2020
58c4339
[MIG] DEB to v13
alexis-via Jun 8, 2020
de14a6f
DEB: black, isort, ...
alexis-via Jun 8, 2020
2a5a985
[UPD] README.rst
OCA-git-bot Jun 23, 2020
d1b9dbf
Update translation files
oca-transbot Aug 16, 2020
712cfa9
[MIG] l10n_fr_intrastat_product to v14
alexis-via Jan 5, 2021
e49b473
DEB: Add support for Brexit
alexis-via Jan 22, 2021
1012fb6
[UPD] README.rst
OCA-git-bot Mar 30, 2021
1722c13
[REF] Fix pre-commit ignoring modules
legalsylvain Aug 10, 2021
0bced82
[UPD] README.rst
OCA-git-bot Aug 10, 2021
ff81bee
l10n_fr_intrastat_product 14.0.1.0.1
OCA-git-bot Aug 10, 2021
1ba4de3
Restore tests and remove Alpha status
alexis-via Sep 1, 2021
bed4aa1
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Sep 2, 2021
4a8f9c1
[UPD] README.rst
OCA-git-bot Sep 2, 2021
7c4e4bc
l10n_fr_intrastat_product 14.0.1.0.2
OCA-git-bot Sep 2, 2021
edc29ce
Update translation files
oca-transbot Sep 2, 2021
7067a11
Fix travis for SIRET validation
alexis-via Oct 18, 2021
47005d3
l10n_fr_intrastat_product 14.0.1.1.0
OCA-git-bot Oct 24, 2021
8d54452
[FIX] Crash in DEB XML generation
alexis-via Dec 11, 2021
1163e3b
l10n_fr_intrastat_product 14.0.1.2.0
OCA-git-bot Dec 12, 2021
d4c0629
DEB: adapt for January 1st 2022 reform
alexis-via Dec 12, 2021
0e0d62f
intrastat: adapt to changes in OCA/intrastat-extrastat
alexis-via Dec 15, 2021
2ed961a
[UPD] Update l10n_fr_intrastat_product.pot
oca-travis Jan 11, 2022
f710405
l10n_fr_intrastat_product 14.0.2.0.0
OCA-git-bot Jan 11, 2022
735b284
Update translation files
oca-transbot Jan 11, 2022
54b822f
Translated using Weblate (Italian)
francesco-ooops May 18, 2022
b65d552
[UPD] Update l10n_fr_intrastat_product.pot
Jun 28, 2022
44089fb
Update translation files
oca-transbot Jun 28, 2022
836bcbc
l10n_fr_intrastat_product: add mig script type -> declaration_type
alexis-via Jul 11, 2022
1849bee
l10n_fr_intrastat_* : update, improve and simplify
alexis-via Nov 4, 2022
d74d8d8
emebi: adapt to new warn msg code
alexis-via Jan 24, 2023
89c26c1
emebi: Adapt post-install script
alexis-via Jan 24, 2023
c9977b5
[MIG] l10n_fr_intrastat_product to v16
alexis-via Feb 8, 2023
2a481ca
emebi: add the new 'regime' field in XLSX export
alexis-via Feb 9, 2023
f7dc05d
[FIX] l10n_fr_intrastat_product: crash caused by rename of field depa…
alexis-via May 2, 2023
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
Prev Previous commit
Next Next commit
Fix bug in a constraint in intrastat_transaction.py
Small code clean-up
  • Loading branch information
alexis-via committed Jan 24, 2023
commit e933b5a189eaa9c937bf92ed075c5290255f98ad
2 changes: 1 addition & 1 deletion l10n_fr_intrastat_product/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from . import intrastat_type
from . import intrastat_transaction
from . import partner
from . import product
from . import stock
4 changes: 2 additions & 2 deletions l10n_fr_intrastat_product/__openerp__.py
Original file line number Diff line number Diff line change
@@ -37,9 +37,9 @@
'data': [
'security/intrastat_product_security.xml',
'security/ir.model.access.csv',
'intrastat_type_data.xml',
'intrastat_product_view.xml',
'intrastat_type_view.xml',
'intrastat_transaction_data.xml',
'intrastat_transaction_view.xml',
'intrastat_product_reminder.xml',
'company_view.xml',
'partner_view.xml',
Original file line number Diff line number Diff line change
@@ -33,8 +33,8 @@ class IntrastatTransaction(models.Model):

fr_object_type = fields.Selection([
('out_invoice', 'Customer Invoice'),
('in_invoice', 'Supplier Invoice'),
('out_refund', 'Customer Refund'),
('in_invoice', 'Supplier Invoice'),
('none', 'None'),
], string='Possible on', select=True, required=True)
# procedure_code = fields.Selection([ => code
@@ -67,14 +67,17 @@ class IntrastatTransaction(models.Model):
help="True for all procedure codes except 11, 19 and 29. "
"When False, the VAT number should not be filled in the "
"Intrastat product line.")
fr_intrastat_product_type = fields.Char(
# TODO : see with Luc if we can move it to intrastat_product
string='Intrastat product type',
# TODO : see with Luc if we can move it to intrastat_product
fr_intrastat_product_type = fields.Selection([
('arrivals', 'Arrivals'),
('dispatches', 'Dispatches'),
], string='Intrastat product type',
help="Decides on which kind of Intrastat product report "
"('Import' or 'Export') this Intrastat type can be selected.")

# replace the native SQL constraint of the intrastat_product module
_sql_constraints = [(
'code_invoice_type_uniq',
'intrastat_transaction_code_unique',
'unique(code, fr_transaction_code, company_id)',
'An Intrastat Transaction already exists for this company with the '
'same code and the same procedure code.'
@@ -83,23 +86,15 @@ class IntrastatTransaction(models.Model):
@api.one
@api.constrains('code', 'fr_transaction_code')
def _code_check(self):
if self.company_id.country_id and self.company_id.country_id == 'FR':
if self.fr_object_type == 'out' and self.fr_procedure_code != '29':
raise ValidationError(
_("Procedure code must be '29' for an Outgoing products."))
elif (
self.fr_object_type == 'in' and
self.fr_procedure_code != '19'):
raise ValidationError(
_("Procedure code must be '19' for an Incoming products."))
if (
self.company_id.country_id and
self.company_id.country_id == self.env.ref('base.fr')):
if (
self.fr_procedure_code not in fiscal_only_tuple and
self.code not in fiscal_only_tuple and
not self.fr_transaction_code):
raise ValidationError(
_('You must enter a value for the transaction code.'))
if (
self.fr_procedure_code in fiscal_only_tuple and
self.fr_transaction_code):
if self.code in fiscal_only_tuple and self.fr_transaction_code:
raise ValidationError(_(
"You should not set a transaction code when the "
"Code (i.e. Procedure Code) is '25', '26' or '31'."))
Original file line number Diff line number Diff line change
@@ -9,7 +9,6 @@
<openerp>
<data>

<!-- Intrastat Type - Tree view -->
<record id="intrastat_transaction_tree" model="ir.ui.view">
<field name="name">fr.intrastat.transaction.tree</field>
<field name="model">intrastat.transaction</field>
@@ -26,7 +25,6 @@
</field>
</record>

<!-- Intrastat Type - Form view -->
<record id="intrastat_transaction_form" model="ir.ui.view">
<field name="name">fr.intrastat.transaction.form</field>
<field name="model">intrastat.transaction</field>