Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

Parse partner_id from sales order to manufacturing order

Odebírat

Get notified when there's activity on this post

This question has been flagged
manufacturingcustomerpartner_idsales.order
3 Odpovědi
7399 Zobrazení
Avatar
Ray

Hi,

When I create a sales order, we have set it up to produce a manufacturing order automatically using some products with a bill of materials.

I am trying to display the customer name on our kanban view on our manufacturing pages, however I can not find a way to parse the partner_id value from sales.order to the manufacturing page.

There is a default "origin" field set up with a reference to the Sales order id number, however this is not a hyperlink - just text.

If anyone could offer support that would be fantastic.

1
Avatar
Zrušit
Avatar
Alex Lyngsoe
Nejlepší odpověď

Take a look at this v11 module: https://apps.odoo.com/apps/modules/11.0/mrp_sale_info/

Let me know if you need it for v12, which i can provide for you.

0
Avatar
Zrušit
Ray
Autor

Hi, we looked at this before but it was only a v11 module. It would be perfect for what we are looking for! If you could provide v12 that would be fantastic!

Alex Lyngsoe

Hi Ray. If you share here your github username, i will give you access to the module. The module is provided "As is". Please provide your feedback on the module to me afterwards, as we have only had little testing.

Rıza Gökay Kıvırcıoğlu

This module can't set the sale_order_id if there is any reordering rule on the product because the procurement_group_id.sale_id is empty when this is the scenario. Can you guide me about this scenario.

Avatar
Anoop Menon
Nejlepší odpověď

in Odoo 12 there is a method called 

def _run_manufacture(self, product_id, product_qty, product_uom, location_id, name, origin, values): 

defined in mrp module stock.rules.py file.

override this method , in the values parameter, you will be able to find a fileld called 'sale_line_id' this is the sale line from which this MO came from  (this value wont be present if it is not created from a sale order eg: orderpoint created MO)

declare a field in mrp.production with name sale_partner_id and update the values in this method with {'partner_id': sale_line_id.order_id.partner_id.id}

this would solve your problem


5
Avatar
Zrušit
Ray
Autor

Hi, thank you for your response. I am having trouble following your instructions - I have added "sale_line_id" to the argument list for the _run_manufacture method ( def _run_manufacture(......,values, sale_line_id). I have done "settings -> technical -> models -> mrp.production -> add a line' and added "partner_id" as a custom field.I am not sure where I can "update the values in this method". Could you explain further please? Kind regards

Rıza Gökay Kıvırcıoğlu

If any there is a defined re-ordering rule for the product _run_manufacture is being called with orderpoint instead of sale.order so in the values there is only "orderpoint_id". I need to find the reference between an orderpoint and sale order which i could not find.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
how to generate manufacturing from a sales order? Vyřešeno
manufacturing sales.order
Avatar
Avatar
1
čvc 18
11017
Prefill sales order with customer data Vyřešeno
customer sales.order prefill
Avatar
Avatar
Avatar
2
srp 24
1771
ver14 : How can generate automatic manufacturing order from confirmed Saled order in ver 14? Vyřešeno
manufacturing mrp sales.order
Avatar
Avatar
Avatar
Avatar
Avatar
4
říj 21
11236
SO -> MO: do not confirm MO automatically
manufacturing v7 sales.order
Avatar
0
čvc 16
4416
Display Customer Name on Manufacturing Order? Vyřešeno
manufacturing customer name
Avatar
1
kvě 15
5138
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now