Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0033556Openbravo ERP00. Application dictionarypublic2016-07-28 14:542016-10-12 08:55
neil_smith 
inigosanchez 
normalmajoralways
closedunable to reproduce 
5
3.0PR16Q1.3 
 
alostale
No
Mozilla Firefox
Core
No
0033556: Navigation rules not working
The navigation rules are not working using the new navigation rule model (on table, in navigation rule tab or on window field).

The standard navigation model rule (on table) is inverted (Window is supposed to be for the sales window, but when in sale window, it uses the purchase window).
I have 4 windows to manage products
- Sold products (Items)
- Purchased products (Items)
- Operations (Service)
- Simple operations (Service)

I'm trying to define navigation rules so that when I am in the product BOM, when I clic on a product, it brings me to the right window, depending on the product type.

On Product table, I defined as Window : Sold products and PO Window : Purchased products

In BOM Product tab of the product window, one can only add 'Sold products' or 'Operations', so I created 2 navigation rules :
- Navigate to tab 'Operations'; HQL Logic : 'e.productType='S''
- Navigate to tab 'Sold products'; HQL Logic : 'e.productType='I''

Now, if I go in the sales order window and click on a product, it brings me to the purchased products window. If I put sold products in PO Window, it opens the sold products window (inverted).

Now, if I go to the BOM product tab of my Sold products window and click on an operation (product with producttype = 'S', I checked), it opens the Purchased products window instead of opening the Operations window.

I thought that it might be a problem with what field as it is named 'M_ProductBOM_ID' and has a OBUISEL_Selector Reference, but I tried on the product field of the sales order window, but there, it is even more strange, on an operation, it opens the Simple operations window witch is not even mentionned in a navigation rule...

I relly don't understand how all this works...

One more question, why do I see all the navigation rules defined in the navigation rules of the table (even those defined at field level). It makes it all not clear as when such and such navigation rule is applied (the tab and field defined for the navigation rule are not displayed).
In table, Window = Sales window and PO Window = Purchase window
Make the new navigation rules work...
No tags attached.
related to defect 0034186 acknowledged Triage Platform Base It should be added more context information of navigation rules at table level 
Issue History
2016-07-28 14:54neil_smithNew Issue
2016-07-28 14:54neil_smithAssigned To => platform
2016-07-28 14:54neil_smithWeb browser => Mozilla Firefox
2016-07-28 14:54neil_smithModules => Core
2016-07-28 14:54neil_smithTriggers an Emergency Pack => No
2016-10-11 10:03inigosanchezAssigned Toplatform => inigosanchez
2016-10-11 10:04inigosanchezStatusnew => scheduled
2016-10-11 10:19inigosanchezReview Assigned To => alostale
2016-10-11 10:19inigosanchezNote Added: 0090523
2016-10-11 10:19inigosanchezStatusscheduled => closed
2016-10-11 10:19inigosanchezResolutionopen => unable to reproduce
2016-10-11 11:05inigosanchezRelationship addedrelated to 0034186
2016-10-11 11:28inigosanchezNote Added: 0090528
2016-10-12 08:55neil_smithNote Added: 0090539

Notes
(0090523)
inigosanchez   
2016-10-11 10:19   
First of all, Navigation rules work as expected. In our case, we defined two rules navigation at field level in Product > Bill of Materials > Product. Rule navigations are:
- 10 | Product - Product | e.productType='S'
- 20 | Resource Product - Resource | e.productType='I'

Now, if I go to the Bill of Materials tab (Product window), open in form a record and navigate to the product (click on BOM Product), it opens the Product window or Resource Product depends on the type of the product.

Regarding your last question, It is opened a new issue in order to add more context information in subtab navigation rules of Tables and Columns window. This context information will help to identify which navigation rule is applied.
(0090528)
inigosanchez   
2016-10-11 11:28   
If you have any other problem related with navigation rules, please, open a new issue and attached more information in order to reproduce the issue: Attached module in which custom windows are defined or add steps to reproduce the problem with core windows.
(0090539)
neil_smith   
2016-10-12 08:55   
Thanks for the info, I managed to make the navigation rules work, I don't know what I did wrong.

But what about the inversion between the purchase and sales order window at table level?