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

[14.0][MIG] account_invoice_import #387

Merged
merged 113 commits into from
Jun 2, 2021

Conversation

alexis-via
Copy link
Contributor

No description provided.

alexis-via and others added 30 commits March 5, 2021 15:07
FIX raise error when we don't identify a partner

Update README
Rename test/pdf/ to test/invoices/ to host XML invoices too
…invoice_zugferd (see README.rst for more info)

Move the ZUGFeRD/CII-specific code of account_invoice_import to account_invoice_import_zugferd
Disable test of invoice2data, because this lib is difficult to install
Add support for UBL refunds

If you have an UBL refund that I could use to test, please contact me !
Convert YAML test to unittest
…edicated module account_invoice_import_invoice2data

Update README.rst and headers to latest OCA conventions.
Better key names in the parsed_inv dict
parsed_inv doesn't need to be JSON serializable anymore (small drawback: the invoice is parsed a second time on the second step... but the second step is rarely used)
Move code from account_invoice_import_invoice2data to account_invoice_import
Update REAME and some interface strings about UBL being an ISO standard
Small code changes
…voice dict, cleaner organisation)

Code refactoring: move code in base_business_document_import, factorise code for tax matching (it was duplicated in UBL and ZUGFeRD)
Now support PDF with embedded UBL XML file
Enable unittests on account_invoice_import_ubl
More absolute xpath in account_invoice_import_ubl instead of relative xpath

WARNING: these are big changes, I may have broken a few details
Adapt module account_invoice_import_ubl to use the new base_ubl module
Small fixes
Add unitests in base_business_document_import
Small code enhancements/simplifications
Code cleanup/minor changes
@alexis-via
Copy link
Contributor Author

#242

Copy link
Contributor

@rconjour rconjour left a comment

Choose a reason for hiding this comment

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

LGTM - but maybe link in the description to the example of the mass import bash script.

# nothing when there is no attachment or when the attachment
# fails to import or when the invoice is already created
# So, for the moment, we leave it like that...
# If you have a better idea, please suggest!
Copy link
Member

Choose a reason for hiding this comment

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

I've implemented the obvious solution here: akretion#4, letting this model inherit from mail.thread, and it works. Maybe you have considered it before, and there may be good reasons not to use it that I've missed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks !

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for taking it! I see now that I did not remove this comment in the proposed PR. Can you squash that in somewhere?

Copy link
Member

Choose a reason for hiding this comment

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

And a rebase while you are at it, to squash out the merge commit from my intermediate PR

Copy link

@PieterPaulussen PieterPaulussen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@fshah-initos fshah-initos left a comment

Choose a reason for hiding this comment

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

LGTM

@alexis-via
Copy link
Contributor Author

@rconjour I added a note about it via USAGE.rst

@alexis-via alexis-via force-pushed the 14-mig-account_invoice_import branch from 8b01db7 to a1de6ab Compare May 31, 2021 21:04
@mylbco
Copy link

mylbco commented Jun 1, 2021

I see the PR is approved, can it be merged @StefanRijnhart ?

@StefanRijnhart
Copy link
Member

@mylbco a merge commit still needs to be squashed out.

@alexis-via alexis-via force-pushed the 14-mig-account_invoice_import branch from a1de6ab to 3b62bd2 Compare June 1, 2021 14:52
@StefanRijnhart
Copy link
Member

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-387-by-StefanRijnhart-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 4e506a5 into OCA:14.0 Jun 2, 2021
@OCA-git-bot
Copy link
Contributor

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

@StefanRijnhart StefanRijnhart mentioned this pull request Jun 2, 2021
36 tasks
dsolanki-initos pushed a commit to initOS/edi that referenced this pull request Jun 10, 2021
Signed-off-by StefanRijnhart
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.