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

I created a simple custom module for expense adding. I want to add the amount to accounting module. How can i add expense amount as a journal entry? I'm new in openerp python. I dont know the code for it. please help me anyone.

Imagine profil
Abandonează
Cel mai bun răspuns

You have to deal with two objects:

  1. account.move
  2. account.move.line

You can have a look at action_move_line_create method under <openERP Directory>/openerp/addons/account_voucher/account_voucher.py

Good Luck..%

Imagine profil
Abandonează
Autor

Hi Anas,thanks for your response. I have a starting trouble. Please help. from where i start with the code.