gen no visit
parent
fedd09355f
commit
b7a2e8a536
|
@ -399,7 +399,7 @@ class Visit(Model):
|
||||||
|
|
||||||
def gen_no(self,ids,context={}):
|
def gen_no(self,ids,context={}):
|
||||||
obj=self.browse(ids)[0]
|
obj=self.browse(ids)[0]
|
||||||
if obj.number != '/' or obj.state!='draft':
|
if obj.number != '/' or obj.state not in ('draft','pending'):
|
||||||
return
|
return
|
||||||
number=self._get_number(context)
|
number=self._get_number(context)
|
||||||
obj.write({
|
obj.write({
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
|
report:
|
||||||
|
- doctor detail (for accounting)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue