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

[17.0][MIG] l10n_fr_intrastat_product #514

Merged
merged 211 commits into from
Sep 28, 2024

Conversation

alexis-via
Copy link
Contributor

Requires intrastat PR OCA/intrastat-extrastat#261

Copy link

@njeudy njeudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test with real data from one of my V16 production database .. work as it should.

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Jul 21, 2024
@github-actions github-actions bot closed this Aug 25, 2024
@alexis-via alexis-via reopened this Sep 28, 2024
@alexis-via alexis-via added no stale Use this label to prevent the automated stale action from closing this PR/Issue. and removed stale PR/Issue without recent activity, it'll be soon closed automatically. labels Sep 28, 2024
Alexis de Lattre added 21 commits September 28, 2024 12:01
…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.
…string to many2one.

WARNING : this is my last commit before I break everything to re-organise the way intrastat_types are handled and I drop the "Intrastat type" field on invoices.
…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
…view. Beta implementation of "Re-generate lines from picking". [FIX] Check on weight_net instead of weight.
…torize lines taken from picking renamed field invoice_uom_id to source_uom_id, because this field is now also used for lines taken from picking Removed field date_invoice Removed the label "beta" on the button "generate lines from picking".
… in the function compute_lines_from_picking - add a field.function "intrastat department" on picking - updated the code accordingly : we can now have the department of the picking when generating lines from picking.
…/purchase orders that have a shipping policy != 'invoice from the packing' So it should now only select incoming/outgoing products used for RMAs
…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.
…pecific tax in it. For example, this is required for B2C companies, that mustn't put in DEB Export the invoices to EU customers that contain French VAT.
OCA-git-bot and others added 20 commits September 28, 2024 12:01
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

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

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

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_product/fr/
Currently translated at 11.1% (7 of 63 strings)

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_product/it/
Currently translated at 98.4% (62 of 63 strings)

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

Translation: l10n-france-16.0/l10n-france-16.0-l10n_fr_intrastat_product
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_product/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_product
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-16-0/l10n-france-16-0-l10n_fr_intrastat_product/
Replace lxml/etree by lxml/objectify to generate the XML of EMEBI.
…ines

Restore blocking error message when fr_intrastat_accreditation is not set on company
Improve error messages in XML generation
@alexis-via alexis-via force-pushed the 17-mig-l10n_fr_intrastat_product branch from 0341d86 to ef81938 Compare September 28, 2024 10:01
@alexis-via alexis-via force-pushed the 17-mig-l10n_fr_intrastat_product branch from ef81938 to ea8337d Compare September 28, 2024 11:43
@alexis-via
Copy link
Contributor Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-514-by-alexis-via-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit e43b736 into OCA:17.0 Sep 28, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at f12f7b0. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved merged 🎉 no stale Use this label to prevent the automated stale action from closing this PR/Issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.