How to migrate/import hundreds of Gift Cards from another system to Odoo using existing gift cards codes?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- Project
- MRP
신고된 질문입니다
1
회신
3368
화면
Since codes for new gift cards are automatically created in a read-only field, the only way to import codes is to
1) remove the read-only functionality with a customization.
from odoo import models, fields, api
class GiftCard(models.Model):
_inherit = "gift.card"
code = fields.Char(default=lambda x: x._generate_code(), required=True, readonly=False, copy=False)
2) import
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
0
5월 25
|
2300 | ||
|
2
3월 24
|
3282 | ||
|
0
9월 22
|
4098 | ||
|
0
9월 22
|
2049 | ||
|
1
11월 22
|
2479 |