Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

How to edit font style of commented code in answer [Closed]

By
Jinesh
on 2/3/16, 9:49 AM 247 views

The Question has been closed

by
Keyur
on 02/04/2016 00:47:46

I answer for a question with some sample code. But how to write code in box.

This is the code I answered:

@api.multi

def name_get(self):

    res = []

    for value in self:

        res.append([value.id, "%s %s %s" % (value.name, value.middle_name, value.last_name)])

    return res


I want this to be look like as follows:

@api.multi

def name_get(self):

    res = []

    for value in self:

        res.append([value.id, "%s %s %s" % (value.name, value.middle_name, value.last_name)])

    return res

1

Keyur

--Keyur--
1165
| 4 4 8
Ahmedabad, India
--Keyur--

Odoo Expert

Keyur
On 2/4/16, 12:38 AM

Hi Jinesh,

You can format your code using Code style.

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/3/16, 9:49 AM
Seen: 247 times
Last updated: 2/4/16, 12:47 AM