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