mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[IMP] account_move_line_purchase_info: black, isort
This commit is contained in:
committed by
Joan Mateu Jordi
parent
2e0dcc3cfd
commit
49d39ee2ba
@@ -9,10 +9,12 @@ class StockMove(models.Model):
|
||||
_inherit = "stock.move"
|
||||
|
||||
@api.model
|
||||
def _prepare_account_move_line(self, qty, cost,
|
||||
credit_account_id, debit_account_id):
|
||||
def _prepare_account_move_line(
|
||||
self, qty, cost, credit_account_id, debit_account_id
|
||||
):
|
||||
res = super(StockMove, self)._prepare_account_move_line(
|
||||
qty, cost, credit_account_id, debit_account_id)
|
||||
qty, cost, credit_account_id, debit_account_id
|
||||
)
|
||||
for line in res:
|
||||
line[2]['purchase_line_id'] = self.purchase_line_id.id
|
||||
line[2]["purchase_line_id"] = self.purchase_line_id.id
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user