Skip ke Konten
Odoo Menu
  • Login
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Spreadsheet (BI)
    • Dokumen
    • Tanda Tangan
    Sales
    • CRM
    • Sales
    • POS Toko
    • POS Restoran
    • Langganan
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Rantai Pasokan
    • Inventaris
    • Manufaktur
    • PLM
    • Purchase
    • Maintenance
    • Kualitas
    Sumber Daya Manusia
    • Karyawan
    • Rekrutmen
    • Cuti
    • Appraisal
    • Referensi
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Acara
    • Otomatisasi Marketing
    • Survei
    Layanan
    • Project
    • Timesheet
    • Layanan Lapangan
    • Meja Bantuan
    • Planning
    • Appointment
    Produktivitas
    • Diskusi
    • Approval
    • IoT
    • VoIP
    • Pengetahuan
    • WhatsApp
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • Industri-Industri
    Retail
    • Toko Buku
    • Toko Baju
    • Toko Furnitur
    • Toko Kelontong
    • Toko Hardware
    • Toko Mainan
    Makanan & Hospitality
    • Bar dan Pub
    • Restoran
    • Fast Food
    • Rumah Tamu
    • Distributor Minuman
    • Hotel
    Real Estate
    • Agensi Real Estate
    • Firma Arsitektur
    • Konstruksi
    • Estate Management
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Mitra Odoo
    • Agensi Marketing
    • Firma huku
    • Talent Acquisition
    • Audit & Sertifikasi
    Manufaktur
    • Tekstil
    • Logam
    • Perabotan
    • Makanan
    • Brewery
    • Corporate Gift
    Kesehatan & Fitness
    • Sports Club
    • Toko Kacamata
    • Fitness Center
    • Wellness Practitioners
    • Farmasi
    • Salon Rambut
    Perdagangan
    • Handyman
    • IT Hardware & Support
    • Sistem-Sistem Energi Surya
    • Pembuat Sepatu
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Browse semua Industri
  • Komunitas
    Belajar
    • Tutorial-tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungi Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    Dapatkan Layanan
    • Temukan Mitra
    • Temukan Akuntan
    • Temui penasihat
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan

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
All apps
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Anda harus terdaftar untuk dapat berinteraksi di komunitas.
Semua Post Orang Lencana-Lencana
Label (Lihat semua)
odoo accounting v14 pos v15
Mengenai forum ini
Help

How to Create MRP From Scrap in Odoo 15

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
mrpscrapEnterprisev15
1 Balas
2904 Tampilan
Avatar
waheed
I want to Please create the MRP order whenever the Main Products scrap orders created and validated. Please note that
if Child MO of MRP is used in MRP those should be created as well. Once created
then validate the MRP orders and its associated Child MO. The below code create main and child mrps when it goes to to_close state it generate error "Produce qty must be positive"
Any body know which step i missed.

_inherit = 'stock.scrap'

def action_validate(self):
res = super(StockScrap, self).action_validate()

for scrap in self:
boms = self.env['mrp.bom'].search([('product_tmpl_id', '=', scrap.product_id.product_tmpl_id.id)])
if not boms:
raise exceptions.UserError("No Bill of Materials found for the product.")

mrp_orders_to_confirm = []
print('.............', boms)

for scrap in self:
for bom in boms:
mrp_order_vals = {
'product_id': scrap.product_id.id,
'product_qty': scrap.scrap_qty,
'product_uom_id': scrap.product_id.uom_id.id,
'bom_id': bom.id,

}
print(bom.product_id.name, '.................................PRD ID')

print(mrp_order_vals, '.......................created mrp order')
mrp_order = self.env['mrp.production'].create(mrp_order_vals)
mrp_orders_to_confirm.append(mrp_order)
print(mrp_order, 'MRP ODER ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,')

for line in bom.bom_line_ids:
print(line.product_id.name, ',,,,,,,,,,,,,,,,,,,,,,,,,,,,,PRODUCT NAME')

if line.child_bom_id:
child_mrp_order_vals = {
'product_id': line.product_id.id,
'product_qty': scrap.scrap_qty,
'product_uom_id': line.product_id.uom_id.id,
'bom_id': line.child_bom_id.id,
# 'move_raw_ids': [(0, 0, {
# 'product_id': line.product_id.id, })]
}
child_mrp_order = self.env['mrp.production'].create(child_mrp_order_vals)
mrp_orders_to_confirm.append(child_mrp_order)

for mrp_order in mrp_orders_to_confirm:
mrp_order.action_confirm()

return res

Thanks
your reply will be appreciable


0
Avatar
Buang
Avatar
Lars Aam
Jawaban Terbai

Instead of coding, take a look at standard functions in Odoo.  

On products you want to keep in stock create a reorder rule.  Here you can set MIN / MAX QTY and a reorder qty.  If you set MIN / MAX = 0 and reorder (Qty Multiple) = 1  it will only reorder when there is a demand.

You can choose Manual or Automatic trigger.  With Manual setting, you must use the function in Inventory -> Operation -> Replenishment and press button 'Order'. You can manually adjust qty you want to create order.

Automatic trigger: By default there is an automatic job - Scheduler that will create new orders, when there is a demand. You find the automatic job in Scheduled Action named Procurement Run Scheduler.  By default in run once a day.  You can modify the time to suit your needs.  It can also be run manually from Inventory -> Operations -> Run Scheduler.

An option for you might also be to create an automatic action to run scheduler when a scrap order is posted.

You can use Automatic trigger for some products, and manual for others according to what suits your business process.

The result will be that for whatever reason you are short for the product, an order will be created.

Child order:  If you use MTO route a child order will always be created connected to the mother order.  If you do not use MTO and you have multilevel manufacturing, the semifinished product will be created also with the same logic as for the main product.


0
Avatar
Buang
Menikmati diskusi? Jangan hanya membaca, ikuti!

Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!

Daftar
Post Terkait Replies Tampilan Aktivitas
✅ SOLVED - Reusing Scrap in Odoo
mrp scrap
Avatar
0
Feb 25
2111
Cost gets affected by inter branch transfer through the sales and purchase order synchronization
Enterprise v15
Avatar
0
Des 23
2329
Override def application
Enterprise v15
Avatar
0
Jul 22
462
How can I pad online appointments? Diselesaikan
Enterprise v15
Avatar
Avatar
1
Jul 22
2911
Link between mrp.production and subcontractor Diselesaikan
mrp v15 subcontracting
Avatar
Avatar
1
Jun 23
3532
Komunitas
  • Tutorial-tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Peningkatan
  • Custom Development
  • Pendidikan
  • Temukan Akuntan
  • Temukan Mitra
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Tugas
  • Acara
  • Podcast
  • Blog
  • Pelanggan
  • Hukum • Privasi
  • Keamanan
الْعَرَبيّة 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 adalah rangkaian aplikasi bisnis open source yang mencakup semua kebutuhan perusahaan Anda: CRM, eCommerce, akuntansi, inventaris, point of sale, manajemen project, dan seterusnya.

Mudah digunakan dan terintegrasi penuh pada saat yang sama adalah value proposition unik Odoo.

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