|
@@ -17,6 +17,8 @@ class pos_sale_report(models.Model):
|
|
|
'product.template', string='Producto', readonly=True)
|
|
|
user_id = fields.Many2one(
|
|
|
'res.users', string='User', readonly=True) # Add this line for user_id
|
|
|
+ partner_id = fields.Many2one(
|
|
|
+ 'res.partner', string='Cliente', readonly=True)
|
|
|
# company_id = fields.Many2one(
|
|
|
# 'res.company', string='Company', readonly=True)
|
|
|
origin = fields.Char(string='Origin', readonly=True)
|
|
@@ -61,7 +63,7 @@ class pos_sale_report(models.Model):
|
|
|
LEFT JOIN res_users AS users
|
|
|
ON users.id = invoice.user_id
|
|
|
LEFT JOIN res_partner AS partner
|
|
|
- ON partner.id = invoice.partner_id
|
|
|
+ ON partner.id = invoice.partner_id
|
|
|
LEFT JOIN product_product AS product
|
|
|
ON product.id = invoice_line.product_id
|
|
|
LEFT JOIN product_template AS template
|