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

Valuation Layer met Nul-waarden aanpassen naar product-kostprijswaarden

Avatar
Maarten Bressers
Avatar
Negeren
1 Antwoord
0
Avatar
Maarten Bressers
Beste antwoord

server action: op model "stock.valuation.layer"

Python expression:

for r in records:
  price = r.product_id.standard_price
  qty = r.quantity
  
  r.write({
    'value': qty * price,
    'unit_cost': price,
  })



Avatar
Negeren