From e012b50c293a91d7d16c8d18cf7b9f5654ba5e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 2 Jan 2015 15:47:17 +0100 Subject: [PATCH] Add menu entry for lines with moves and lines relate and also add moves relate on statement. issue4084 review13421002 --- statement.xml | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/statement.xml b/statement.xml index 8c3ae18870..f8609b83b0 100644 --- a/statement.xml +++ b/statement.xml @@ -109,6 +109,23 @@ this repository contains the full copyright notices and license terms. --> statement_line_tree + + Statement Lines + account.statement.line + + + + + + + + + + + + + account.statement.line tree @@ -138,6 +155,15 @@ this repository contains the full copyright notices and license terms. --> + + + + + + [('statement.company', '=', user.company.id if user.company else None)] + + + @@ -248,5 +274,38 @@ this repository contains the full copyright notices and license terms. --> + + Move Lines + account.move.line + [('origin.id', 'in', Eval('active_ids'), 'account.statement.line')] + + + form_relate + account.statement.line,-1 + + + + + Moves + account.move + [('origin.statement.id', 'in', Eval('active_ids'), 'account.statement.line')] + + + form_relate + account.statement,-1 + + + + + Moves + account.move + [('origin.id', 'in', Eval('active_ids'), 'account.statement.line')] + + + form_relate + account.statement.line,-1 + + +