تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
953 أدوات العرض

Hello;

I have created a shop and when I want to process to the checkout I would like to rename title "Paiement"

How can I rename the ''paiement'' in edite mode i cannot do that 

Do you know the solution ?


 

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Where can I find the  the _get_checkout_step_list method in odoo please :) ?

الصورة الرمزية
إهمال
أفضل إجابة

Are you using Odoo online or a local installation?

I've trying to solve this through Edit Mode and I could not get it.

الصورة الرمزية
إهمال
الكاتب

I am using Odoo online , Yes it is impossible with edit mode

أفضل إجابة

Hi,


You can rename the 'paiement' step by overriding the _get_checkout_step_list method in your custom module. Here’s how you can do it:


class Website(models.Model):

_inherit = "website"


def _get_checkout_step_list(self):

steps = super()._get_checkout_step_list()

for step in steps:

xmlids, step_info = step

if 'website_sale.payment' in xmlids:

step_info['name'] = _lt("Payment Information")

break

return steps


Replace "Payment Information" with any name you prefer.


Hope it helps

الصورة الرمزية
إهمال

Sorry, but how they can implement this solution to their problem? They are asking about it using the "Edit Mode" and I don't know if they have the technical expertise to make this modification.

BTW, I tried using only the Edit Mode and I was not able to achieve satisfactory results.

الكاتب

Where can I find the the _get_checkout_step_list method in odoo please :) ?

المنشورات ذات الصلة الردود أدوات العرض النشاط
0
أغسطس 25
775
1
أغسطس 25
485
2
يوليو 25
1515
2
يوليو 25
747
2
يونيو 25
1330