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
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
2
답글
7820
화면
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.
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
0
11월 23
|
2095 | ||
|
1
8월 23
|
3032 | ||
|
0
5월 23
|
2851 | ||
|
0
12월 22
|
2619 | ||
|
0
10월 22
|
3836 |