From 7602b2df16df45abe784f02347c96b397126e2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 29 Sep 2012 15:34:39 +0200 Subject: [PATCH] Rationalize accounting moves and lines issue2056 review503006 --- invoice.py | 2 +- stock.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/invoice.py b/invoice.py index 6cc2c4cb94..9fe6f1691c 100644 --- a/invoice.py +++ b/invoice.py @@ -21,7 +21,7 @@ class InvoiceLine: result = [] move_line = {} - move_line['name'] = self.description + move_line['description'] = self.description move_line['amount_second_currency'] = Decimal('0.0') move_line['second_currency'] = None diff --git a/stock.py b/stock.py index 1d43f54e0d..f9fbe370a9 100644 --- a/stock.py +++ b/stock.py @@ -57,7 +57,6 @@ class Move: if amount < Decimal(0): debit, credit = -credit, -debit move_line = AccountMoveLine( - name=self.rec_name, debit=debit, credit=credit, account=self.product.account_expense_used,