Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049890
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajorhave not tried2022-07-27 19:212022-07-29 12:05
ReporteraferrazView Statuspublic 
Assigned Toaferraz 
PrioritynormalResolutioninvalidFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toaferraz
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049890: Not possible to extend user action executability rule

DescriptionNot possible to extend user action executability rule
Steps To ReproduceHaving a user action with a defined executability rule.
For example, IssueInvoice.js in org.openbravo.pos2.

Try to add an extra executability rule for the same user action in the ob-init.js of an external module.
For example:
Registry.getUserAction('OBPOS2_IssueTicket').addExecutabilityRule(
  () => false
);

Create a new ticket and check you can run Issue Invoice action, meaning the executability rule defined in the external module is not taken into account.
TagsNo tags attached.
Attached Filespng file icon Screenshot from 2022-07-27 19-22-12.png [^] (121,209 bytes) 2022-07-27 19:22

- Relationships Relation Graph ] Dependency Graph ]
blocks feature request 0049219 closedaferraz Retail Modules Gift Card as Payment Method 

-  Notes
(0139717)
aferraz (manager)
2022-07-29 12:05

I was registering the executability rule in the wrong user action.
The executability rule works fine when using the correct user action.

- Issue History
Date Modified Username Field Change
2022-07-27 19:21 aferraz New Issue
2022-07-27 19:21 aferraz Assigned To => Triage Platform Base
2022-07-27 19:21 aferraz Triggers an Emergency Pack => No
2022-07-27 19:22 aferraz File Added: Screenshot from 2022-07-27 19-22-12.png
2022-07-27 19:22 aferraz Relationship added blocks 0049219
2022-07-28 14:27 AugustoMauch Assigned To Triage Platform Base => ablasco
2022-07-28 14:27 AugustoMauch Status new => acknowledged
2022-07-29 12:03 aferraz Status acknowledged => scheduled
2022-07-29 12:03 aferraz Assigned To ablasco => aferraz
2022-07-29 12:03 aferraz Status scheduled => feedback
2022-07-29 12:03 aferraz Status feedback => new
2022-07-29 12:05 aferraz Review Assigned To => aferraz
2022-07-29 12:05 aferraz Note Added: 0139717
2022-07-29 12:05 aferraz Status new => closed
2022-07-29 12:05 aferraz Resolution open => invalid


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker