address_invoice_id: base.res_partner_address_zen
company_id: base.main_company
currency_id: base.EUR
- date_invoice: '2010-05-26'
+ date_invoice: !eval time.strftime('%Y-%m-%d')
invoice_line:
- account_id: account.a_sale
name: '[PC3] Medium PC'
-
!python {model: account.invoice}: |
acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
- assert acc_id.move_id, "Move not created"
+ assert (not acc_id.move_id), "Move falsely created at pro-forma"
-
I create invoice by clicking on Create button
-
-
!python {model: account.invoice}: |
acc_id=self.browse(cr, uid, ref("account_invoice_customer0"))
- assert acc_id.move_id, "Move created"
+ assert acc_id.move_id, "Move not created for open invoice"
+-
+ I refund the invoice Using Refund Button
+-
+ !record {model: account.invoice.refund, id: account_invoice_refund_0}:
+ description: Refund To China Export
+ period: account.period_5
+ filter_refund: refund
+-
+ I clicked on refund button
+-
+ !python {model: account.invoice.refund}: |
+ self.invoice_refund(cr, uid, [ref("account_invoice_refund_0")], {"lang": 'en_US', "tz": False, "active_model": "account.invoice", "active_ids": [ref("account.account_invoice_customer0")], "type": "out_invoice", "active_id": ref("account.account_invoice_customer0"), })
+-
+ I checked that a new entry with state "Draft" created in account move line
+
+