Odoo Aide

0

0
3 Answers
-1
thanhps
27/05/2019 05:53

Here is the correct code:

@api.depends('picking_ids')
def _compute_delivery_done(self):
done = True
for order in self:
if order.picking_ids:
for picking in order.picking_ids:
if picking.state != 'done':
done = False
self.delivery_done = done



Poser une question
Writer
Étiquettes
Keep Informed
1 Abonné(e)s
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now