How I can create an internal note in odoo by code python in model stock.picking ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilité
- Inventaire
- PoS
- Project
- MRP
Cette question a été signalée
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>)
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.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire