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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
2
Replies
7553
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Nov 23
|
1821 | ||
|
1
Agu 23
|
2789 | ||
|
0
Mei 23
|
2570 | ||
|
0
Des 22
|
2381 | ||
|
0
Okt 22
|
3552 |