Hey, I need to encode a file to base64 to store it as an attachment, however base64 module is not available in server actions, how to process?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
2
Respostas
2727
Visualizações
Hello, can explain on detail how you could use base64 module on server actions.
Regards.
Well as you can't close or delete forum posts (wtf) heres the strange answer:
return {
'uid': self._uid,
'user': self.env.user,
'time': time,
'datetime': datetime,
'dateutil': dateutil,
'timezone': timezone,
'b64encode': base64.b64encode,
'b64decode': base64.b64decode,
}
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se