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:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
7623
瀏覽次數
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
|
1909 | ||
|
1
8月 23
|
2867 | ||
|
0
5月 23
|
2654 | ||
|
0
12月 22
|
2468 | ||
|
0
10月 22
|
3667 |