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.

0

How I can create an internal note in odoo by code?

By
Michael Marroquin
on 11/1/16, 10:49 PM 138 views

How I can create an internal note in odoo by code python in model stock.picking ?

4

1- Create a string for 'Internal note' using string functions and the data you need to include in 'internal note'
2- Assign the string to internal note field (self.note = <your string>)

2

Nilmar Shereef

--Nilmar Shereef--
811
| 4 3 7
Calicut, India
--Nilmar Shereef--

Python Developer. Android Developer. .Net Developer

Nilmar Shereef
On 11/2/16, 2:44 AM

If you are trying to give some values to notes automatically in every records, Then please try code  below:


@api.one   

@api.depends('mention_here_the depends_fields')   

def _stuff_note(self):

     <Write stuff method here, say x & y>
     stuff_to_notes = str(x) + str(y)
     self.note = stuff_to_notes


Hope this may help you. Thanks.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

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

Question tools

1 follower(s)

Stats

Asked: 11/1/16, 10:49 PM
Seen: 138 times
Last updated: 11/11/16, 6:59 AM