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] DES #412

Merged
merged 113 commits into from
Mar 6, 2023
Merged

[16.0][MIG] DES #412

merged 113 commits into from
Mar 6, 2023

Conversation

alexis-via
Copy link
Contributor

Migration from v14 PR #383 to v16.
The migration commit is very small because I made first all the improvements I wanted to make in v14 and I migrated AFTER.

Alexis de Lattre added 30 commits March 6, 2023 12:20
… 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-git-bot and others added 19 commits March 6, 2023 12:20
Unfuck the "Donald Trump" pull request: this is the real/serious work made
by the anti-Donald Trump squad.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: l10n-france-14.0/l10n-france-14.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-14-0/l10n-france-14-0-l10n_fr_intrastat_service/
Currently translated at 10.6% (10 of 94 strings)

Translation: l10n-france-14.0/l10n-france-14.0-l10n_fr_intrastat_service
Translate-URL: https://translation.odoo-community.org/projects/l10n-france-14-0/l10n-france-14-0-l10n_fr_intrastat_service/it/
l10n_fr_intrastat_product:
- adapt to the very big changes I made in intrastat_product
- DEB -> EMEBI
- remove intrastat_fiscal_representative_id on res.partner
- add a default intrastat transaction for B2C
- filter intrastat_transaction_id on invoice form depending on move_type

l10n_fr_intrastat_service:
- auto-generate XML export upon confirmation to harmonize ergonomy with intrastat product
- auto-delete XML upon back2draft
- add confirmation pop-up when going back to draft
- fix bug on total amount and number of lines when removing all lines
- adapt for the fact that EU B2C fiscal positions now have intrastat=True
In intrastat_base, the 'intrastat' field of account.fiscal.position is
now a selection field with 3 possible values: b2b/b2c/no
@alexis-via
Copy link
Contributor Author

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 16.0-ocabot-merge-pr-412-by-alexis-via-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 6813530 into OCA:16.0 Mar 6, 2023
@OCA-git-bot
Copy link
Contributor

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

@legalsylvain
Copy link
Contributor

/ocabot migration l10n_fr_intrastat_service

@OCA-git-bot OCA-git-bot added this to the 16.0 milestone Jun 9, 2023
@OCA-git-bot OCA-git-bot mentioned this pull request Jun 9, 2023
29 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants