İçereği Atla
Odoo Menü
  • Portal
  • Ücretsiz deneyin
  • Uygulamalar
    Finans
    • Muhasebe
    • Faturalama
    • Masraf Yönetimi
    • Elektronik Çizelge (BI)
    • Belgeler
    • İmza
    Satış
    • Müşteri İlişkileri Yönetimi (CRM)
    • Satış
    • Satış Noktası Mağaza
    • Satış Noktası Restoran
    • Abonelikler
    • Kiralama
    Web Sitesi
    • Web Sitesi Oluşturucu
    • eTicaret
    • Blog
    • Forum
    • Canlı Sohbet
    • eÖğrenme
    Tedarik Zinciri
    • Envanter
    • Üretim
    • Ürün Yaşam Döngüsü Yönetimi
    • Satın Alma
    • Bakım
    • Kalite
    İnsan Kaynakları
    • Çalışanlar
    • İşe Alım
    • İzin
    • Değerlendirme
    • Referans
    • Filo Yönetimi
    Pazarlama
    • Sosyal Medyada Pazarlama
    • E-posta ile Pazarlama
    • SMS ile Pazarlama
    • Etkinlikler
    • Pazarlama Otomasyonu
    • Anket
    Hizmetler
    • Proje Yönetimi
    • Çalışma Çizelgeleri
    • Saha Hizmeti
    • Yardım Masası
    • Planlama
    • Randevular
    Verimlilik
    • Sohbet
    • Onay
    • Nesnelerin İnterneti
    • VoIP
    • Bilgi Bankası
    • WhatsApp
    Üçüncü taraf uygulamalar Odoo Stüdyo Odoo Bulut Platformu
  • Sektörler
    Perakende satış
    • Kitapçı
    • Giyim Mağazası
    • Mobilya Mağazası
    • Gıda Marketi
    • Hırdavat Dükkanı
    • Oyuncak Dükkanı
    Gıda ve Konaklama
    • Bar ve Pub
    • Restoran
    • Fast Food Restoranı
    • Konuk Evi
    • İçecek Distribütörü
    • Otel
    Gayrimenkul
    • Emlak Acentesi
    • Mimarlık Firması
    • İnşaat
    • Emlak Yönetimi
    • Bahçe Tasarımı
    • Mülk Sahipleri Derneği
    Uzmanlık
    • Muhasebe Firması
    • Odoo Partner
    • Pazarlama Ajansı
    • Hukuk Firması
    • Yetenek Kazanımı
    • Denetim ve Belgelendirme
    Üretim
    • Tekstil
    • Metal
    • Mobilyalar
    • Gıda
    • Bira fabrikası
    • Kurumsal Hediye
    Sağlık ve Spor
    • Spor Kulübü
    • Optik Mağazası
    • Fitness Merkezi
    • Sağlıklı Yaşam Merkezi
    • Eczane
    • Kuaför Salonu
    Ticaret
    • Tamirci
    • BT Donanım & Destek
    • Güneş Enerjisi Sistemleri
    • Ayakkabı İmalatçısı
    • Temizlik Hizmetleri
    • HVAC Hizmetleri
    Diğerleri
    • Kar Amacı Gütmeyen Kuruluş
    • Çevre Ajansı
    • Reklam Panosu Kiralama
    • Fotoğrafçılık
    • Bisiklet Kiralama
    • Yazılım Bayisi
    Tüm Sektörlere Göz Atın
  • Topluluk
    Öğrenim
    • Eğitim Araçları
    • Dokümantasyon
    • Sertifikasyonlar
    • Eğitim Etkinlikleri
    • Blog
    • Podcast
    Eğitim ve Gelişim
    • Eğitim Programı
    • Scale Up! İşletme Oyunu
    • Odoo'yu Ziyaret Edin
    Yazılım
    • İndirin
    • Sürümleri Kıyaslayın
    • Sürümler
    İş Birliği
    • Github
    • Forum
    • Etkinlikler
    • Çeviriler
    • Partner Olun
    • Partnerler için Hizmetler
    • Muhasebe Firmanızı Kaydettirin
    Hizmetler
    • Partner Bulun
    • Muhasebeci Bulun
    • Bir danışmanla görüşün
    • Kurulum Hizmetleri
    • Müşteri Referansları
    • Destek
    • Sürüm Yükseltme
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Demo randevusu alın
  • Fiyatlandırma
  • Yardım

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • Müşteri İlişkileri Yönetimi
  • e-Commerce
  • Muhasebe
  • Envanter
  • PoS
  • Proje Yönetimi
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiketler (View all)
odoo accounting v14 pos v15
About this forum
Yardım

Automatically create and print Serial/Lot for Manufacturing?

Abone Ol

Get notified when there's activity on this post

Bu soru işaretlendi
lotlabelserialv13
1 Cevapla
8947 Görünümler
Avatar
Community Question

In our Company the FIRST step we complete is the creation of the SERIAL NUMBER or LOT NUMBER and create a Label that we can print and affix to the frame of our finished product.

The Manufacturing App works by not asking for the number until the END of the order.

How can we address this?

0
Avatar
Vazgeç
Avatar
Ray Carnes (ray)
En İyi Yanıt

1.  Add a new custom field to the Manufacturing Order.

2.  Add a new button that auto populates the next available number and then generates the same PDF you would get if you printed from the LOT record.

3. Pass the new LOT number to the Production Wizard so the user doesn't have to create and/or select it there.


Steps:

1.  Add a new custom field to the Manufacturing Order.  

Add to the Database:

​​

Add to the User Interface:

<xpath expr="//field[@name='bom_id']" position="before">
<field name="x_new_lot" string="Lot Label"
attrs="{'invisible': [('x_new_lot','=',False)]}"/>
</xpath>


2.  Add a new button that auto populates the next available number and then generates the same PDF you would get if you printed from the LOT record.  

Create the Button:

​

Code for the button:

if not record.x_new_lot:
record['x_new_lot'] = env['stock.production.lot'].create({'company_id': 1,'product_id': record.product_id.id})
action = env.ref('stock.action_report_lot_label').report_action(record.x_new_lot)

Add the Button to the User Interface:

<button name="button_unplan" position="after">
<button name="535" type="action" string="LOT LABEL" class="oe_highlight"
attrs="{'invisible': ['|','|',('state','=','cancel'),
                                              ('x_new_lot','!=',False),
                                              ('product_id','=',False)]}"/>
</button>



3. Pass the new LOT number to the Production Wizard so the user doesn't have to create and/or select it there.  

You have to do this TWICE, since the PRODUCE button is in the View twice:

<xpath expr="//form/header/button[@name='open_produce_product'][1]" position="attributes">
<attribute name="context">{'default_finished_lot_id': x_new_lot}</attribute>
</xpath>

<xpath expr="//form/header/button[@name='open_produce_product'][2]" position="attributes">
<attribute name="context">{'default_finished_lot_id': x_new_lot}</attribute>
</xpath>



Now you get this:

A. Before clicking the BUTTON:

​

B. After clicking the BUTTON:

​

C. When clicking PRODUCE:

(LOT automatically copied over to the PRODUCE Wizard):


​

2
Avatar
Vazgeç
Muhammad Ahmed Rao

Dear ray,

I tried this solution on online version it worked like a charm. However, in odoo v12 its not working. I see lot label button on the bottom of the page when I click it the buttons get disabled. Where am I going wrong? Kindly assist

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Üye Ol
İlgili Gönderiler Cevaplar Görünümler Aktivite
Auto Generate Lot Number of Product During Manufacturing Process in ver14
manufacturing lot serial
Avatar
Avatar
1
Ağu 22
4485
[ODOO] V13 Can't reserve products for lot
lot serial odooV13
Avatar
Avatar
1
Haz 20
3604
Adding serial numbers via Inventory adjustment doubling On Hand units?
inventory lot serial beginner
Avatar
0
Kas 25
4414
What is the purpose of Lots/Serial Numbers in Odoo?
lot serial purpose odoo15
Avatar
Avatar
Avatar
2
May 25
3668
How to Inline printing of production batch labels with Odoo?
manufacturing lot printing serial
Avatar
0
Ağu 23
2517
Topluluk
  • Eğitim Araçları
  • Dokümantasyon
  • Forum
Açık Kaynak
  • İndirin
  • Github
  • Runbot
  • Çeviriler
Hizmetler
  • Odoo.sh Hosting
  • Destek
  • Sürüm Yükseltme
  • Özel Geliştirmeler
  • Eğitim
  • Muhasebeci Bulun
  • Partner Bulun
  • Partner Olun
Hakkında
  • Şirketimiz
  • Pazarlama Gereçleri
  • İletişim
  • Kariyer
  • Etkinlikler
  • Podcast
  • Blog
  • Müşteriler
  • Hukuki • Gizlilik
  • Güvenlik
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo, müşteri ilişkileri yönetimi, eTicaret, muhasebe, envanter, satış noktası, proje yönetimi gibi şirketinizin tüm ihtiyaçlarını karşılayan bir açık kaynak işletme uygulamaları paketidir.

Odoo’nun eşsiz değer önermesi, aynı anda hem kullanımının çok kolay olup hem de tamamen entegre olmasıdır.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now