In sale/sale.py there's two models sale_order and sale_order_line, what's the distinction between these?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- إدارة علاقات العملاء
- e-Commerce
- المحاسبة
- المخزون
- PoS
- Project
- MRP
لقد تم الإبلاغ عن هذا السؤال
Sales Order (sale_order) is the master record for sales where we store Reference, Customer, Address, Date and any relevant data regarding sales. In Sale Order Line (sale_order_line) we specifies the products, qty, unit price etc..The total value of all these sale order line items are shown in sale order.
Hi.
The Sale_order is the base order, model 'sale.order'
The 'sale.order.line' is a joined model (table) what is contain the order relevant items. (product ids, quas, and so on)
You can see the sale_order() columns definition, the sale.order.line is a one2many field of sale_order that is a connection betwwen the two table.
'order_line': fields.one2many('sale.order.line', 'order_id', 'Order Lines', readonly=True, states={'draft': [('readonly', False)]}),
Hi Kit ,
Sale_order is the Master / Header object for the Sales / CRM module
and Sale_order_line , is the Individual line items in a Sales order , i.e. the product and services
with price and quantity you add in to a sales order.
Hope this help !
هل أعجبك النقاش؟ لا تكن مستمعاً فقط. شاركنا!
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
ديسمبر 21
|
2672 | ||
|
0
ديسمبر 21
|
2241 | ||
|
0
أبريل 15
|
4511 | ||
|
2
مارس 15
|
10327 | ||
|
1
مارس 15
|
3875 |
Yes,