Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
9898 Vizualizări

i created a few invoice for test, and now i want to delete it, how ? 

sorry my basic english

y use the online version

Imagine profil
Abandonează
Cel mai bun răspuns

You can do this with a few simple steps withou install any addons.

  1. Active Developer Mode

  2. Create a new Action Server (Settings -> Technical -> Server Actions)
    The new server action assign: 

    • Name -> Clear Journal Entry Name

    • Model -> Journal Entries (account.move)

    • Action To Do: Update the Records

    • Data To Write: Add one line with:

      • Number (account.move)

      • Evaluation Type: Value

      • Record: (is disable)

      • Value: /

  3. Asume that you already cancel the invoices, and journals entries that you want to delete.
    GO to Accounting -> Accounting -> Journals entries (and remove the filters).

  4. Refresh the site (press F5)

  5. Select all the journal Entries you want to delete.

  6. Select from Action select "Clear Journal Entry Name"

  7. Select all the journal Entries you want to delete. again

  8. Select from Action select "Delete"
    -------------------------------- Recomendation -------------------------------------------------

  9. Return to Settings -> Technical -> Server Actions and delete the action whe just created. This must not be accesible at any time, because this action can affect reports and documentations.
    Remember this is an behaivors that is not planned in the good use of Odoo, it must be done with absolutly responsibility of the user.

Imagine profil
Abandonează
Cel mai bun răspuns

You need to cancel the invoice, create an Action Server to put in false the field posted_before, then you can delete the invoice.

Imagine profil
Abandonează