[FIX] point_of_sale: display only once a field
location_id and stock_location_id are both containing the same location. Keep only one Closes #26297
This commit is contained in:
committed by
Martin Trigaux
parent
80879132c8
commit
53233b41a8
@@ -34,7 +34,6 @@ class PosOrderReport(models.Model):
|
|||||||
invoiced = fields.Boolean(readonly=True)
|
invoiced = fields.Boolean(readonly=True)
|
||||||
config_id = fields.Many2one('pos.config', string='Point of Sale', readonly=True)
|
config_id = fields.Many2one('pos.config', string='Point of Sale', readonly=True)
|
||||||
pos_categ_id = fields.Many2one('pos.category', string='PoS Category', readonly=True)
|
pos_categ_id = fields.Many2one('pos.category', string='PoS Category', readonly=True)
|
||||||
stock_location_id = fields.Many2one('stock.location', string='Warehouse', readonly=True)
|
|
||||||
pricelist_id = fields.Many2one('product.pricelist', string='Pricelist', readonly=True)
|
pricelist_id = fields.Many2one('product.pricelist', string='Pricelist', readonly=True)
|
||||||
session_id = fields.Many2one('pos.session', string='Session', readonly=True)
|
session_id = fields.Many2one('pos.session', string='Session', readonly=True)
|
||||||
|
|
||||||
@@ -62,7 +61,6 @@ class PosOrderReport(models.Model):
|
|||||||
p.product_tmpl_id,
|
p.product_tmpl_id,
|
||||||
ps.config_id,
|
ps.config_id,
|
||||||
pt.pos_categ_id,
|
pt.pos_categ_id,
|
||||||
pc.stock_location_id,
|
|
||||||
s.pricelist_id,
|
s.pricelist_id,
|
||||||
s.session_id,
|
s.session_id,
|
||||||
s.invoice_id IS NOT NULL AS invoiced
|
s.invoice_id IS NOT NULL AS invoiced
|
||||||
@@ -76,7 +74,6 @@ class PosOrderReport(models.Model):
|
|||||||
LEFT JOIN product_template pt ON (p.product_tmpl_id=pt.id)
|
LEFT JOIN product_template pt ON (p.product_tmpl_id=pt.id)
|
||||||
LEFT JOIN uom_uom u ON (u.id=pt.uom_id)
|
LEFT JOIN uom_uom u ON (u.id=pt.uom_id)
|
||||||
LEFT JOIN pos_session ps ON (s.session_id=ps.id)
|
LEFT JOIN pos_session ps ON (s.session_id=ps.id)
|
||||||
LEFT JOIN pos_config pc ON (ps.config_id=pc.id)
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def _group_by(self):
|
def _group_by(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user