validation factures
This commit is contained in:
parent
8c5c5ca0cc
commit
9dbbb093a1
@ -12,6 +12,8 @@ class MOdrFile < ApplicationRecord
|
|||||||
has_many :m_odr_file_products, :dependent => :destroy
|
has_many :m_odr_file_products, :dependent => :destroy
|
||||||
accepts_nested_attributes_for :m_odr_file_products, :allow_destroy => true
|
accepts_nested_attributes_for :m_odr_file_products, :allow_destroy => true
|
||||||
|
|
||||||
|
validates_associated :m_odr_file_products
|
||||||
|
|
||||||
has_many :m_odr_file_roulages, :dependent => :destroy
|
has_many :m_odr_file_roulages, :dependent => :destroy
|
||||||
accepts_nested_attributes_for :m_odr_file_roulages, :allow_destroy => true
|
accepts_nested_attributes_for :m_odr_file_roulages, :allow_destroy => true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user