|
@@ -135,10 +135,10 @@ class PosSales(http.Controller):
|
|
|
'name': customer.name,
|
|
|
'displayName': customer.display_name,
|
|
|
'imageMedium': customer.image_medium,
|
|
|
- 'ruc': customer.ruc,
|
|
|
- 'phone': customer.phone,
|
|
|
- 'mobile': customer.mobile,
|
|
|
- 'email': customer.email
|
|
|
+ 'ruc': customer.ruc or None,
|
|
|
+ 'phone': customer.phone or None,
|
|
|
+ 'mobile': customer.mobile or None,
|
|
|
+ 'email': customer.email or None
|
|
|
} for customer in request.env['res.partner'].search([('customer', '=', True), ('active', '=', True)])]
|
|
|
|
|
|
'''
|
|
@@ -249,7 +249,7 @@ class PosSales(http.Controller):
|
|
|
customer = request.env['res.partner'].create({
|
|
|
'name': kw.get('name'),
|
|
|
'ruc': kw.get('ruc'),
|
|
|
- 'phone': kw.get('phone'),
|
|
|
+ 'mobile': kw.get('mobile'),
|
|
|
'customer': True
|
|
|
})
|
|
|
|
|
@@ -258,9 +258,10 @@ class PosSales(http.Controller):
|
|
|
'name': customer.name,
|
|
|
'displayName': customer.display_name,
|
|
|
'imageMedium': customer.image_medium,
|
|
|
- 'phone': customer.phone,
|
|
|
- 'mobile': customer.mobile,
|
|
|
- 'email': customer.email
|
|
|
+ 'ruc': customer.ruc or None,
|
|
|
+ 'phone': customer.phone or None,
|
|
|
+ 'mobile': customer.mobile or None,
|
|
|
+ 'email': customer.email or None
|
|
|
}
|
|
|
|
|
|
'''
|