|
@ -199,11 +199,11 @@ class operation_request(models.Model): |
|
|
raise ValidationError(_("This share type could not be" |
|
|
raise ValidationError(_("This share type could not be" |
|
|
" transfered to " + |
|
|
" transfered to " + |
|
|
self.partner_id_to.name)) |
|
|
self.partner_id_to.name)) |
|
|
if not self.receiver_not_member and self.partner_id_to.is_company \ |
|
|
|
|
|
|
|
|
if self.partner_id_to.is_company \ |
|
|
and not self.share_product_id.by_company: |
|
|
and not self.share_product_id.by_company: |
|
|
raise ValidationError(_("This share can not be" |
|
|
raise ValidationError(_("This share can not be" |
|
|
" subscribed by a company")) |
|
|
" subscribed by a company")) |
|
|
if not self.receiver_not_member and not self.partner_id_to.is_company \ |
|
|
|
|
|
|
|
|
if not self.partner_id_to.is_company \ |
|
|
and not self.share_product_id.by_individual: |
|
|
and not self.share_product_id.by_individual: |
|
|
raise ValidationError(_("This share can not be" |
|
|
raise ValidationError(_("This share can not be" |
|
|
" subscribed an individual")) |
|
|
" subscribed an individual")) |
|
|