FIX ASSIGN TABLE
This commit is contained in:
parent
b28f35bd26
commit
eaa85eb47e
|
@ -3375,8 +3375,12 @@ class AppWindow(FrontWindow):
|
||||||
'state': 'available',
|
'state': 'available',
|
||||||
'sale': None,
|
'sale': None,
|
||||||
}
|
}
|
||||||
self.RestTables.write([current_table['id']], to_drop)
|
if isinstance(current_table, int):
|
||||||
to_drop['id'] = current_table['id']
|
self.RestTables.write([current_table], to_drop)
|
||||||
|
to_drop['id'] = current_table
|
||||||
|
elif isinstance(current_table, dict):
|
||||||
|
self.RestTables.write([current_table['id']], to_drop)
|
||||||
|
to_drop['id'] = current_table['id']
|
||||||
|
|
||||||
vals = {
|
vals = {
|
||||||
'table_assigned': {
|
'table_assigned': {
|
||||||
|
|
Loading…
Reference in New Issue