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

accounting: make internal invoice's jump to related payment supports internal

Depending on the use, related payment can be a payment transaction (this
is maybe compatibility, this is what some people do, but we don't really
recommand) or an internal transaction, like with the new create payment.

Make this action should support both.
parent 04e1dc0d
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
string:${object_url}/Base_jumpToRelatedObject?base_category=causality&portal_type:list=Payment+Transaction string:${object_url}/Base_jumpToRelatedObject?base_category=causality&portal_type:list=Payment+Transaction&portal_type:list=Internal+Invoice+Transaction
  • @jerome This doesn't seem to work in my development instance.

    Edited for more details : I wanted to prove that the second portal_type parameters overrides the first parameter, but I cannot as frontends do not let me connect to my webrunner for more than 10s in a row

    Edited by Nicolas Wavrant
  • It should not override, with this configuration, the action is supposed to jump on document of portal type Internal Invoice Transaction or Payment Transaction, related by causality.

    We have a few other similar actions already, for example:

    bt5/erp5_accounting/ActionTemplateItem/portal_types/Payment%20Transaction/related_invoice.xml

    bt5/erp5_pdm/ActionTemplateItem/portal_types/Product/jump_to_related_supply_line.xml

    bt5/erp5_project/ActionTemplateItem/portal_types/Task%20Report/jump_to_related_invoice.xml

    ( PS: For this kind of frontend issues, I was using dnsmasq as a workaround )

Please register or sign in to reply
]]></string> </value> ]]></string> </value>
</item> </item>
......
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