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
返信
3234
ビュー
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
|
2152 | ||
|
2
3月 24
|
3154 | ||
|
0
9月 22
|
3931 | ||
|
0
9月 22
|
1917 | ||
|
1
11月 22
|
2312 |