From 257d3e45888dc3e3a760d6bb088ad8ca3d0fc4f0 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Thu, 10 Aug 2023 11:03:14 +0700 Subject: add missing field for product --- import_product_product.ktr | 258 +++++++++++++++++++++++++++++++++------------ 1 file changed, 188 insertions(+), 70 deletions(-) diff --git a/import_product_product.ktr b/import_product_product.ktr index 3659814..4e7f9c0 100644 --- a/import_product_product.ktr +++ b/import_product_product.ktr @@ -430,7 +430,7 @@ 2023/08/09 16:13:00.056 - 2023/08/09 16:13:00.056 - + H4sIAAAAAAAAAAMAAAAAAAAAAAA= N @@ -544,6 +544,94 @@ Y + + Insert / update + InsertUpdate + + Y + + 1 + + none + + + dw bi indoteknik + 100 + N + + public + product
+ + product_id + product_id + = + + + + product_id + product_id + N + + + template_id + template_id + Y + + + name + name + Y + + + active + active + Y + + + brand_id + brand_id + Y + + + item_code + item_code + Y + + + parent_category + parent_category + Y + + + image + image + Y + + + description + description + Y + + + weight + weight + Y + +
+ + + + + + + + + + 448 + 128 + Y + +
Table input TableInput @@ -557,7 +645,13 @@ erp indoteknik production select pp.id as product_id, pt.id as template_id, pt.name, pp.active, pt.x_manufacture as brand_id, -case when pp.default_code is null then pt.default_code else pp.default_code end as item_code +case when pp.default_code is null then pt.default_code else pp.default_code end as item_code, +(select name from product_public_category ppc where id in((select replace(left(parent_path, 2), '/', '')::int from product_public_category + where id in(select ppcptr.product_public_category_id from product_public_category_product_template_rel ppcptr + where ppcptr.product_template_id = pt.id limit 1)))) as parent_category, +(select store_fname from ir_attachment ia where ia.res_model='product.template' and res_field='image_1920' and ia.res_id=pt.id) as image, +pt.website_description as description, +pt.weight from product_product pp join product_template pt on pt.id = pp.product_tmpl_id where pp.write_date >= (now() - '5 days'::interval) @@ -706,6 +800,98 @@ where pp.write_date >= (now() - '5 days'::interval) Asia/Bangkok N + + String + normal + parent_category + 2147483647 + -1 + Table input + parent_category + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + image + 2147483647 + -1 + Table input + image + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + String + normal + description + 2147483647 + -1 + Table input + description + + . + , + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + + + BigNumber + normal + weight + -1 + -1 + Table input + weight + ######0.0###################;-######0.0################### + . + + + none + N + Y + 0 + N + N + N + en_US + Asia/Bangkok + N + @@ -721,74 +907,6 @@ where pp.write_date >= (now() - '5 days'::interval) Y - - Insert / update - InsertUpdate - - Y - - 1 - - none - - - dw bi indoteknik - 100 - N - - public - product
- - product_id - product_id - = - - - - product_id - product_id - N - - - template_id - template_id - Y - - - name - name - Y - - - active - active - Y - - - brand_id - brand_id - Y - - - item_code - item_code - Y - -
- - - - - - - - - - 448 - 128 - Y - -
-- cgit v1.2.3