Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ

I am looking for floor wise price list automatic selection like VIP area with have different price for each product. I cant find any inbuild solution so i started working on new module development but below code is not working. 


model file :- 
class RestaurantFloor(models.Model):
_inherit = 'restaurant.floor'
pricelist_id = fields.Many2one('product.pricelist', string='Price List', required=True)


class RestaurantOrder(models.Model):
_inherit = 'sale.order'
floor_id = fields.Many2one('restaurant.floor', string='Floor')

@api.onchange('floor_id')
def _onchange_floor_id(self):
if self.floor_id:
self.pricelist_id = self.floor_id.pricelist_id


view :- 



Can someone please guide me. 


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ต.ค. 24
1750
0
เม.ย. 24
1986
0
เม.ย. 24
1633
3
เม.ย. 24
6291
Assign groups แก้ไขแล้ว
1
ม.ค. 25
6230