Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
5728 Ansichten

Version: Odoo 12 CE

When I go to Lots/Serial numbers I can see the lots and can print a Traceability Report, but I would like to modify it to show instead of Vendors, show the actual partner name, and instead of customer show the name of the partner. I cannot find which view is used to print this, does anyone know?

Avatar
Verwerfen

Hello Talmid,

For this Funtionality Customization is needed.

Regards,

Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

Beste Antwort

 Hello Talmid,

    I have the solution for your problem if you're still need it. I created a modul to solve this problem and it's working proprely, I have a little issu to add the partner to the header template, but i'll fixe it soon.

that's the code a added.

@api.model
def _get_partner(self, move_line):
partner = ''
partner_id = False
picking_id = move_line.picking_id or move_line.move_id.picking_id
if picking_id:
partner_id = picking_id.partner_id.id
partner = picking_id.partner_id.name
return partner

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Dez. 19
3249
1
Okt. 20
3937
3
Juni 19
3899
2
Jan. 19
6329
4
Jan. 24
14095