تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
3990 أدوات العرض

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
سبتمبر 21
3556
1
يونيو 19
4194
1
أكتوبر 15
4825
1
يوليو 25
610
2
يوليو 25
741