-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Conversation
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
…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
…eak the main view of intrastat_product.
…ic readonly & required)
…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.
…t was an SQL view)
…/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.
…ith the type of field of transaction_code on intrastat_type Add field "Destination/Origin country of the goods" on invoice Write the value of this field when creating the invoice from the packing Fix a bug in the computation of the department on picking, and now make it a stored field. Now able to copy origin/dest country and department on invoice when the invoice is created from SO/PO (before, it was only supported when creating the invoice from the packing).
… 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 lines. Auto-fill the intrastat UoM field when creating an intrastat product line manually.
… "return None" changed to "return True"
2 variables were using the same name: the node and the content of the node
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-france-14.0/l10n-france-14.0-l10n_fr_intrastat_product Translate-URL: https://translation.odoo-community.org/projects/l10n-france-14-0/l10n-france-14-0-l10n_fr_intrastat_product/
Currently translated at 6.0% (11 of 182 strings) Translation: l10n-france-14.0/l10n-france-14.0-l10n_fr_intrastat_product Translate-URL: https://translation.odoo-community.org/projects/l10n-france-14-0/l10n-france-14-0-l10n_fr_intrastat_product/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate. Translation: l10n-france-14.0/l10n-france-14.0-l10n_fr_intrastat_product Translate-URL: https://translation.odoo-community.org/projects/l10n-france-14-0/l10n-france-14-0-l10n_fr_intrastat_product/
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
auto-reformatting
Set company_id to False on intrastat.transaction
This migration started from the v14 branch akretion/14-emebi-simplify It includes the changes discussed in OCA/intrastat-extrastat#194 in particular the fact that intrastat transaction are now provided by the generic module intrastat_product. This change involve one big change: BEFORE: code regime = transaction_id.code ; nature de transaction = transaction_id.fr_transaction_code AFTER: code regime = fr_regime_id.code ; nature de transaction = transaction_id.code Adapt to changes in intrastat_base with the 'intrastat' field of fiscal position converted from boolean to selection with 3 possible values b2b/b2c/no
alexis-via
changed the title
[16.0][MIG] EMEBI (ex-DEB)
[16.0][MIG] EMEBI (ex-DEB) l10n_fr_intrastat_product
May 2, 2023
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at 527bacd. Thanks a lot for contributing to OCA. ❤️ |
/ocabot migration l10n_fr_intrastat_product |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Requires OCA/intrastat-extrastat#214
This migration started from the v14 PR #383
It includes the changes discussed in OCA/intrastat-extrastat#194 in particular the fact that intrastat transaction are now provided by the generic module intrastat_product.
Code regime is now provided by a new dedicated object intrastat.fr.regime.
This change involve one big change:
BEFORE: code regime = transaction_id.code ; nature de transaction = transaction_id.fr_transaction_code
AFTER: code regime = fr_regime_id.code ; nature de transaction = transaction_id.code
Adapt to changes in intrastat_base with the 'intrastat' field of fiscal position converted from boolean to selection with 3 possible values b2b/b2c/no.