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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049992
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajoralways2022-08-12 08:072022-08-12 08:08
Reporterjorge-garciaView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049992: Messages from some modules are not available in ReactPOS application

DescriptionModules can add messages in Backoffice as System Administrator to be used then in ReactPOS application.

Messages from some modules are not available in ReactPOS application once the application is build.

The messages from module are available once the module has as module dependency org.openbravo.retail.posterminal
Steps To ReproduceIn an instance of pos2:
In ERP:
  1) Login as Openbravo
  2) Switch role to System Administrator
  3) Go to Module window and put org.openbravo.retail.discounts with In
     Development flag checked
  4) Go to Message window and create a new record for Discounts & Promotions
     Rules for Retail:
       * Search Key: OBDISC_TestLabel
       * Message Type: Information
       * Message Text: Test Label
  5) Save the record

In ubuntu terminal
  1) Navigate to instance folder and go to org.openbravo.core2 module
  2) Execute ant build command and wait until build is successful
  3) Start the server

In ReactPOS Application
  1) Try to use a label OBDISC_TestLabel (using Translate component, useLabel react hook or getLabel function)
  2) Verify the label is not rendered
  3) Verify label is not available in generated POS2-labels-en_US.json file

Repeat the whole process including as a dependant module of org.openbravo.retail.discounts the module org.openbravo.retail.posterminal and verify message are available in ReactPOS app
Proposed SolutionReading the code, it seems that the module messages to be taken into account are the ones at 1 level deep from pos2 module.

That is why for example org.openbravo.retail.discounts messages are not available in ReactPOS (it depends only from User Interface Client Kernel module) but messages from module org.openbravo.retail.discounts.bytotal are available (it depends directly from Web POS module)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2022-08-12 08:07 jorge-garcia New Issue
2022-08-12 08:07 jorge-garcia Assigned To => Triage Platform Base
2022-08-12 08:07 jorge-garcia Triggers an Emergency Pack => No
2022-08-12 08:08 jorge-garcia Steps to Reproduce Updated View Revisions


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker