minor fix list_price

This commit is contained in:
wilsongomez 2022-08-02 09:47:08 -05:00
parent 31f1f516f8
commit 95d7e2da87
1 changed files with 2 additions and 1 deletions

View File

@ -2415,7 +2415,8 @@ class AppWindow(FrontWindow):
}
if self.salesman:
to_create.update({'salesman': self.salesman['id']})
if self.enviroment != 'restaurant' and self._config.get('use_price_list'):
self.field_list_price.set_from_id(self.shop['price_list']['id'])
self._sale = self.Sale.new_sale(to_create)
self.store.set(self._sale)