تخطي للذهاب إلى المحتوى
أودو القائمة
  • تسجيل الدخول
  • جرب مجاناً
  • التطبيقات
    المالية
    • المحاسبة
    • فوترة
    • النفقات
    • جدول البيانات (BI)
    • المستندات
    • توقيع إلكتروني
    المبيعات
    • إدارة علاقات العملاء
    • المبيعات
    • نقطة البيع للمتاجر
    • نقطة البيع للمطاعم
    • الاشتراكات
    • تأجير
    المواقع الإلكترونية
    • أداة بناء المواقع الإلكترونية
    • متاجر إلكترونية
    • مدونة
    • المنتدى
    • دردشة مباشرة
    • التعليم الإلكتروني
    سلسلة التوريد
    • المستودعات
    • التصنيع
    • إدارة دورة حياة المنتج
    • المشتريات
    • الصيانة
    • الجودة
    الموارد البشرية
    • موظفون
    • التوظيف
    • إجازة عمل
    • التقييمات
    • الإحالات
    • تطبيق الأسطول
    التسويق
    • التسويق الإجتماعي
    • التسويق عبر البريد الإلكتروني
    • التسويق عبر الرسائل النصية
    • فعاليات
    • أتمتة التسويق
    • الاستطلاعات
    الخدمات
    • المشاريع
    • الجداول الزمنية
    • الخدمة الميدانية
    • مكتب المساعدة
    • التخطيط
    • مواعيد
    اﻹنتاجية
    • مناقشة
    • الموافقات
    • إنترنت الأشياء "IoT"
    • بروتوكول ربط المحادثات الصوتية عبر الإنترنت
    • المعرفة
    • WhatsApp
    التطبيقات الخارجية ستوديو أودو منصة أودو السحابية
  • قطاعات الأعمال
    البيع بالتجزئة
    • متجر كتب
    • متجر ملابس
    • متجر أثاث
    • متجر بقالة
    • متجر معدات
    • متجر ألعاب
    الطعام والضيافة
    • بار وحانة
    • المطعم
    • مطعم للوجبات السريعة
    • نزل للضيوف
    • موزّع مشروبات
    • فندق
    العقارات
    • وكالة عقارات
    • شركة هندسة معمارية
    • البناء
    • إدارة العقارات
    • العناية بالحدائق
    • اتحاد مُلاّك العقارات
    استشارة
    • مؤسسة محاسبية
    • شريك أودو
    • وكالة تسويقية
    • منشأة قانونية
    • استقطاب المواهب
    • التدقيق والتوثيق
    التصنيع
    • الأقمشة
    • معدني
    • الأثاث
    • الطعام
    • مصنع خمور
    • هدايا الشركات
    الصحة واللياقة البدنية
    • نادي رياضي
    • متجر نظارات
    • مركز لياقة بدنية
    • الممارسون الصحيون
    • صيدلية
    • صالون تصفيف الشعر
    التجارة
    • عامل صيانة
    • الأجهزة والمعدات التقنية ودعمها
    • أنظمة الطاقة الشمسية
    • صانع أحذية
    • خدمات التنظيف
    • خدمات التكييف (HVAC)
    غير ذلك
    • منظمة غير ربحية
    • وكالة بيئية
    • تأجير لوحات إعلانية
    • تصوير
    • تأجير دراجات
    • بائع وسيط للبرمجيات
    تصفح كافة قطاعات الأعمال
  • مجتمع أودو
    تعلم
    • دروس
    • التوثيق
    • شهادات
    • التدريب
    • مدونة
    • بودكاست
    قم بتعزيز التعليم
    • برنامج تعليم
    • Scale UP! لعبة الأعمال
    • قم بزيارة أودو
    احصل على البرنامج
    • تحميل
    • قارنْ الإصدارات
    • إطلاق
    تعاون
    • جيت هاب "Github"
    • المنتدى
    • فعاليات
    • الترجمات
    • كنْ شريكاً
    • خدمات الشركاء
    • سجل مكتب المحاسبة الخاص بك
    احصل على الخدمات
    • اعثر على شريك
    • اعثر على محاسب
    • قابل أحد مرشدي الأعمال
    • خدمات التنفيذ
    • مراجع العملاء
    • الدعم
    • الترقيات
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    الحصول على عرض توضيحي
  • الأسعار
  • المساعدة

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

  • إدارة علاقات العملاء
  • e-Commerce
  • المحاسبة
  • المخزون
  • PoS
  • المشروع
  • MRP
All apps
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
يجب أن تكون مسجلاً حتى تتفاعل مع المجتمع.
كافة المنشورات الأفراد الشارات
علامات التصنيف (عرض الكل)
odoo accounting v14 pos v15
حول هذا المنتدى
المساعدة

bom creation via jsonrpc order of operations

اشتراك

تسلم الإشعارات عندما يكون هناك نشاط في هذا المنشور

لقد تم الإبلاغ عن هذا السؤال
pythonjsonrpcodoo16features
1 الرد
4854 أدوات العرض
الصورة الرمزية
kym watts

Hello,


Im working on some processes that allow an external application author products and their related boms.

I have manufacturing, inventry and variants on as options, in case that makes a difference.


I already have my head around doing CRUD operations via the jsonrpc, i have spent a bunch of time tracing fields to models and this is what i think needs to occur.


product.template ( product.product ) > mrp.bom > a mrp.bom.line per component. 

Do i need to go back to each parent to update it with information, or as long as i add the correct parent id to its respected field the back end will do any additonal links required?


Does using the odoorpc simplify this ?


Appreciate any help anyone can provide here.

Cheers
kym


0
الصورة الرمزية
إهمال
الصورة الرمزية
MUHAMMAD Imran
أفضل إجابة

To create a bill of materials (BOM) using JSON-RPC in Odoo, you will need to follow a similar sequence of steps as outlined above. Here is a more detailed description of the process:


Connect to the JSON-RPC server: You will need to use the jsonrpc module to establish a connection to the JSON-RPC server. You can do this by calling the jsonrpc.ServerProxy function and passing it the URL of the server, as well as any authentication information that is required.


Send an RPC request to create the BOM: Once you have established a connection to the server, you can use the execute_kw method to send an RPC request to create the BOM. This method takes three arguments: the database name, the user id, and the password. You will also need to pass a fourth argument that is a dictionary containing the details of the BOM that you want to create, such as the name and the items that should be included.


Receive an RPC response: The server will respond to your request with an RPC response, which will include the ID of the newly created BOM.


Verify the results: After you have received the RPC response, you can use the read method to retrieve the details of the newly created BOM and verify that it was created as expected.


Close the connection: Once you have finished interacting with the JSON-RPC server, you should close the connection by calling the close method.


Here is an example of how you might create a BOM using JSON-RPC in Odoo:


Copy code

import jsonrpc


# Connect to the JSON-RPC server

server = jsonrpc.ServerProxy('http://localhost:8069/jsonrpc')


# Authenticate and create the BOM

uid = 1

password = 'admin'

database = 'mydatabase'

product_tmpl_id = 5

bom_id = server.execute_kw(database, uid, password, 'mrp.bom', 'create', [{

    'product_tmpl_id': product_tmpl_id,

    'product_qty': 1,

    'type': 'phantom',

    'bom_line_ids': [

        (0, 0, {'product_id': 2, 'product_qty': 1}),

        (0, 0, {'product_id': 3, 'product_qty': 2}),

    ],

}])


# Verify the results

bom = server.execute_kw(database, uid, password, 'mrp.bom', 'read', [bom_id])

print(bom)


# Close the connection

server.close()

0
الصورة الرمزية
إهمال
kym watts
الكاتب

Ah fantastic,
That is good to know that i can create the bom lines in the 'mrp.bom' directly, saves a bit of hassle.

thanks for your help.

هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!

أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!

تسجيل
المنشورات ذات الصلة الردود أدوات العرض النشاط
Add LogNote to Order Delivery using JSON-RPC
python jsonrpc odoo16features
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
يوليو 23
4275
How to solve error 'numpy' has no attribute 'float' in Python
python odoo16features
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
فبراير 23
6410
product.template form name doesnt update تم الحل
jsonrpc Docker odoo16features
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
3
نوفمبر 24
3927
Partner Ledger customize
accounting python odoo16features
الصورة الرمزية
الصورة الرمزية
1
فبراير 24
2748
Error while generating a report in python (Record does not exist or has been deleted) تم الحل
python report odoo16features
الصورة الرمزية
الصورة الرمزية
الصورة الرمزية
2
مايو 23
4307
المجتمع
  • دروس
  • التوثيق
  • المنتدى
مصدر مفتوح
  • تحميل
  • جيت هاب "Github"
  • المشغل الآلي رنبوت
  • الترجمات
خدماتنا
  • استضافة أودو إس إتش
  • الدعم
  • الترقية
  • التطويرات المخصصة
  • التعليم
  • اعثر على محاسب
  • اعثر على شريك
  • كنْ شريكاً
معلومات عنا
  • شركتنا
  • أصول العلامة التجارية
  • اتصلْ بنا
  • الوظائف
  • فعاليات
  • بودكاست
  • مدونة
  • عملاء
  • قانوني • الخصوصية
  • الحماية
الْعَرَبيّة 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

أودو هو عبارة عن مجموعة من تطبيقات الأعمال مفتوحة المصدر التي تغطي جميع احتياجات شركتك، مثل: إدارة علاقات العملاء والتجارة الإلكترونية والمحاسبة والمخزون ونقاط البيع وإدارة المشاريع وما إلى ذلك.

ما يجعل من أودو مميزاً هو هدفه بأن يكون سهل الاستخدام للغاية ومتكاملاً تمامًا في الوقت ذاته.

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