Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
0f18a204
Commit
0f18a204
authored
Feb 26, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounting: suggest payment mode from "create related payment" based trade conditions
parent
4b516fe8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
74 additions
and
15 deletions
+74
-15
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getCreateRelatedPaymentTransactionDialogDefaultPaymentMode.py
...reateRelatedPaymentTransactionDialogDefaultPaymentMode.py
+9
-0
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getCreateRelatedPaymentTransactionDialogDefaultPaymentMode.xml
...eateRelatedPaymentTransactionDialogDefaultPaymentMode.xml
+62
-0
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_viewCreateRelatedPaymentTransactionDialog/your_payment_mode.xml
...eateRelatedPaymentTransactionDialog/your_payment_mode.xml
+3
-15
No files found.
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getCreateRelatedPaymentTransactionDialogDefaultPaymentMode.py
0 → 100644
View file @
0f18a204
portal
=
context
.
getPortalObject
()
payment_mode_from_trade_condition
=
None
trade_condition
=
context
.
getSpecialiseValue
()
if
trade_condition
is
not
None
:
payment_mode_from_trade_condition
=
trade_condition
.
getPaymentConditionPaymentMode
()
return
payment_mode_from_trade_condition
or
portal
.
portal_selections
.
getSelectionParamsFor
(
'accounting_create_related_payment_selection'
).
get
(
'payment_mode_for_related_payment'
)
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getCreateRelatedPaymentTransactionDialogDefaultPaymentMode.xml
0 → 100644
View file @
0f18a204
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Invoice_getCreateRelatedPaymentTransactionDialogDefaultPaymentMode
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_viewCreateRelatedPaymentTransactionDialog/your_payment_mode.xml
View file @
0f18a204
...
...
@@ -265,32 +265,20 @@
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<tuple>
<tuple>
<string>
Products.Formulator.TALESField
</string>
<string>
TALESMethod
</string>
</tuple>
<none/>
</tuple>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python:here.portal_selections.getSelectionParamsFor(\'accounting_create_related_payment_selection\').get(\'payment_mode_for_related_payment\')
</string>
</value>
<value>
<string>
context/Invoice_getCreateRelatedPaymentTransactionDialogDefaultPaymentMode
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<tuple>
<tuple>
<string>
Products.Formulator.TALESField
</string>
<string>
TALESMethod
</string>
</tuple>
<none/>
</tuple>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment