跳至內容
選單
此問題已被標幟
1 回覆
4071 瀏覽次數

Hey everyone! I can't validate the invoice

I found the method somewhere but it doesn't work...

This method twice changes Status: Draft -> PAID :(
I need to change the status to "open". In other words I need to validate invoice.

Help me please and tell me where Where can I get information about those methods?

$res = $model->execute_kw(
$db,
$uid,
$password,
'account.invoice',
'invoice_validate',
[5244]
);
頭像
捨棄
最佳答案

Refer def action_invoice_open in account/models/account_invoice.py

頭像
捨棄
作者

Thanks! But Where can I find this method? How do you know about it?

相關帖文 回覆 瀏覽次數 活動
1
9月 21
3639
1
6月 19
4285
1
10月 15
4908
1
7月 25
835
2
7月 25
983