Commit bc273084 authored by Jérome Perrin's avatar Jérome Perrin

specify the grand parent rule when selecting invoice transaction rule...

specify the grand parent rule when selecting invoice transaction rule movements for normal (not from trade model) movements, otherwise they will be selected twice if movements from trade model lines are built

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28406 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1bd31125
...@@ -60,6 +60,8 @@ and same rule which is children of Trade Model Rule """\n ...@@ -60,6 +60,8 @@ and same rule which is children of Trade Model Rule """\n
\n \n
# search for normal movements\n # search for normal movements\n
kw[\'parent_specialise_portal_type\'] = \'Invoice Transaction Rule\'\n kw[\'parent_specialise_portal_type\'] = \'Invoice Transaction Rule\'\n
kw[\'grand_grand_parent_specialise_portal_type\'] = [\n
\'Invoicing Rule\', \'Invoice Rule\']\n
if context.Invoice_isAdvanced():\n if context.Invoice_isAdvanced():\n
kw[\'explanation_portal_type\'] = [\'%s Order\' % trade_type,\n kw[\'explanation_portal_type\'] = [\'%s Order\' % trade_type,\n
\'%s Invoice\' % trade_type,\n \'%s Invoice\' % trade_type,\n
......
275 278
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment