#3898 (After creating an invoice, Lino forgets the journal)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
When I do (+) in /api/sales/InvoicesByJournal/112?mk=1&mt=21, the newly created invoice is shown under /api/sales/Invoices/115 (instead of /api/sales/InvoicesByJournal/113?mk=1&mt=21 as it should). The next (+) then fails (after submitting) with error message "voucher has no journal". Actually the (+) should either be disabled, or the insert window should have a journal field.
Kinder
Kommentare
- 5 Jahre, 9 Monate ago von Luc Saffre about #3898 (After creating an invoice, Lino forgets the journal) : The bug was in the custom get_detail_action for ledger.Voucher. We should write a unit test to cover this.
- 5 Jahre, 9 Monate ago von Luc Saffre about #3898 (After creating an invoice, Lino forgets the journal) : The issue is not specific to react. Seems that this is an old bug. And it is disturbing when entering a series of invoices.
- 5 Jahre, 9 Monate ago von Luc Saffre about #3898 (After creating an invoice, Lino forgets the journal) : But the path of the POST is correct, and mk and mt are sent.
- 5 Jahre, 9 Monate ago von Luc Saffre about #3898 (After creating an invoice, Lino forgets the journal) : The POST returns indeed an eval_js saying "window.App.runAction({ "actorId": "sales.Invoices", "an": "detail", "rp": null, "status": { "record_id": 269 } })". When sending the POST, the console says a warning "_this.state.site_data is null".