[FIX] stock_account: vendor refunds lines' default account should be the stock_input in anglo saxon mode
This commit is contained in:
@@ -42,9 +42,7 @@ class account_invoice_line(osv.osv):
|
||||
def get_invoice_line_account(self, type, product, fpos, company):
|
||||
if company.anglo_saxon_accounting and type in ('in_invoice', 'in_refund') and product and product.type == 'product':
|
||||
accounts = product.product_tmpl_id.get_product_accounts(fiscal_pos=fpos)
|
||||
if type == 'in_invoice':
|
||||
return accounts['stock_input']
|
||||
return accounts['stock_output']
|
||||
return accounts['stock_input']
|
||||
return super(account_invoice_line, self).get_invoice_line_account(type, product, fpos, company)
|
||||
|
||||
class account_invoice(osv.osv):
|
||||
|
||||
Reference in New Issue
Block a user