Guys, importing data from csv, can create products, updating field ean13 (product_product)
and i can see it in product_product but I can't see it in product_template.
Did I missed something ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Guys, importing data from csv, can create products, updating field ean13 (product_product)
and i can see it in product_product but I can't see it in product_template.
Did I missed something ?
self.env['product.product'].write({'ean13':self.ean13_barcode})
this is not the correct syntax of write in odoo , you need to browse the object first .
use
product_obj = self.env['product.product'].browse(product_id)
product_obj.ean13=self.ean13_barcode####this will update ean13
YES i just realized, where it suppose to write it if there is no either id or any other significant information where to write ean13 :) Yes Prakash, thank you.
Silly me ;)
I was thinking if I'm in object there will be automatically id for the product i created - of course NOT! i was just wrong! :) No worries, now is all clear and i know what to do :) However I already solved this problem using simple/direct SQL query but I want it to be done using Odoo API :)
Aaa hahaha, thank you Prakash, It was just my stu......y. I just added extra field ean13 in my module so the original ean13 was actually overwritten that's why I couldn't see it :) Now is OK!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 3 15
|
4845 | ||
|
1
thg 7 15
|
3182 | ||
|
1
thg 9 21
|
5347 | ||
Product attributes in qweb report
Đã xử lý
|
|
6
thg 3 16
|
7592 | |
|
2
thg 3 15
|
5180 |