mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] Channel Connector: Import Pricelist
This commit is contained in:
@@ -25,10 +25,10 @@ class IrDefault(models.Model):
|
||||
fixed_price = pitem.fixed_price
|
||||
room_type = room_type_obj.search([
|
||||
('product_id.product_tmpl_id', '=', product_tmpl_id),
|
||||
('date_start', '>=', fields.Date.today())
|
||||
], limit=1)
|
||||
room_pr_cached_obj.create({
|
||||
'room_type_id': room_type.id,
|
||||
'date': date_start,
|
||||
'price': fixed_price,
|
||||
})
|
||||
if room_type:
|
||||
room_pr_cached_obj.create({
|
||||
'room_id': room_type.id,
|
||||
'date': date_start,
|
||||
'price': fixed_price,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user