How To Register Payment Using Python Xml-rpc In Odoo 12
First I created the function: def invoiceRegisterPayment(self,register_payment_row): confirm_result = self.ODOO_OBJECT.execute_kw( self.DATA, self.UID,
Solution 1:
Please try the following data structure and pass to create method account.payment model.
{ invoice_ids: [ [ 4, "Invoice Id", 'None' ] ],
default_invoice_ids: [ [ 4, "Invoice Id", 'None' ] ],
amount: 'Amount',
payment_date: '2019-05-21 02:55:52',
payment_type: 'inbound',
has_invoices: true,
currency_id: 1,
journal_id: 6,
payment_method_id: 1,
partner_id: 226,
partner_type: 'customer',
communication: 'INV/2019/0141/44',
name: 'INV/2019/0141/44' }
Post a Comment for "How To Register Payment Using Python Xml-rpc In Odoo 12"