تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1221 أدوات العرض

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?

الصورة الرمزية
إهمال
أفضل إجابة

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)


الصورة الرمزية
إهمال
الكاتب

cool thank you!

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
مايو 23
1861
1
أكتوبر 18
4131
1
يناير 16
3922
1
أغسطس 25
681
1
يوليو 25
1404