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
Avatar

Maarten Bressers

--Maarten Bressers--

2534
| 2 1 2
Oisterwijk, Nederland
--Maarten Bressers--
Maarten Bressers
Op 25-05-20 13:12




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})


Blijf geïnformeerd

Over deze community

This is a forum for internal use only... Lees de regels

Vraag hulpmiddelen

3 volger(s)

Statistieken

Gevraagd: 25-05-20 13:08
Gezien: 221 keer
Laatst bijgewerkt: 25-05-20 13:13