[IMP] point_of_sale: rec_name for report.pos.order
before this commit, on opening the form of report.pos.order model the breadcrump is shown as report.pos.order(1) , ie, model_name id after this commit, the rec_name (order number) is set for the model and clean breadrcump will be shown Part-of: odoo/odoo#126003
This commit is contained in:
@@ -9,6 +9,7 @@ class PosOrderReport(models.Model):
|
||||
_description = "Point of Sale Orders Report"
|
||||
_auto = False
|
||||
_order = 'date desc'
|
||||
_rec_name = 'order_id'
|
||||
|
||||
date = fields.Datetime(string='Order Date', readonly=True)
|
||||
order_id = fields.Many2one('pos.order', string='Order', readonly=True)
|
||||
|
||||
Reference in New Issue
Block a user