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

Hi,


is it possible to tell Odoo to print specific packaging labels when a package has been finished packing?


e.g. 

Additionally to the Shipping label, i want that Odoo also prints the contents of the box onto a label so that i can also stick it onto the box or i want to print a specific text onto a label, which will be printed out additionaly to the shipping label


Is something like this possible?

Avatar
Verwerfen
Beste Antwort

Define a QWeb report template for your custom label.

py.file

class StockPicking(models.Model):

    _inherit = 'stock.picking'


    @api.multi

    def action_done(self):

        super(StockPicking, self).action_done()

        # Check if the package is done

        for package in self.package_ids:

            if package.is_done:

                # Print custom label

                self.env.ref('your_module.custom_package_label_report').report_action(self)


Avatar
Verwerfen
Autor

cool thank you!

Verknüpfte Beiträge Antworten Ansichten Aktivität
1
Mai 23
1870
1
Okt. 18
4153
1
Jan. 16
3934
1
Aug. 25
694
1
Juli 25
1422