sequence
							parent
							
								
									b778aa3aad
								
							
						
					
					
						commit
						8a0c430fee
					
				| 
						 | 
					@ -302,7 +302,7 @@ class HDCase(Model):
 | 
				
			||||||
                return None
 | 
					                return None
 | 
				
			||||||
            user_id=get_active_user()
 | 
					            user_id=get_active_user()
 | 
				
			||||||
            set_active_user(1)
 | 
					            set_active_user(1)
 | 
				
			||||||
            res=self.search([["number","=",num]])
 | 
					            res=get_model('account.invoice').search([["number","=",num]])
 | 
				
			||||||
            set_active_user(user_id)
 | 
					            set_active_user(user_id)
 | 
				
			||||||
            if not res:
 | 
					            if not res:
 | 
				
			||||||
                return num
 | 
					                return num
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -56,6 +56,7 @@ class Sequence(Model):
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def find_sequence(self,type=None,name=None,context={}):
 | 
					    def find_sequence(self,type=None,name=None,context={}):
 | 
				
			||||||
 | 
					        print('name ', name, type, context)
 | 
				
			||||||
        if type and name:
 | 
					        if type and name:
 | 
				
			||||||
            dom=[["type","=",type],["name","=",name]]
 | 
					            dom=[["type","=",type],["name","=",name]]
 | 
				
			||||||
        elif type:
 | 
					        elif type:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -127,7 +127,7 @@ class Shop(Model):
 | 
				
			||||||
                return None
 | 
					                return None
 | 
				
			||||||
            user_id=get_active_user()
 | 
					            user_id=get_active_user()
 | 
				
			||||||
            set_active_user(1)
 | 
					            set_active_user(1)
 | 
				
			||||||
            res=self.search([["number","=",num]])
 | 
					            res=get_model("account.invoice").search([["number","=",num]])
 | 
				
			||||||
            set_active_user(user_id)
 | 
					            set_active_user(user_id)
 | 
				
			||||||
            if not res:
 | 
					            if not res:
 | 
				
			||||||
                return num
 | 
					                return num
 | 
				
			||||||
| 
						 | 
					@ -141,7 +141,7 @@ class Shop(Model):
 | 
				
			||||||
                return None
 | 
					                return None
 | 
				
			||||||
            user_id=get_active_user()
 | 
					            user_id=get_active_user()
 | 
				
			||||||
            set_active_user(1)
 | 
					            set_active_user(1)
 | 
				
			||||||
            res=self.search([["number","=",num]])
 | 
					            res=get_model("account.payment").search([["number","=",num]])
 | 
				
			||||||
            set_active_user(user_id)
 | 
					            set_active_user(user_id)
 | 
				
			||||||
            if not res:
 | 
					            if not res:
 | 
				
			||||||
                return num
 | 
					                return num
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,6 +37,7 @@
 | 
				
			||||||
        <th></th>
 | 
					        <th></th>
 | 
				
			||||||
        <th></th>
 | 
					        <th></th>
 | 
				
			||||||
        <th></th>
 | 
					        <th></th>
 | 
				
			||||||
 | 
					        <th></th>
 | 
				
			||||||
    </tfoot>
 | 
					    </tfoot>
 | 
				
			||||||
</table>
 | 
					</table>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,4 +10,4 @@
 | 
				
			||||||
    แก้ไขยาก หากมาเจอข้อผิดพลาดบางครั้ง
 | 
					    แก้ไขยาก หากมาเจอข้อผิดพลาดบางครั้ง
 | 
				
			||||||
 | 
					
 | 
				
			||||||
> report K. boy
 | 
					> report K. boy
 | 
				
			||||||
    - number of treatment is not correct
 | 
					    total qty of report_labor_cost_staff is not the same report_labor_cost
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue