When an agent acts in his own name, the principal shall have no action against the persons with whom the agent has contracted, nor the said persons against the principal.
In such case, the agent is directly liable to the person with whom he has contracted, as if the transaction were his own. The case involving things belonging to the principal is excepted.
The provision of this section shall be understood without prejudice to actions between principal and agent.
History —Civil Code, 1930, § 1608.