CREATE OR REPLACE VIEW adempiere.JP_Trl_Product AS

SELECT t.AD_Language, t.JP_Trl_Name, t.JP_Trl_Description, t.JP_Trl_DOcumentNote, a.* FROM adempiere.M_Product a INNER JOIN
(
SELECT 
    trl.M_Product_ID AS M_Product_ID
    , trl.AD_Language AS AD_Language
    , trl.Name AS JP_Trl_Name
    , Trl.Description AS JP_Trl_Description
    , Trl.DocumentNote AS JP_Trl_DOcumentNote
 
 FROM adempiere.M_Product_Trl trl
 
UNION ALL
 
SELECT  
    p.M_Product_ID AS M_Product_ID
    ,(SELECT AD_Language FROM adempiere.AD_Language WHERE IsBaseLanguage = 'Y' ) AS AD_Language
    ,p.Name AS JP_Trl_Name
    ,p.Description AS JP_Trl_Description
    ,p.DocumentNote AS JP_Trl_DOcumentNote
FROM adempiere.M_Product p 
) t ON (a.M_Product_ID = t.M_Product_ID) 