mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] refactoring default_ pricelist and restriction
This commit is contained in:
@@ -463,7 +463,7 @@ class HotelFolio(models.Model):
|
||||
addr = self.partner_id.address_get(['invoice'])
|
||||
pricelist = self.partner_id.property_product_pricelist and \
|
||||
self.partner_id.property_product_pricelist.id or \
|
||||
self.env.user.hotel_id.pricelist_id.id
|
||||
self.env.user.hotel_id.default_pricelist_id.id
|
||||
values = {
|
||||
'pricelist_id': pricelist,
|
||||
'payment_term_id': self.partner_id.property_payment_term_id and self.partner_id.property_payment_term_id.id or False,
|
||||
|
||||
Reference in New Issue
Block a user