mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD] Button service on day
This commit is contained in:
@@ -34,6 +34,9 @@ class HotelServiceLine(models.Model):
|
||||
|
||||
@api.depends('day_qty', 'service_id.price_total')
|
||||
def _compute_price_total(self):
|
||||
"""
|
||||
Used to reports
|
||||
"""
|
||||
for record in self:
|
||||
record.price_total = (record.service_id.price_total * record.day_qty) / record.service_id.product_qty
|
||||
|
||||
|
||||
Reference in New Issue
Block a user