Skip to content

Commit

Permalink
[Karthi] | BAH-3712 | Refactor. Wrong locations are mapped to product…
Browse files Browse the repository at this point in the history
…s creation on Odoo via API issue has been fixed. (#112)
  • Loading branch information
karthikeyansp91 authored Mar 23, 2024
1 parent 5ef184e commit 250f36a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions bahmni_api_feed/models/drug_data_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ def _fill_drug_object(self, drug_from_feed, drug_ids_from_db):
drug["list_price"] = list_price
drug["sale_ok"] = 1
drug["purchase_ok"] = 1
drug["property_stock_production"] = 1
drug["property_stock_inventory"] = 1
return drug

@api.model
Expand Down
2 changes: 0 additions & 2 deletions bahmni_api_feed/models/reference_data_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ def _fill_data(self, vals, category=None):
data["sale_ok"] = vals.get("is_active")
data["purchase_ok"] = False
data["type"] = "service"
data["property_stock_inventory"] = 1
data["property_stock_production"] = 1
return data

@api.model
Expand Down

0 comments on commit 250f36a

Please sign in to comment.