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 add many2one field in website?

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
ubuntu18ODOO12Python3.7
2 Replies
9722 Tampilan
Avatar
zarchithu470@gmail.com

Hello all,

 Now I want to show many2one field in the website to send backed data.How should I do?Please Kindly guide to me.Your help is highly appreciating.Thanks

0
Avatar
Buang
Niyas Raphy (Walnut Software Solutions)

See this video explaining the same: https://www.youtube.com/watch?v=-fCSsNxGYjk&list=PLqRRLx0cl0hofGW8Nn9RH8Y3gtHIemlC8&index=7

Avatar
MUHAMMAD Imran
Jawaban Terbai
Try this
<div class="form-group form-field o_website_form_required_custom">
<div class="col-md-12" style="margin-bottom:10px;">
<label class="col-md-offset-1 col-md-1 col-sm-4 control-label" style="padding-top: 8px;" for="search">CHAIR*</label>
<div class="col-md-5 col-sm-8">
<select id="chair" required="True" class="form-control" style="width: 432px; height: 35px;">
<t t-foreach="chair_details" t-as="chair">
<option t-att-value="chair.id" t-esc="chair.name"/></t>
</select>
</div>
<div class="col-md-5" style="padding-left:0px !important;">
<p style="font-size: 16px;padding-top: 9px;">( Select the chair that free in the preferred time )</p>
</div>
</div>
</div>
4
Avatar
Buang
zarchithu470@gmail.com
Penulis

thanks Imran, It's work fine.

MUHAMMAD Imran

You are Most Welcome

Avatar
SAAD
Jawaban Terbai

Hello Muhammad i need help here, i had added a many2one field ('stock.warehouse') to website sale ( payment phase ) , but i still could not get the selected value by the user.


this is my code:

----> python

def _get_shop_payment_values(self, order, **kwargs):
sup = super(WebsiteEcommerce, self)._get_shop_payment_values(order)
company_id = request.env.user.company_id
sup['jours'] = 'jours'
sup['livraison_domicile'] = company_id.livraison_domicile
sup['livraison_collect'] = company_id.livraison_collect
   sup['warehouses']=request.env['stock.warehouse'].sudo().search([])

return sup

----> xml:

       <div class="form-group" attrs="{'inivisible':[('type_livraison','=','domicile')]}">
    <label for="warehouse" class="control-label">Magasin</label>
<div class="col-md-5 col-sm-8">
<select id="magasin" required="True" class="form-control" name="magasin"
style="width: 432px; height: 35px;">
<t t-foreach="warehouses" t-as="warehouse">
<option t-att-value="warehouse.id" t-esc="warehouse.name"/>
</t>
</select>
</div>
</div>

getting the selected value

    @http.route(['/shop/confirmation'], type='http', auth="public", website=True, sitemap=False)

def payment_confirmation(self, **post):
print('post',**post)
order = request.website.sale_get_order(force_create=1)
print('current order', order)
values = {key: post.get(key) for key in ('magasin')}
print("VALLLLLLL", values)

# print(post.get('livraison_domicile'))
return super(WebsiteEcommerce, self).payment_confirmation()


but this still not working , i appreciate your help.
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
how to save backend record using website form with multiple selection values. v12
dropdownlist ODOO12
Avatar
Avatar
1
Jul 24
5394
AttributeError: module 'PyPDF2' has no attribute 'filters' Diselesaikan
odoo12 Python3.7
Avatar
Avatar
Avatar
Avatar
3
Agu 22
20113
How to hide contacts menu in Odoo 12 (only users in a cerain group will be allowed to se it)? Diselesaikan
menu ODOO12
Avatar
Avatar
1
Mar 22
4067
how to print subtotal of a specific product in report
odoo ODOO12
Avatar
0
Jan 21
1859
while sending messages in communication(mail messages) i am getting 403 forbidden error v12.
comments ODOO12
Avatar
0
Mei 20
4222
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