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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
1
Responder
3096
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
may 25
|
2028 | ||
|
2
mar 24
|
3055 | ||
|
0
sept 22
|
3646 | ||
|
0
sept 22
|
1814 | ||
|
1
nov 22
|
2148 |