Hi, i want to add new field on product to show it on pos receipt in odoo v14, any help please
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
7548
Vistas
Hi,
First add the field by inheriting 'product.product' model.
class Product(models.Model):
_inherit = 'product.product'
new_field = fields.Char()
Then write Javascript function to add this new field to PoS model.
odoo.define('module_name.NewField', function(require){ |
odoo.define('module_name.receipt', function(require){ |
Regards
Thanks...solved :)
First add the field by inheriting 'product.product' model.
this code is in which file?
Then write Javascript function to add this new field to PoS model.
this code is into models.js file?
Sorry but i'm a newby.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
nov 23
|
1814 | ||
|
1
ago 23
|
2781 | ||
|
0
may 23
|
2567 | ||
|
0
dic 22
|
2379 | ||
|
0
oct 22
|
3547 |