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

Error in the creation of RFQ

Langganan

Dapatkan notifikasi saat terdapat aktivitas pada post ini

Pertanyaan ini telah diberikan tanda
errorpurchase_orderv14
2 Replies
4512 Tampilan
Avatar
Bruno Rocha

Hello,

I´m getting this error, and I don´t have a clue what trigger it.

Error:

Odoo Server Error


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch

    result = request.dispatch ()

  File "/home/odoo/src/odoo/odoo/http.py", line 683, in dispatch

    result = self._call_function (** self.params)

  File "/home/odoo/src/odoo/odoo/http.py", line 359, in _call_function

    return checked_call (self.db, * args, ** kwargs)

  File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper

    return f (dbname, * args, ** kwargs)

  File "/home/odoo/src/odoo/odoo/http.py", line 347, in checked_call

    result = self.endpoint (* a, ** kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 912, in __call__

    return self.method (* args, ** kw)

  File "/home/odoo/src/odoo/odoo/http.py", line 531, in response_wrap

    response = f (* args, ** kw)

  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1377, in call_kw

    return self._call_kw (model, method, args, kwargs)

  File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1369, in _call_kw

    return call_kw (request.env [model], method, args, kwargs)

  File "/home/odoo/src/odoo/odoo/api.py", line 397, in call_kw

    model.flush ()

  File "/home/odoo/src/odoo/odoo/models.py", line 5436, in flush

    self.recompute ()

  File "/home/odoo/src/odoo/odoo/models.py", line 5895, in recompute

    process (field)

  File "/home/odoo/src/odoo/odoo/models.py", line 5879, in process

    field.recompute (recs)

  File "/home/odoo/src/odoo/odoo/fields.py", line 1153, in recompute

    self.compute_value (recs)

  File "/home/odoo/src/odoo/odoo/fields.py", line 1175, in compute_value

    records._compute_field_value (self)

  File "/home/odoo/src/odoo/addons/base_automation/models/base_automation.py", line 370, in _compute_field_value

    pre = {action: action._filter_pre (records) for action in actions}

  File "/home/odoo/src/odoo/addons/base_automation/models/base_automation.py", line 370, in <dictcomp>

    pre = {action: action._filter_pre (records) for action in actions}

  File "/home/odoo/src/odoo/addons/base_automation/models/base_automation.py", line 210, in _filter_pre

    return records.sudo (). filtered_domain (domain) .with_env (records.env)

  File "/home/odoo/src/odoo/odoo/models.py", line 5311, in filtered_domain

    value_esc = value.replace ('_', '?'). replace ('%', '*'). replace ('[', '?')

Exception


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo/http.py", line 639, in _handle_exception

    return super (JsonRequest, self) ._ handle_exception (exception)

  File "/home/odoo/src/odoo/odoo/http.py", line 315, in _handle_exception

    raise exception.with_traceback (None) from new_cause

AttributeError: 'int' object has no attribute 'replace'

0
Avatar
Buang
Sandip Mangukiya

Hi Bruno, if you are using vanilla (without any customization) odoo version, I would recommend you to raise an issue w/ Odoo at https://github.com/odoo/odoo/issues or official support channel from odoo (odoo.com/help).

Make sure you provide exact reproducible steps. As it seems coming from base_automation module.

Thanks

Avatar
Begineer
Jawaban Terbai

Hi, 

 In your code the variable value is of the datatype integer and .replace can be used only for the datatype string
Try with,
value_esc = str(value).replace ('_', '?'). replace ('%', '*'). replace ('[', '?')

Thanks

0
Avatar
Buang
Avatar
Bruno Rocha
Penulis Jawaban Terbai

[update]

So, I figure the source of the error is a automated action to send a email based on a value I have. @ Sandip Mangukiya I have follow up with Odoo support for them to help me out.

@Karthikeyan N R I´m using Studio and I have 3 options for evaluation type available: Value, Reference and Pyton expression so I think is on the Pyton behind that .replace are being called. I will give it a shot changing how I do it. The odd part is the database was running for 2/3 weeks and now the error pop up out of nowhere.

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
RECEIVE PRODUCTS NOT SHOWING ODOO 14 Diselesaikan
purchase_order v14
Avatar
Avatar
1
Nov 22
3232
Purchase_all_shipments in v14 ?
purchase_order v14
Avatar
0
Apr 22
2386
TypeError: Many2many fields newmodule.partner.channel_ids and res.partner.channel_ids use the same table and columns
error v14
Avatar
Avatar
Avatar
2
Agu 21
8426
[ODOO 14] Error creating new sale order line Diselesaikan
error v14
Avatar
Avatar
2
Jul 21
4937
could not determine which collation to use for view column "cost_type" error in odoo 14
error v14
Avatar
Avatar
1
Nov 20
5064
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