mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
-
|
|
I create a new invoice with transaction ID
|
|
-
|
|
!record {model: account.invoice, id: invoice_with_transaction_id}:
|
|
account_id: account.a_recv
|
|
company_id: base.main_company
|
|
currency_id: base.EUR
|
|
partner_id: base.res_partner_2
|
|
transaction_id: XXX77Z
|
|
invoice_line:
|
|
- account_id: account.a_sale
|
|
name: '[PCSC234] PC Assemble SC234'
|
|
price_unit: 450.0
|
|
quantity: 1.0
|
|
product_id: product.product_product_3
|
|
uos_id: product.product_uom_unit
|
|
journal_id: account.bank_journal
|
|
reference_type: none
|
|
-
|
|
I called the "Confirm Draft Invoices" wizard
|
|
-
|
|
!record {model: account.invoice.confirm, id: invoice_transaction_id_confirm}:
|
|
{}
|
|
-
|
|
I clicked on Confirm Invoices Button
|
|
-
|
|
!python {model: account.invoice.confirm}: |
|
|
self.invoice_confirm(cr, uid, [ref("invoice_transaction_id_confirm")], {"lang": 'en_US',
|
|
"tz": False, "active_model": "account.invoice", "active_ids": [ref("invoice_with_transaction_id")],
|
|
"type": "out_invoice", "active_id": ref("invoice_with_transaction_id"), })
|