date invoce date
This commit is contained in:
parent
abe993ca60
commit
0aeb0132cc
|
|
@ -148,12 +148,14 @@ class SamashtiDashboard(models.AbstractModel):
|
|||
customer = r['partner_id'][-1]
|
||||
quantity = sum(self.env['sale.order'].browse(r['id']).order_line.mapped('product_uom_qty'))
|
||||
weight = str(sum(self.env['sale.order'].browse(r['id']).order_line.mapped('bag_weight')))+" kg"
|
||||
date = str(self.env['sale.order'].invoice_ids.invoice_date)
|
||||
date = self.env['sale.order'].browse(r['id']).invoice_ids.invoice_date
|
||||
invoice = self.env['sale.order'].browse(r['id']).invoice_ids.name
|
||||
|
||||
datas.append({
|
||||
'sale_order': r['name'],
|
||||
'id':r['id'],
|
||||
'weight':weight,
|
||||
'invoice':invoice,
|
||||
'customer':customer,
|
||||
'quantity':quantity,
|
||||
'cost': cost,
|
||||
|
|
|
|||
|
|
@ -176,6 +176,7 @@ export class SamashtiDashboard extends Component {
|
|||
async getSaleColumns(){
|
||||
return[
|
||||
{ title: "Sale Order", dataIndx: "sale_order", width: 100,filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] } },
|
||||
{ title: "Invoice", dataIndx: "invoice", width: 100,filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] } },
|
||||
{ title: "Customer", dataIndx: "customer", width: 280,filter: { type: 'textbox', condition: 'contain', listeners: ['keyup'] } },
|
||||
{ title: "Date", dataIndx: "date", width: 150 },
|
||||
{ title: "Quantity", dataIndx: "quantity", width: 120, dataType: "float", format: "#,###.00",summary: { type: "sum" },align: "right" },
|
||||
|
|
|
|||
Loading…
Reference in New Issue