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

Hi,

I'm trying to change the payment status of an Invoice with the PHP API.

I'd like to change it from Open to Paid, but it seems that it's not working as expected. Instead of this it appears:

  • Status: Paid  Open

I'm using this code in order to do it:

$salida = $models->execute_kw($db, $uid, $password, 'account.invoice', 'write',
array(array($item['id']), array('state'=>"paid")));
Am I doing something wrong?

Best regards
الصورة الرمزية
إهمال

To make invoice in paid state you need to call the method of button "register payment" and pass required values .

الكاتب أفضل إجابة

Do you have any example?
Regards

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مايو 19
4121
1
يونيو 17
3552
1
فبراير 25
1512
0
نوفمبر 24
1357
1
يونيو 24
1648