SimulationTool: allow also ledger_uid to be used as join_column for selection_domain
@vpelletier @jerome we have discussed about this at some points
In the past, a Domain Tree in a Listbox whose list_method uses simulation query (getInventoryList
or getMovementHistoryList
) could use only node_uid as join column. I started working on this trying to add support for ledger_uid in PaymentTransactionGroup_view. So this merge request contains kind of both changes, but they come from the same stream of work.
More specifically 3 commits:
- First tries to give a more flexible definition of join_column based on a mapping that is one an erp5_core PythonScript, so can be overwritten for a project. Still it is not perfect, since it does not support the case of e.g. "have a domain on site category sometime used as node_category and sometimes as mirror_node_category or section_category".
- Second makes the change in PaymentTransactionGroup_view. There is one more change that is adjacent. In the past PaymentTransactionGroup_view would list only Accounting Transaction Lines whose parents are Payment Transactions. Now we support also Accounting Transaction Lines whose parents are Accounting Transactions. I think this is an acceptable generic change, but you may comment.
- Third renames some scripts, commit message is explanatory I think