[WIP] refactoring default_ pricelist and restriction

This commit is contained in:
Pablo
2019-09-09 15:55:12 +02:00
parent 2fc5a5ad05
commit f68528b929
12 changed files with 24 additions and 56 deletions

View File

@@ -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,