I have just created new field ('qty') but key error['qty'] occurred.how can i resolve this problem.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
Make sure you created the field correctly. For the time being, just revert all the modifications you've done and do something as below...
class YourModel(models.Model):
_inherit = 'your.model'
qty = fields.Integer(string='Quantity')
Add this field in your xml file.
After you've done this, goto your apps page and choose your module that you've done modifications. You should be in a position to directly click and upgrade your module.
Restart your server and then come to browser and click on upgrade.
Or in the terminal you can give
./odoo-bin -d your_database_name -u your_module_name
to upgrade your module directly from the terminal.
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden
Odoo Customization Tips: https://www.scoop.it/t/learn-openerp