|
@@ -9,6 +9,18 @@ class res_users(models.Model):
|
|
|
|
|
|
jwt_token = fields.Char(string = 'JWT Authentication Token');
|
|
|
|
|
|
+ def dump(self):
|
|
|
+ return {
|
|
|
+ 'id': self.id,
|
|
|
+ 'name': self.name,
|
|
|
+ 'login': self.login,
|
|
|
+ 'email': self.email,
|
|
|
+ 'image_small': self.image_small,
|
|
|
+ 'image_medium': self.image_medium,
|
|
|
+ 'company_id': self.company_id.id,
|
|
|
+ 'partner_id': self.partner_id.id
|
|
|
+ }
|
|
|
+
|
|
|
'''
|
|
|
'''
|
|
|
class res_partner(models.Model):
|