Tips and Tricks (internal only)

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

Transport/vervoers/afleverkosten activeren na levering (automatic actions)


Avatar
Negeren
1 Antwoord
0
Beste antwoord




Filter voor bewerking:

[[u'picking_type_code', u'=', u'outgoing'], [u'state', u'!=', u'done'], [u'state', u'in', [u'assigned', u'partially_available']]]

 

Filter na bewerking:

[[u'picking_type_code', u'=', u'outgoing'], [u'state', u'=', u'done']]


Python Code:

env['sale.order.line'].search([('product_id.id', '=' , '8663'),('order_id.id', '=', record.sale_id.id)]).write({'qty_delivered': 1})


Python Code: Uitgebreide zoek op meerdere product id:

env['sale.order.line'].search([('order_id.id', '=', record.sale_id.id), '|', '|', '|', '|', '|', '|',

('product_id.id', '=' , '6813'),

('product_id.id', '=' , '6814'),

('product_id.id', '=' , '8663'),

('product_id.id', '=' , '7011'),

('product_id.id', '=' , '7013'),

('product_id.id', '=' , '7014'),

('product_id.id', '=' , '7002')

]).write({'qty_delivered': 1})

Avatar
Negeren