From 0228467af050577c3cd07442538c9c1e5e13e347 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 11 Jul 2024 15:50:15 +0700 Subject: add --- import_odoo_14_to_data_warehouse_manual.ktr | 83 +++--- import_partner_one_time.ktr | 429 ++++++++++++++++++++++++++-- 2 files changed, 453 insertions(+), 59 deletions(-) diff --git a/import_odoo_14_to_data_warehouse_manual.ktr b/import_odoo_14_to_data_warehouse_manual.ktr index 4800250..debbe66 100644 --- a/import_odoo_14_to_data_warehouse_manual.ktr +++ b/import_odoo_14_to_data_warehouse_manual.ktr @@ -750,31 +750,7 @@ LEFT JOIN brand mf ON mf.id = p.brand_id LEFT JOIN res_partner_industry i ON i.id = rp.industry_id WHERE m.move_type::text = 'out_invoice'::text AND m.state::text = 'posted'::text - --AND ml.write_date >= (now() - '15 days'::interval) - and m.name in( - 'INV/2023/10/0343', -'INV/2023/10/0358', -'INV/2023/12/0166', -'INV/2023/10/0348', -'INV/2023/10/0344', -'INV/2023/03/0177', -'INV/2023/08/0347', -'INV/2023/10/0328', -'INV/2023/08/0591', -'INV/2023/05/0083', -'INV/2023/10/0346', -'INV/2023/10/0071', -'INV/2023/10/0347', -'INV/2023/12/0425', -'INV/2023/08/0059', -'INV/2023/10/0360', -'INV/2023/10/0329', -'INV/2023/03/0178', -'INV/2023/10/0359', -'INV/2023/10/0276', -'INV/2023/10/0345', -'INV/2023/12/0299' - ) + --AND ml.write_date >= (now() - '15 days'::interval) 0 N @@ -801,7 +777,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -824,7 +800,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -847,7 +823,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -870,7 +846,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -893,7 +869,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -916,7 +892,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -939,7 +915,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -962,7 +938,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -985,7 +961,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1008,7 +984,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1031,7 +1007,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1054,7 +1030,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1077,7 +1053,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1100,7 +1076,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1123,7 +1099,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1146,7 +1122,7 @@ N N N - en_US + en_ID Asia/Bangkok N @@ -1169,7 +1145,30 @@ N N N - en_US + en_ID + Asia/Bangkok + N + + + Integer + normal + account_move_line_id + 9 + 0 + Table input + account_move_line_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID Asia/Bangkok N diff --git a/import_partner_one_time.ktr b/import_partner_one_time.ktr index c0804e7..8d7677d 100644 --- a/import_partner_one_time.ktr +++ b/import_partner_one_time.ktr @@ -437,14 +437,14 @@ - dw bi indoteknik (localhost) + dw bi indoteknik localhost POSTGRESQL Native dw_bi_indoteknik - 5432 - odoo - Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3 + 5703 + metabase + Encrypted 2be98dfba28d7bf86853c9f58cfc4f889 @@ -463,7 +463,7 @@ PORT_NUMBER - 5432 + 5703 PRESERVE_RESERVED_WORD_CASE @@ -479,7 +479,7 @@ SUPPORTS_TIMESTAMP_DATA_TYPE - N + Y USE_POOLING @@ -488,12 +488,12 @@ - erp indoteknik production (localhost) - 10.148.0.3 + erp indoteknik production + localhost POSTGRESQL Native erp_indoteknik - 5432 + 5901 odoo Encrypted 2be98afc82bdfd8dd9a2ca45acc83f6c3 @@ -514,7 +514,7 @@ PORT_NUMBER - 5432 + 5901 PRESERVE_RESERVED_WORD_CASE @@ -530,7 +530,7 @@ SUPPORTS_TIMESTAMP_DATA_TYPE - N + Y USE_POOLING @@ -561,7 +561,7 @@ none - dw bi indoteknik (localhost) + dw bi indoteknik 100 N @@ -679,18 +679,413 @@ none - erp indoteknik production (localhost) + erp indoteknik production select id, name, display_name, active, email, industry_id, state_id, kota_id, kecamatan_id, kelurahan_id, is_potential, parent_id, email, phone, mobile, pareto_status, group_partner_id from res_partner ---where write_date >= (now() - '5 days'::interval) +where pareto_status is not null +and pareto_status not in('NP') and group_partner_id is not null +--group_partner_id is not null +--write_date >= (now() - '5 days'::interval) 0 N N N N - + + + Integer + normal + id + 9 + 0 + Table input + id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + name + 2147483647 + -1 + Table input + name + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + display_name + 2147483647 + -1 + Table input + display_name + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Boolean + normal + active + -1 + -1 + Table input + active + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + email + 2147483647 + -1 + Table input + email + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + industry_id + 9 + 0 + Table input + industry_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + state_id + 9 + 0 + Table input + state_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + kota_id + 9 + 0 + Table input + kota_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + kecamatan_id + 9 + 0 + Table input + kecamatan_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + kelurahan_id + 9 + 0 + Table input + kelurahan_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Boolean + normal + is_potential + -1 + -1 + Table input + is_potential + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + parent_id + 9 + 0 + Table input + parent_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + email_1 + 2147483647 + -1 + Table input + email + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + phone + 2147483647 + -1 + Table input + phone + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + mobile + 2147483647 + -1 + Table input + mobile + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + String + normal + pareto_status + 2147483647 + -1 + Table input + pareto_status + + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + + Integer + normal + group_partner_id + 9 + 0 + Table input + group_partner_id + ####0;-####0 + . + , + + none + N + Y + 0 + N + N + N + en_ID + Asia/Bangkok + N + + @@ -716,7 +1111,7 @@ from res_partner none - erp indoteknik production (localhost) + erp indoteknik production select * from group_partner 0 @@ -889,7 +1284,7 @@ from res_partner none - dw bi indoteknik (localhost) + dw bi indoteknik 100 N -- cgit v1.2.3