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

Use Google API to parse purchase invoices #11

Open
tillmo opened this issue Mar 11, 2023 · 0 comments
Open

Use Google API to parse purchase invoices #11

tillmo opened this issue Mar 11, 2023 · 0 comments

Comments

@tillmo
Copy link
Owner

tillmo commented Mar 11, 2023

In prerechnung.py, the method process_inv should send the pdf to Google Document AI Invoice, and parse the resulting json into a Python dictionary into pr['json'].
The credentials for Google should be stored in sg.UserSettings(), see menu.py. Preferably, the credentials stored there should suffice for authentication, such that no extra manual entering of a password or such is necessary. Lines 166-202 provide code fpr entering ERPNext API credentials. There should be similar code for entering Google API credentials.

Possibly, this could be used for storing credentials: https://frappeframework.com/docs/v14/user/en/using_frappe_as_oauth_service https://frappeframework.com/docs/v13/user/en/guides/integration/how_to_set_up_oauth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant