Skip to content

Commit

Permalink
[IMP] Bug OCA#266 False ETA Error
Browse files Browse the repository at this point in the history
[IMP] Bug OCA#265 Linked Location Search Error

[IMP] Bug OCA#272 Rate Not Declared

[IMP] Bug OCA#263 equipment_count Wrong

[IMP] Bug OCA#277 Worker Pricelists Computed Wrong

[IMP] Flake8 + Remove Debug
  • Loading branch information
osi-scampbell authored and patrickrwilson committed Jul 13, 2021
1 parent f7cdb59 commit 7ae30b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fieldservice_purchase/models/fsm_person.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ class FSMPerson(models.Model):
def _compute_pricelist_count(self):
for worker in self:
worker.pricelist_count = self.env['product.supplierinfo'].\
search_count([('id', '=', worker.id)])
search_count([('name', '=', worker.name)])

@api.multi
def action_view_pricelists(self):
for worker in self:
pricelist = self.env['product.supplierinfo'].search(
[('id', '=', worker.id)])
[('name', '=', worker.name)])
action = self.env.ref(
'product.product_supplierinfo_type_action').read()[0]
if len(pricelist) == 1:
Expand Down

0 comments on commit 7ae30b6

Please sign in to comment.