Add support for chart of account evolution

* Add replacement account
* Add period on account and tax code

issue7417
review45671002
This commit is contained in:
Cédric Krier committed 2018-08-31 14:58:05 +02:00
1 parent 59526e55a8
commit 62155ba63d
1 file changed
+13 -12
+13 -12
View File
@@ -117,18 +117,19 @@ class Move(metaclass=PoolMeta):
type_ = self._get_account_stock_move_type()
if not type_:
return
if type_ == 'supplier_customer':
account_move_lines = self._get_account_stock_move_lines(
'in_supplier')
account_move_lines.extend(self._get_account_stock_move_lines(
'out_customer'))
elif type_ == 'customer_supplier':
account_move_lines = self._get_account_stock_move_lines(
'in_customer')
account_move_lines.extend(self._get_account_stock_move_lines(
'out_supplier'))
else:
account_move_lines = self._get_account_stock_move_lines(type_)
with Transaction().set_context(date=date):
if type_ == 'supplier_customer':
account_move_lines = self._get_account_stock_move_lines(
'in_supplier')
account_move_lines.extend(self._get_account_stock_move_lines(
'out_customer'))
elif type_ == 'customer_supplier':
account_move_lines = self._get_account_stock_move_lines(
'in_customer')
account_move_lines.extend(self._get_account_stock_move_lines(
'out_supplier'))
else:
account_move_lines = self._get_account_stock_move_lines(type_)
amount = Decimal('0.0')
for line in account_move_lines: