diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-05-31 15:29:08 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-05-31 15:29:08 +0700 |
| commit | 1df0e8445f89f2be188a6a2dae54d044288a756c (patch) | |
| tree | 66a533ae37b35e57b1409840124782a683b03dd3 /fixco_api/models | |
| parent | a91a0009ffd03e99b91c4cb441a867552b042d14 (diff) | |
refactor some information after success
Diffstat (limited to 'fixco_api/models')
| -rw-r--r-- | fixco_api/models/sale.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fixco_api/models/sale.py b/fixco_api/models/sale.py index b7f404c..198689a 100644 --- a/fixco_api/models/sale.py +++ b/fixco_api/models/sale.py @@ -37,8 +37,9 @@ class SaleOrder(models.Model): for invoice in invoices: invoice.action_post() data.append({ - 'invoice_id': invoice.id, - 'invoice': invoice.name, + 'id': invoice.id, + 'name': invoice.name, + 'ref': invoice.ref, 'state': invoice.state }) return data |
