I have question about Vendor Bill.
When we create vendor bill, there is a journal items tab that the data will be generated when we choose Receipts.
I have requirement that user want to reformat the journal item, let say to add 1 account item of debit and credit.
Im looking the sourcode, and the journal items generated from this line :
moves_lines = self.env['stock.move'].browse([rec.id for rec in picking_ids.move_ids_without_package])
new_lines = self.env['account.move.line']
for line in moves_lines:
new_line = new_lines.new(line._prepare_picking_account_move_line(self))
# if i comment the above line, the journal items will not generate
new_line.account_id = new_line._get_computed_account()
new_line.stock_move_id = line.id
new_line._onchange_price_subtotal()
new_lines += new_line
My questions are :
How can i modify the journal items account format ? If i comment the new_lines.new() it will not generate the journal items. But i don't know how to modify the journal items generation. For information the code is created by previous programmer but currently its not possible to contact them.
Thank you before