Invoice Listing with Payment Link #196
Labels
No labels
API
Billing
UI/UX
dependencies
bug
change
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: servala/servala-portal#196
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Stories
As a user, I want to see all my invoices with their state and a payment link
Implementation Notes
Listing
Retrieve all invoices from the Odoo model
account.movewherestate=postedfor the current organization. Invoices to show are referenced in the many2many fieldinvoice_idsin thesale.ordermodel.Fields to display from
account.movemodel:namedatedate_duepayment_stateamount_residualThe currency can be retrieved via the
currency_idfield, which is a tuple:[id, name]e.g.[1, 'USD']Payment Link
Show a payment link when the invoice hasn't been paid yet (
payment_state=not_paid). The payment link is the "share link" from Odoo in the form "https://central.vshn.ch/mail/view?model=account.move&res_id=424242&access_token=TOKEN"The share link can be retrieved this way:
Configuration per Organization Origin
Allow to configure in the organization origin how the invoice listing behaves:
Example: "To see your invoices, please connect to the Exoscale Portal at [link here]"
Invoice Listingto Invoice Listing with Payment Link