OCA / l10n-france

France Localization for Odoo
GNU Affero General Public License v3.0
42 stars 114 forks source link

[14.0][BACKPORT] vat_return: warn if draft moves are present (instead of raising an error) #533

Closed alexis-via closed 5 months ago

alexis-via commented 5 months ago

This is a backport of v16 PR https://github.com/OCA/l10n-france/pull/523 (merged)

When draft moves where present before end_date of the VAT return, we used to raise an error. With this commit, we continue to raise an error if option 'fr_vat_update_lock_dates' is enabled on the accounting config page or if one of the draft moves is the move of the previous VAT return. Otherwise, we start a wizard that shows the draft moves and gives the choice to the user between processing the draft moves or ignoring them.

alexis-via commented 5 months ago

/ocabot merge minor

OCA-git-bot commented 5 months ago

On my way to merge this fine PR! Prepared branch 14.0-ocabot-merge-pr-533-by-alexis-via-bump-minor, awaiting test results.

OCA-git-bot commented 5 months ago

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