From 0fe927befb9f93adc917eb4959ebf792a34c3cfc Mon Sep 17 00:00:00 2001 From: AaronHForgeFlow Date: Fri, 26 Aug 2022 11:32:47 +0200 Subject: [PATCH] [IMP] account_move_line_stock_info: show stock move in list view --- .../models/stock_move.py | 2 +- .../tests/test_account_move_line_stock_move.py | 2 +- .../views/account_move_line_view.xml | 17 ++++++++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/account_move_line_stock_info/models/stock_move.py b/account_move_line_stock_info/models/stock_move.py index 72220a50e..899ebdd03 100644 --- a/account_move_line_stock_info/models/stock_move.py +++ b/account_move_line_stock_info/models/stock_move.py @@ -8,7 +8,7 @@ class StockMove(models.Model): _inherit = "stock.move" account_move_line_ids = fields.One2many( - comodel_name="account.move.line", inverse_name="stock_move_id", copy=False + comodel_name="account.move.line", inverse_name="stock_move_id", copy=False, ) @api.model diff --git a/account_move_line_stock_info/tests/test_account_move_line_stock_move.py b/account_move_line_stock_info/tests/test_account_move_line_stock_move.py index c96b22195..48533a78a 100644 --- a/account_move_line_stock_info/tests/test_account_move_line_stock_move.py +++ b/account_move_line_stock_info/tests/test_account_move_line_stock_move.py @@ -59,7 +59,7 @@ class TestAccountMoveLineStockInfo(TransactionCase): ) def _create_user(self, login, groups, company): - """ Create a user.""" + """Create a user.""" group_ids = [group.id for group in groups] user = self.res_users_model.with_context({"no_reset_password": True}).create( { diff --git a/account_move_line_stock_info/views/account_move_line_view.xml b/account_move_line_stock_info/views/account_move_line_view.xml index 6e9aff197..1c5adf5b5 100644 --- a/account_move_line_stock_info/views/account_move_line_view.xml +++ b/account_move_line_stock_info/views/account_move_line_view.xml @@ -6,8 +6,23 @@ - + + + account.move.line.treee + account.move.line + + + + + + + +