콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
2745 화면

How can generate automatically barcode for any new product on odoo online 18 ?

아바타
취소

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

베스트 답변

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! 😊

아바타
취소
관련 게시물 답글 화면 활동
3
11월 24
6939
2
9월 25
309
2
9월 25
511
0
2월 25
1636
0
1월 25
46