Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

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

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

payment provider issues / External ID not found in the system: payment.payment_icon_cc_mastercard

Subscriure's

Get notified when there's activity on this post

This question has been flagged
payment-acquirers
2 Respostes
3768 Vistes
Avatar
Yahya Kassem

hello


I am trying to use payment provider V.16 on Odoo V.17 i Think i have fixed most of the issues but still remening with this problem


 File "/home/odoo/src/odoo/odoo/tools/convert.py", line 39, in 
    safe_eval = lambda expr, ctx={}: s_eval(expr, ctx, nocopy=True)
  File "/home/odoo/src/odoo/odoo/tools/safe_eval.py", line 379, in safe_eval
    raise ValueError('%s: "%s" while evaluating\n%r' % (ustr(type(e)), ustr(e), expr))
ValueError: : "External ID not found in the system: payment.payment_icon_cc_mastercard" while evaluating
"[(6, 0, [ref('payment.payment_icon_cc_mastercard'),ref('payment.payment_icon_cc_visa'),])]"



i think is the problem is happening because of the Data/payment_provider_data.xml in this line




0
Avatar
Descartar
Avatar
Yahya Kassem
Autor Best Answer

I have changed it to 

( from 16 to 17 they changed mastercard and visa to just payment_method_card??)


field name="payment_method_ids"

               eval="[(6, 0, [

                   ref('payment.payment_method_card'),

               ])]"/>

i think it should be like this but i get new error

TypeError: post_init_hook() missing 1 required positional argument: 'registry'


Update 

fixed it by changing int.py

 from post_init_hook(cr, registry) ----> post_init_hook(env)


but not im getting error after getting redircted i get Error call back url is not found


0
Avatar
Descartar
Nikhil Nakrani

why you use post_init_hook change

Yahya Kassem
Autor

Last Update ( hopfully )

I have added some module in the main DB but when i click pay now i get this error

(('bool' object has no attribute 'replace'))

Avatar
Nikhil Nakrani
Best Answer

Hi Yahya Kassem,

version up to 16 use code like (6,0) or (4,0) to add value but in odoo17 change.

you can use like this way

'child_ids': [Command.set([action1.id, action2.id, action3.id, action4.id])],

that means you need to add like this way comma separated if you add more then one.

'groups_id': [Command.set([self.ref('base.group_partner_manager')])]

Thanks.


0
Avatar
Descartar
Yahya Kassem
Autor

I am sorry but i didnt understand So i have to change the XML to
<field name="payment_icon_ids"
eval="[Command.set(6, 0, [ref('payment.payment_icon_cc_mastercard'), ref('payment.payment_icon_cc_visa'),])]"/>

or change the py file?

Nikhil Nakrani

yes its correct add same ass xml file but why you use 6,0 in set tuple

Nikhil Nakrani

<field name="payment_icon_ids" eval="[Command.set([ref('payment.payment_icon_cc_mastercard'), ref('payment.payment_icon_cc_visa')])]"/>

Yahya Kassem
Autor

its not my app actually i don't know why he used 6,0

its an payment gateway that transfer you to the provider website

Nikhil Nakrani

for your information odoo use specific code insert or update or delete data so [6,0] means when you add many2many field add data so [6,0] add your new data in that field and remove existing data.

And Those codes are use previous version like 16,15,14,13,12.
In 17.0 you need to use Command.set()

Yahya Kassem
Autor

Thank you for Explaining i have remove it and change the code to <field name="payment_method_ids" eval="[ref('payment.payment_method_card'),]"/>

Yahya Kassem
Autor

This is the Error message im mentioned up phoneno = self.partner_phone.replace(" ", "").replace("-", "").replace("+", "")
AttributeError: 'bool' object has no attribute 'replace'

Nikhil Nakrani

phoneno = self.partner_phone.replace(" ", "").replace("-", "").replace("+", "")

here in this code partner_phone in not any value means False and you access and try to replace so thats why error occur bool object has no attribute 'replace'

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

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

Registrar-se
Related Posts Respostes Vistes Activitat
Payment provider ( Payment processing failed Expecting value: line 1 column 1 (char 0) )
payment-acquirers
Avatar
Avatar
1
de febr. 24
2621
Computing Signature Hash for New Payment Acquirer
payment-acquirers
Avatar
Avatar
1
de febr. 23
2336
get cart product information in payment.acquirer on odoo13
payment-acquirers
Avatar
0
de maig 21
2327
How to know the field variable for Payment Acquirers's pending message
payment-acquirers v14
Avatar
Avatar
1
de maig 25
4660
Odoo Online Payment Provider
payments payment-acquirers
Avatar
2
d’oct. 23
56
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة 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 és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

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