Hello dear beautiful odoo community.
Recently I have been trying to create invoices in odoo13 by code by apparently everytime I run the code I get a message stating that my journal entries arenot balanced.
I have tried to create invoice by executing this line.
self.env[`account.move`].create({
   "partner_id": partner_id,
    "journal_id": journal_id,
    "partner_shipping_id": partner_shipping_id,
    "type": "out_invoice",
    "invoice_line_ids": [(0, 0, {
        "name": name,
        "price_unit":88,
        "product_uom_id":1,
        "quantity": 2,
        "account_id": account_id,
        "tax_ids": [(4, 67)],
        "product_id": product_id})],
})the first invoice is always created, but when i try to execute the same line twice, I get an error stating that my journal items(account.move.line) are unbalanced. so I dont know If am doing something wrong or missing something.
your help so so appreciated.
