Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2064 Visualizzazioni

hi,

i am using odoo Ev15,  

in POS > Reporting > Order report

i want to remove cashier name from Order analysis report

which is showing Employee name with POS name on below report


Avatar
Abbandona
Risposta migliore

Hello Muhammad Usman Anwar,

Default odoo has name_get method written in pos.config model which display name of record by concate of name of pos.config and last session user name.

we can  override name_get method to display only name of config instead of combination with last session user name as follow.

class PosConfig(models.Model):
    _inherit = 'pos.config'

    def name_get(self):
        result = []
        for config in self:
            result.append((config.id, "%s" % (config.name)))
        return result



Thanks & Regards,



CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat



Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
mag 24
1124
0
lug 24
1272
0
mag 24
31
5
gen 18
9731
1
giu 21
18077