Skip to content

Commit

Permalink
Merge pull request #8701 from ehuelsmann/customization/extensible-wor…
Browse files Browse the repository at this point in the history
…kflows

Introduce gaps between button numbers allowing added buttons in-between
  • Loading branch information
ehuelsmann authored Mar 2, 2025
2 parents 01b2db4 + 9fa9d12 commit 27289f3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
42 changes: 21 additions & 21 deletions workflows/ar-ap.actions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ TODO! Check workflow when 'separate duties' is false!
-->
<action name="update"
group="main"
order="01"
order="0100"
text="Update"
doing="Updating..."
done="Updated"
class="LedgerSMB::Workflow::Action::Null" />
<action name="copy_to_new"
group="main"
order="02"
order="0200"
text="Copy to New"
short-help="Create a new transaction with the current data"
class="LedgerSMB::Workflow::Action::Null" />
<action name="print"
group="output"
order="03"
order="0300"
ui="print"
text="Print"
history-text="Printed"
class="LedgerSMB::Workflow::Action::Null" />
<action name="approve"
group="main"
order="04"
order="0400"
text="Post"
doing="Posting..."
done="Posted"
Expand All @@ -46,116 +46,116 @@ TODO! Check workflow when 'separate duties' is false!
class="LedgerSMB::Workflow::Action::Null" />
<action name="post_and_approve"
group="main"
order="05"
order="0500"
text="Post"
doing="Posting..."
done="Posted"
history-text="Posted"
class="LedgerSMB::Workflow::Action::Null" />
<action name="post_reversing"
group="main"
order="06"
order="0600"
text="Post"
doing="Posting..."
done="Posted"
history-text="Posted"
class="LedgerSMB::Workflow::Action::Null" />
<action name="post"
group="main"
order="07"
order="0700"
text="Save"
doing="Saving..."
done="Saved"
history-text="Saved"
class="LedgerSMB::Workflow::Action::Null" />
<action name="edit_and_save"
group="main"
order="08"
order="0800"
text="Save"
doing="Saving..."
done="Saved"
history-text="Saved"
class="LedgerSMB::Workflow::Action::Null" />
<!-- action name="save_temp"
group="main"
order="09"
order="0900"
text="Save Template"
doing="Saving..."
done="Saved"
history-text="Saved"
class="LedgerSMB::Workflow::Action::Null" / -->
<action name="ship_to"
group="main"
order="10"
order="1000"
text="Ship To"
history-text="Added shipping information"
class="LedgerSMB::Workflow::Action::Null" />
<action name="e_mail"
group="output"
order="11"
order="1100"
text="E-mail"
class="LedgerSMB::Workflow::Action::SpawnWorkflow"
spawn_type="Email"
context_param="_email_data" />
<action name="sales_order"
group="main"
order="12"
order="1200"
text="Sales order"
history-text="Created sales order"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="purchase_order"
group="main"
order="13"
order="1300"
text="Purchase order"
history-text="Created purchase order"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="schedule"
group="main"
order="14"
order="1400"
text="Schedule"
short-help="Make transaction recurring"
class="LedgerSMB::Workflow::Action::Null" />
<action name="hold"
group="main"
order="15"
order="1500"
text="Hold"
short-help="Mark transaction being disputed"
history-text="Put on hold"
class="LedgerSMB::Workflow::Action::Null" />
<action name="release"
group="main"
order="16"
order="1600"
text="Release"
short-help="Release held transaction"
history-text="Released from hold"
class="LedgerSMB::Workflow::Action::Null" />
<action name="void"
group="main"
order="17"
order="1700"
text="Void"
history-text="Voided"
class="LedgerSMB::Workflow::Action::Null" />
<action name="reverse"
group="main"
order="18"
order="1800"
text="Reverse"
history-text="Reversed"
class="LedgerSMB::Workflow::Action::Null" />
<action name="save_info"
group="main"
order="19"
order="1900"
text="Save Info"
class="LedgerSMB::Workflow::Action::Null" />
<action name="new_screen"
group="main"
order="20"
order="2000"
text="New"
short-help="Create a new (empty) transaction"
class="LedgerSMB::Workflow::Action::Null" />
<!-- 'delete' is a reserved keyword; we better not use it: it'll need to be the name of a sub -->
<action name="del"
group="main"
order="21"
order="2100"
text="Delete"
short-help="Remove draft transaction"
class="LedgerSMB::Workflow::Action::TransactionDelete" />
Expand Down
30 changes: 15 additions & 15 deletions workflows/order-quote.actions.xml
Original file line number Diff line number Diff line change
@@ -1,87 +1,87 @@
<actions type="Order/Quote">
<action name="update"
group="main"
order="01"
order="0100"
text="Update"
doing="Updating..."
done="Updated"
class="LedgerSMB::Workflow::Action::Null" />
<action name="print"
group="output"
order="02"
order="0200"
ui="print"
text="Print"
history-text="Printed"
class="LedgerSMB::Workflow::Action::Null" />
<action name="save"
group="main"
order="03"
order="0300"
text="Save"
doing="Saving..."
done="Saved"
history-text="Saved"
class="LedgerSMB::Workflow::Action::Null" />
<action name="ship_to"
group="main"
order="04"
order="0400"
text="Ship To"
history-text="Added shipping information"
class="LedgerSMB::Workflow::Action::Null" />
<action name="e_mail"
group="output"
order="05"
order="0500"
text="E-mail"
class="LedgerSMB::Workflow::Action::SpawnWorkflow"
spawn_type="Email"
context_param="_email_data" />
<action name="save_as_new"
group="main"
order="06"
order="0600"
text="Save as New"
doing="Saving..."
done="Saved"
history-text="Created new"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="sales_invoice"
group="main"
order="07"
order="0700"
text="Sales Invoice"
history-text="Created sales invoice"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="sales_order"
group="main"
order="08"
order="0800"
text="Sales Order"
history-text="Created sales order"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="quotation"
group="main"
order="09"
order="0900"
text="Quotation"
history-text="Created quotation"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="vendor_invoice"
group="main"
order="10"
order="1000"
text="Vendor Invoice"
history-text="Created vendor invoice"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="purchase_order"
group="main"
order="11"
order="1100"
text="Purchase Order"
history-text="Created purchase order"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="rfq"
group="main"
order="12"
order="1200"
text="RFQ"
short-help="Request for Quote"
history-text="Created request-for-quote"
class="LedgerSMB::Workflow::Action::RecordSpawnedWorkflow" />
<action name="delete"
group="main"
order="13"
order="1300"
text="Delete"
history-text="Deleted"
class="LedgerSMB::Workflow::Action::Null" />
Expand All @@ -90,13 +90,13 @@
<!-- these actions do not have a matching button in is.pl or ir.pl or aa.pl -->
<action name="print_and_save"
group="output"
order="13"
order="1300"
text="Print and Save"
history-text="Printed and saved"
class="LedgerSMB::Workflow::Action::Null" />
<action name="print_and_save_as_new"
group="output"
order="14"
order="1400"
text="Print and Save as New"
history-text="Printed and created new"
class="LedgerSMB::Workflow::Action::Null" />
Expand Down

0 comments on commit 27289f3

Please sign in to comment.