[tryton-debian-vcs] tryton-modules-health-stock branch upstream updated. upstream/3.0.1-1-gc4302b5
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Aug 10 19:16:36 UTC 2016
The following commit has been merged in the upstream branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-health-stock.git;a=commitdiff;h=upstream/3.0.1-1-gc4302b5
commit c4302b5dffbe2b5a5be5cbe737ee8f84d4760f5a
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Wed Aug 10 18:49:45 2016 +0200
Adding upstream version 3.0.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/PKG-INFO b/PKG-INFO
index 48fee8a..4f2d4fd 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_health_stock
-Version: 3.0.1
+Version: 3.0.2
Summary: GNU Health Stock Module
Home-page: http://health.gnu.org/
Author: GNU Solidario
diff --git a/health_stock.py b/health_stock.py
index 3f19d3e..312b508 100644
--- a/health_stock.py
+++ b/health_stock.py
@@ -72,7 +72,7 @@ class Medicament:
class Party:
__name__ = 'party.party'
warehouse = fields.Many2One('stock.location', 'Warehouse',
- domain=[('type', '=', 'warehouse')],
+ domain=[('type', 'in', ['warehouse', 'storage'])],
states={
'invisible': Not(Bool(Eval('is_pharmacy'))),
'required': Bool(Eval('is_pharmacy')),
diff --git a/tryton.cfg b/tryton.cfg
index e57db8a..3f9f97e 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=3.0.1
+version=3.0.2
depends:
health_nursing
stock_lot
diff --git a/trytond_health_stock.egg-info/PKG-INFO b/trytond_health_stock.egg-info/PKG-INFO
index d69eb53..b2c3d1a 100644
--- a/trytond_health_stock.egg-info/PKG-INFO
+++ b/trytond_health_stock.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-health-stock
-Version: 3.0.1
+Version: 3.0.2
Summary: GNU Health Stock Module
Home-page: http://health.gnu.org/
Author: GNU Solidario
diff --git a/trytond_health_stock.egg-info/requires.txt b/trytond_health_stock.egg-info/requires.txt
index e5accc8..9de01a2 100644
--- a/trytond_health_stock.egg-info/requires.txt
+++ b/trytond_health_stock.egg-info/requires.txt
@@ -1,3 +1,3 @@
-trytond_health_nursing == 3.0.1
+trytond_health_nursing == 3.0.2
trytond_stock_lot >= 3.8, < 3.9
trytond >= 3.8, < 3.9
diff --git a/wizard/wizard_create_prescription_stock_move.py b/wizard/wizard_create_prescription_stock_move.py
index 0a0313d..59ba6fe 100644
--- a/wizard/wizard_create_prescription_stock_move.py
+++ b/wizard/wizard_create_prescription_stock_move.py
@@ -62,13 +62,16 @@ class CreatePrescriptionStockMove(Wizard):
if not prescription.pharmacy:
self.raise_user_error('no_pharmacy_selected')
+ from_location = prescription.pharmacy.warehouse
+ if from_location.type == 'warehouse':
+ from_location = from_location.storage_location
+ to_location = prescription.patient.name.customer_location
+
for line in prescription.prescription_line:
move = StockMove()
move.origin = prescription
- move.from_location = (
- prescription.pharmacy.warehouse.storage_location)
- move.to_location = (
- prescription.patient.name.customer_location)
+ move.from_location = from_location
+ move.to_location = to_location
move.product = line.medicament.name
move.unit_price = line.medicament.name.list_price
move.quantity = line.quantity
--
tryton-modules-health-stock
More information about the tryton-debian-vcs
mailing list