81 |
81 |
# $locale->text('Workflow sales_quotation');
|
82 |
82 |
|
83 |
83 |
my $oe_access_map = {
|
84 |
|
'sales_order_intake' => 'sales_order_edit',
|
85 |
|
'sales_order' => 'sales_order_edit',
|
86 |
|
'purchase_order' => 'purchase_order_edit',
|
87 |
|
'request_quotation' => 'request_quotation_edit',
|
88 |
|
'sales_quotation' => 'sales_quotation_edit',
|
|
84 |
'sales_order_intake' => 'sales_order_edit',
|
|
85 |
'sales_order' => 'sales_order_edit',
|
|
86 |
'purchase_order' => 'purchase_order_edit',
|
|
87 |
'request_quotation' => 'request_quotation_edit',
|
|
88 |
'sales_quotation' => 'sales_quotation_edit',
|
|
89 |
'purchase_quotation_intake' => 'request_quotation_edit',
|
89 |
90 |
};
|
90 |
91 |
|
91 |
92 |
my $oe_view_access_map = {
|
92 |
|
'sales_order_intake' => 'sales_order_edit | sales_order_view',
|
93 |
|
'sales_order' => 'sales_order_edit | sales_order_view',
|
94 |
|
'purchase_order' => 'purchase_order_edit | purchase_order_view',
|
95 |
|
'request_quotation' => 'request_quotation_edit | request_quotation_view',
|
96 |
|
'sales_quotation' => 'sales_quotation_edit | sales_quotation_view',
|
|
93 |
'sales_order_intake' => 'sales_order_edit | sales_order_view',
|
|
94 |
'sales_order' => 'sales_order_edit | sales_order_view',
|
|
95 |
'purchase_order' => 'purchase_order_edit | purchase_order_view',
|
|
96 |
'request_quotation' => 'request_quotation_edit | request_quotation_view',
|
|
97 |
'sales_quotation' => 'sales_quotation_edit | sales_quotation_view',
|
|
98 |
'purchase_quotation_intake' => 'request_quotation_edit | request_quotation_view',
|
97 |
99 |
};
|
98 |
100 |
|
99 |
101 |
sub check_oe_access {
|
... | ... | |
953 |
955 |
$form->{title} = $locale->text('Request for Quotations');
|
954 |
956 |
$form->{ordlabel} = $locale->text('RFQ Number');
|
955 |
957 |
|
|
958 |
} elsif ($form->{type} eq 'purchase_quotation_intake') {
|
|
959 |
$form->{vc} = 'vendor';
|
|
960 |
$form->{ordnrname} = 'quonumber';
|
|
961 |
$form->{title} = $locale->text('Purchase Quotation Intakes');
|
|
962 |
$form->{ordlabel} = $locale->text('Quotation Number');
|
|
963 |
|
956 |
964 |
} elsif ($form->{type} eq 'sales_order_intake') {
|
957 |
965 |
$form->{vc} = 'customer';
|
958 |
966 |
$form->{ordnrname} = 'ordnumber';
|
... | ... | |
1084 |
1092 |
if ($form->{type} eq 'purchase_order') {
|
1085 |
1093 |
$form->{title} = $locale->text('Purchase Orders');
|
1086 |
1094 |
$attachment_basename = $locale->text('purchase_order_list');
|
|
1095 |
} elsif ($form->{type} eq 'purchase_quotation_intake') {
|
|
1096 |
$form->{title} = $locale->text('Purchase Quotation Intakes');
|
|
1097 |
$attachment_basename = $locale->text('purchase_quotation_intake_list');
|
1087 |
1098 |
} else {
|
1088 |
1099 |
$form->{title} = $locale->text('Request for Quotations');
|
1089 |
1100 |
$attachment_basename = $locale->text('rfq_list');
|
Angebots-Eingang: Bericht