bugfix p_product_refs

This commit is contained in:
Barnabé 2021-09-28 12:29:55 +02:00
parent 4d3ccfd221
commit 05c832eb52

View File

@ -10,6 +10,8 @@ class PProductRef < ApplicationRecord
belongs_to :p_product_color belongs_to :p_product_color
has_many :line_stocks
has_many :p_articles has_many :p_articles
has_many :p_article_serial_nums, through: :p_articles has_many :p_article_serial_nums, through: :p_articles
accepts_nested_attributes_for :p_article_serial_nums, allow_destroy: true accepts_nested_attributes_for :p_article_serial_nums, allow_destroy: true