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

[18.0][MIG] l10n_fr_intrastat_service #603

Open
wants to merge 151 commits into
base: 18.0
Choose a base branch
from

Conversation

alexis-via
Copy link
Contributor

In addition to migration, I made several improvements:

  • Add ACL for account viewer group
  • No more currency conversion in the code: use price_subtotal AND balance
  • Improve checks on company for which DES is generated: VAT number, EUR currency, etc...
  • Add prepare method for attachment generation, to allow easy customization of filename.
  • Improve some strings

Requires PR OCA/reporting-engine#958

Alexis de Lattre added 30 commits January 3, 2025 22:40
… Check that company currency is EUR when generating service lines. Do the rounding work when generating the service lines, not when generating the XML. Remove unused code.
…rst factorisation of common functionnal code between the product and service module (intrastat_common.py) - to be continued. Some code clean-up in the service module.
…nsport type" and partial support for the department. More factorisation between product & service module. Add date_done field. More checks.
… (fields that are not in the official declaration or never subject to change) Add copy of department from warehouse to invoice. Import DEB don't have the partner_vat field Department can be 99 for Monaco. Copy tranport and department from report_intrastat_product in XML file First attempt at adapting the display of fields depending on the type of declaration.
…tat_product/service object is stored in database, we don't need the legal_intrastat state on invoices any more, because we will be able to create entry lines for DEB for a repair of equipment under warranty without using a legal_intrastat. Report_intrastat_type is now only required for DEB -> object moved to module l10n_fr_intrastat_product. For DEB, the button "regenerate lines" only regenerate DEB lines related to invoices.

Renamed intrastat base module, because it doesn't have France-specific parameters any more.

Add demo data.
…rocedure_code, for example some info don't need to be declared for some procedure codes. Ability to enter DEB lines manually Stat value doesn't exist any more Tree vue of DEB lines is now identical to Cerfa
…port_intrastat_type table, restarting OpenERP and re-creating intrastat types. Moved intrastat departments from stock.warehouse to stock.location. Dropped SQL queries ; replaced by traditionnal python code logic. No more need to have one rate per day for invoices with foreign currency. Add total fiscal value for DEB More code factorization. Prepare translation work.
… Moved configuration about taxes from company form to tax form Some modifications to ease v5 -> v6 migration : - object report_intrastat_code now belong to group account manager - button functions now return True Tried to implement the following feature : open attachement form when the XML file as been generated : works on v6, but make client crash en v5 -> code has been commented DEB lines with procedure code = 25 are now deducted from the fiscal total. Round invoice total.
… l10n_fr_intrastat_product to intrastat_base, because it should also be used in the module l10n_fr_intrastat_service. Take this field into account in the generation of DEB lines (module l10n_fr_intrastat_service).
…t service Comment prints in the code Standardize the name of ids Add "done" button in tree view Display company_id fields in the interface if the user belongs to "group_multi_company"
… is missing, so that, when we sell to a physical person in the EU, we don't get the raise. Thanks to Anevia for this interesting bug report ! We need to do the same thing in l10n_fr_intrastat_product.
…as is_accessory_cost services but no regular product -> DES If the invoice has is_accessory_cost services and regular product -> added to the cost of products in DEB

Now allows "pricelist for statistical value" which is not in EUR (the currency conversion will be made from the pricelist currency to EUR)

Usability improvements :
- Order for DEB and DES tree view : "the more recent at the top"
- distinction between "Information to declare" and "Additionnal information" in intrastat lines
…ncluding your own country - When generating lines for Intrastat Product/Service, all invoices for which country == Company's country are excluded
…emove method=True Add new tab "Intrastat" on invoice views, with all intrastat-related fields Code cleanup
… value = 0 - some accessory costs => we want to have the accessory costs in DEB, not in DES (before this fix, the accessory costs were in both)
oca-ci and others added 30 commits January 3, 2025 22:40
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/
Currently translated at 98.8% (86 of 87 strings)

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/
Currently translated at 97.7% (85 of 87 strings)

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/es/
Currently translated at 100.0% (87 of 87 strings)

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_service/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-17.0/l10n-france-17.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_intrastat_service/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-17.0/l10n-france-17.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_intrastat_service/
Currently translated at 100.0% (87 of 87 strings)

Translation: l10n-france-17.0/l10n-france-17.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_intrastat_service/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-france-17.0/l10n-france-17.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-17-0/l10n-france-17-0-l10n_fr_intrastat_service/
Add ACL for account viewer group
No more currency conversion in the code: use price_subtotal AND balance
Improve checks on company for which DES is generated: VAT number, EUR currency, etc...
Add prepare method for attachment generation, to allow easy customization of filename.
Improve some strings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.