gen no visit

conv_bal
watcha.h@almacom.co.th 2015-01-15 08:18:44 +07:00
parent fedd09355f
commit b7a2e8a536
2 changed files with 3 additions and 2 deletions

View File

@ -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({

View File

@ -1,4 +1,5 @@
report:
- doctor detail (for accounting)