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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1799
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Jan 23
|
916 | ||
|
2
Mar 24
|
2002 | ||
|
0
Sep 22
|
1898 | ||
|
0
Sep 22
|
1076 | ||
|
1
Nov 22
|
1098 |