Skip ke Konten
Odoo Menu
  • Sign in
  • Uji coba gratis
  • Aplikasi
    Keuangan
    • Akuntansi
    • Faktur
    • Pengeluaran
    • Tanda Tangan
    • Spreadsheet
    • ESG
    Sales
    • CRM
    • Sales
    • Langganan
    • POS Toko
    • POS Restoran
    • Rental
    Website
    • Website Builder
    • eCommerce
    • Acara
    • Blog
    • eLearning
    • Forum
    Supply Chain
    • Inventaris
    • Manufaktur
    • Maintenance
    • PLM
    • Kualitas
    • Purchase
    Sumber Daya Manusia
    • Karyawan
    • Payroll
    • Rekrutmen
    • Cuti
    • Appraisal
    • Armada
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Otomatisasi Marketing
    • WhatsApp
    • Survei
    Layanan
    • Project
    • Timesheet
    • Planning
    • Appointment
    • Live Chat
    • Helpdesk
    Produktivitas
    • Kecerdasan Buatan (AI)
    • Discuss
    • VoIP
    • IoT
    • Dokumen
    • Pengetahuan
    Aplikasi pihak ketiga Odoo Studio Platform Odoo Cloud
  • 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
    • Manajemen Properti
    • Perkebunan
    • Asosiasi Pemilik Properti
    Konsultansi
    • Firma Akuntansi
    • Odoo Partner
    • Agensi Marketing
    • Firma hukum
    • 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
    • Electronic Store
    • Cleaning Service
    • Layanan HVAC
    Lainnya
    • Organisasi Nirlaba
    • Agen Lingkungan
    • Rental Billboard
    • Fotografi
    • Penyewaan Sepeda
    • Reseller Software
    Telusuri semua Industri ⟶
  • Komunitas
    Belajar
    • Tutorial
    • Dokumentasi
    • Sertifikasi
    • Pelatihan
    • Blog
    • Podcast
    Empower Education
    • Program Edukasi
    • Game Bisnis 'Scale Up!'
    • Kunjungan ke Odoo
    Dapatkan Softwarenya
    • Download
    • Bandingkan Edisi
    • Daftar Rilis
    Kolaborasi
    • Github
    • Forum
    • Acara
    • Terjemahan
    • Menjadi Partner
    • Layanan untuk Partner
    • Daftarkan perusahaan Akuntansi Anda.
    • Program Afiliasi
    Dapatkan Layanan
    • Cari Partner
    • Cari Akuntan
    • Konsultasi
    • Layanan Implementasi
    • Referensi Pelanggan
    • Bantuan
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dapatkan demo
  • Harga
  • Bantuan
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

Can we create custom purchase order name by editing python code or xml

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
purchasedevelopementpythonxmlv14
1 Balas
5183 Tampilan
Avatar
jomin joseph

i want to enable users to create their own purchase order reference instead of the default ones odoo automatically assign when we make purchase order , is this possible? if yes can you please help me achieve this


thank you for your time

0
Avatar
Buang
Avatar
Heifara Matapo
Jawaban Terbai

Hi Jo,

Without dev

In the purchase order, when you type text on vendor reference, the text is in the display name of the purchase order, for example P00014 (THIS A VENDOR REFERENCE). 

The vendor reference is usually used to type the vendor's invoice's number or RFQ's reference.

With dev

If this does not answer your needs, you can do it with only Python. 

1) Create a custom module
2) In  your module ,  add the field doc_name in purchase.order model.
3) Implement/override display_name for model purchase.order to return doc_name.

Once this is done, Odoo will always display doc_name.


I just updated this answer with the code

Python : models.py

class PurchaseOrder(models.Model):
_inherit ='purchase.order'

custom_name = fields.Char()
@api.depends('custom_name')
def _compute_display_name(self):
for this in self:
this.display_name = this.custom_name


This works for all model.

1

Langganan

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
2 sequence combing for multiple company Diselesaikan
purchase python xml sequence v14
Avatar
Avatar
Avatar
2
Okt 23
5613
How to change total amount in purchase qweb report ' , ' in odoo for different currency
purchase python xml qweb v14
Avatar
Avatar
1
Apr 23
6470
How do i change date format in export all or export in purchase module in odoo 14
purchase python export xml v14
Avatar
Avatar
Avatar
2
Jun 22
5941
How to create related fields from purchase order lines to locations stock in odoo 14
purchase python xml python3 v14
Avatar
0
Mei 22
233
To create a a table in any field in odoo
purchase python fields xml v14
Avatar
Avatar
2
Apr 22
6076
Komunitas
  • Tutorial
  • Dokumentasi
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Terjemahan
Layanan
  • Odoo.sh Hosting
  • Bantuan
  • Upgrade
  • Custom Development
  • Edukasi
  • Cari Akuntan
  • Cari Partner
  • Menjadi Partner
Tentang Kami
  • Perusahaan kami
  • Aset Merek
  • Hubungi kami
  • Karier
  • 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) Português română русский язык Slovenský jazyk Slovenščina Español (América Latina) Español Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo adalah software terintegrasi dengan 70+ aplikasi seperti CRM, Akuntansi, Inventaris, Sales, eCommerce, Marketing, POS; plus fitur lokal Indonesia!

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