跳至内容
菜单
此问题已终结
3 回复
931 查看

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
8月 25
622
1
8月 25
359
2
7月 25
1467
2
7月 25
687
2
6月 25
1267