A former senior robotics manager at Walmart Inc. is suing the retailer claiming she was passed over for promotions based on her gender—pointing in particular to a department head who told her to “not be so emotional,” called her while drunk, and sent text messages saying “I love you.”

The complaint, filed Monday in the U.S. District Court for the Northern District of California, seeks to sue the Bentonville, Arkansas-based retail giant for gender discrimination and sexual harassment. Kantor & Kantor in Northridge, California, and Carey & Associates of Southport, Connecticut, represent the employee, Alicia Lomas.