NEW YORK (TheStreet) -- Shares of Brazil's state-owned oil company Petrobras  (PBR) were gaining in mid-afternoon trading on Thursday as Brazil is close to approving a bill that would allow greater foreign investment in the country's offshore oil fields. 

Brazil's lower house of Congress yesterday approved the bill, which will require a number of amendments before going to President Michel Temer, the Wall Street Journal reported. Temer has signaled that he will sign the bill.

The current law was created to keep profits in Brazil, and required Petrobras to be the lead operator and hold at least a 30% share of drilling projects.

Proponents of the new bill claim that it will attract new capital from foreign oil companies as Petrobras contends with the biggest debt load within the energy sector. Those who oppose the bill say it will be a setback for the company, which remains a symbol of Brazilian pride.

"I think this will bring opportunity for growth where Petrobras, in this moment, doesn't have even the resources to develop all the opportunities...that we have in Brazil," Demien Fiocca, managing partner at private-equity firm Mare Investimentos, told the Journal. "This is a way of speeding things up."

Separately, TheStreet Ratings team rates the stock as a "sell" with a ratings score of D+.

Petrobras's weaknesses include its generally high debt management risk, disappointing return on equity, weak operating cash flow and feeble growth in its earnings per share.

You can view the full analysis from the report here: PBR

TheStreet Ratings objectively rated this stock according to its "risk-adjusted" total return prospect over a 12-month investment horizon. Not based on the news in any given day, the rating may differ from Jim Cramer's view or that of this article's author. 

More from Markets

Stocks Slide on Renewed Trade War Concerns

Stocks Slide on Renewed Trade War Concerns

PTC Shares Skyrocket on Positive Data for Spinal Muscular Atrophy Drug

PTC Shares Skyrocket on Positive Data for Spinal Muscular Atrophy Drug

Tesla Slumps After Mary McCormack Tweets Husband's Flaming Model S

Tesla Slumps After Mary McCormack Tweets Husband's Flaming Model S

Stocks Dive Globally as U.S.-China Trade War Intensifies

Stocks Dive Globally as U.S.-China Trade War Intensifies

China Trade War, Google, JD.com, Tesla, Brooks Koepka - 5 Things You Must Know

China Trade War, Google, JD.com, Tesla, Brooks Koepka - 5 Things You Must Know