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 | etc.
I'm write code for python to inherit res.partner.
This code is when user click save button to update record, it will set state into draft (state = 'draft') if state = approved.
Any idea or clue to write this code?
_inherit = 'res.partner'
print "write procedure inherit awal"
STATE_SELECTION = [
state = fields.Selection(STATE_SELECTION, 'Status', readonly=True,
help="Draft Record "
"Approved Record. ",
def write(self, vals):
state = 'draft'
return super(res_partner, self).write(vals)
it doesn't work.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 10/18/15, 10:09 AM|
|Seen: 1261 times|
|Last updated: 10/25/15, 1:38 AM|