I am trying to get the quantity of boxes that i deliver, i get it when i use the sale module since i get access to the product_packaging_id value but i don't in the pos therefore if i try to get the delivery slip i get nothing in the number of boxes, i was trying to create a module in order to bring the product_packaging_id and product_packaging_qty in the pos module here is my code:
model: pos_packing.py :
from odoo import models, fields
class PosOrderLineCustom(models.Model): _inherit = 'pos.order.line'
product_packaging_id = fields.Many2one( comodel_name='product.packaging', string="Packaging" )
product_packaging_qty = fields.Float( string="Packaging Quantity" )
and here is my view: pos_packing_view.xml:
point_of_sale.view_pos_pos_form.custom pos.order.line
and some how i am getting an error and it's not working if somebody could help i would appratiate it. Thank you!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- ลูกค้าสัมพันธ์
- e-Commerce
- ระบบบัญชี
- สินค้าคงคลัง
- PoS
- Project
- MRP
คำถามนี้ถูกตั้งค่าสถานะ
622
มุมมอง
สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
|
1
ม.ค. 23
|
2121 | ||
|
2
พ.ย. 19
|
7011 | ||
|
2
มิ.ย. 19
|
10990 | ||
|
1
ก.ย. 23
|
1225 | ||
|
2
มี.ค. 21
|
2333 |