Ejemplo n.º 1
0
 def on_actionCompanyEdit_triggered(self):
     if self.companies.selected.system_company==True and self.mem.isProductsMaintainerMode()==False:
         qmessagebox(
             self.tr("This is a system company so you can't edit it.") + "\n" +
             self.tr("Please, if it's something wrong with it create an issue at") + "\n" + 
             "https://github.com/turulomio/caloriestracker/issues"+ "\n" +
             self.tr("I'll fix it as soon as posible. ;)")
         )
     else:
         from caloriestracker.ui.frmCompaniesAdd import frmCompaniesAdd
         w=frmCompaniesAdd(self.mem, self.companies.selected, self)
         w.exec_()
         self.on_cmd_pressed()
Ejemplo n.º 2
0
 def on_actionCompaniesAdd_triggered(self):
     from caloriestracker.ui.frmCompaniesAdd import frmCompaniesAdd
     w = frmCompaniesAdd(self.mem, None, self)
     w.exec_()