How can generate automatically barcode for any new product on odoo online 18 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
Hi there,
I used the same video but made a slight change. I managed to get this working by changing the trigger to "On save". You might be wondering why "On save"? It's because a product can be saved multiple times. Don't worry, we've got that covered with an if condition.
Here's the Code Used:
for record in records:
if not record['barcode']:
record['barcode'] = env['ir.sequence'].next_by_code('product.barcode')
please don't forget to vote - it really helps to select the best questions and answers!
Hi,
By a sequence and using automated action, you can achieve it: Generate Barcode For Products Using Automated Action In Odoo
Thanks
Hello Hicham Ghilani,
Here’s a link with more information on automatically generating product barcodes in Odoo Online v16: Automatically Generate Product Barcode Numbers in Odoo.
Let me know if it helps! 😊
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
3
Nov 24
|
6122 | ||
|
0
Feb 25
|
1295 | ||
|
0
Des 24
|
46 | ||
|
0
Des 24
|
1178 | ||
|
1
Okt 24
|
2458 |
The Automated Actions in Odoo 18 is changed significantly and doesn't match the YouTube video. If someone can post a new video will help
Thank you all