class PFournisseurOrder < ActiveRecord::Base belongs_to :p_fournisseur has_many :p_product_brut_stocks accepts_nested_attributes_for :p_product_brut_stocks end