Pinakin Nayi (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-acl-sale-access-pna into
lp:~openerp-dev/openobject-addons/trunk-acl-sale.
Requested reviews:
Jigar Amin (OpenERP) (jam-openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-acl-sale-access-pna/+merge/126422
Hello Sir,
I improved access rights when the user is sales user or manager.
Thanks,
pna
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-acl-sale-access-pna/+merge/126422
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-acl-sale.
=== modified file 'account/account_invoice_view.xml'
--- account/account_invoice_view.xml 2012-09-10 20:14:08 +0000
+++ account/account_invoice_view.xml 2012-09-26 10:07:29 +0000
@@ -296,7 +296,7 @@
<button name="invoice_print" string="Print Invoice" type="object" attrs="{'invisible':['|',('sent','=',True), ('state', '!=', 'open')]}" class="oe_highlight"/>
<button name="action_invoice_sent" type="object" string="Send by Email" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/>
<button name="invoice_print" string="Print Invoice" type="object" attrs="{'invisible':['|',('sent','=',False), ('state', '!=', 'open')]}"/>
- <button name="invoice_open" states="draft" string="Validate" class="oe_highlight"/>
+ <button name="invoice_open" states="draft" string="Validate" groups="account.group_account_invoice" class="oe_highlight"/>
<button name="invoice_open" states="proforma2" string="Validate"/>
<button name="invoice_proforma2" states="draft" string="PRO-FORMA" groups="account.group_proforma_invoices"/>
<button name="%(action_account_invoice_refund)d" type='action' string='Refund Invoice' states='paid'/>
=== modified file 'crm/security/ir.model.access.csv'
--- crm/security/ir.model.access.csv 2012-08-17 10:46:10 +0000
+++ crm/security/ir.model.access.csv 2012-09-26 10:07:29 +0000
@@ -34,6 +34,7 @@
access_crm_lead_report_user,crm.lead.report user,model_crm_lead_report,base.group_sale_salesman,1,1,1,1
access_res_partner_bank_type_crm_user,res.partner.bank.type.crm.user,base.model_res_partner_bank_type,base.group_sale_salesman,1,0,0,0
access_crm_lead_partner_manager,crm.lead.partner.manager,model_crm_lead,base.group_partner_manager,1,0,0,0
-access_crm_phonecall_partner_manager,crm.phonecall.partner.manager,model_crm_phonecall,base.group_partner_manager,1,1,1,1
+access_crm_phonecall_partner_manager,crm.phonecall.partner.manager,model_crm_phonecall,base.group_partner_manager,1,1,1,0
+access_crm_phonecall_sale_manager,crm.phonecall.sale.manager,model_crm_phonecall,base.group_sale_manager,1,1,1,1
access_crm_payment_mode_user,crm.payment.mode,model_crm_payment_mode,base.group_sale_salesman,1,0,0,0
access_crm_payment_mode,crm.payment.mode,model_crm_payment_mode,base.group_sale_manager,1,1,1,1
=== modified file 'document/board_document_view.xml'
--- document/board_document_view.xml 2012-09-06 15:23:03 +0000
+++ document/board_document_view.xml 2012-09-26 10:07:29 +0000
@@ -35,6 +35,7 @@
parent="base.menu_reporting_dashboard"
sequence="55"
action="open_board_document_manager"
+ groups="base.group_document_user"
icon="terp-graph"/>
</data>
=== modified file 'event/event_view.xml'
--- event/event_view.xml 2012-09-17 16:33:01 +0000
+++ event/event_view.xml 2012-09-26 10:07:29 +0000
@@ -14,7 +14,7 @@
<!-- Top menu item -->
<menuitem name="Events"
id="event_main_menu"
- groups="base.group_user"
+ groups="event.group_event_user"
sequence="80"/>
<menuitem name="Events Organisation" id="base.menu_event_main" parent="event_main_menu"/>
=== modified file 'google_docs/security/ir.model.access.csv'
--- google_docs/security/ir.model.access.csv 2012-06-14 13:10:06 +0000
+++ google_docs/security/ir.model.access.csv 2012-09-26 10:07:29 +0000
@@ -1,3 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
-access_google_docs,google.docs.config,model_google_docs_config,,1,0,0,0
+access_google_docs_user,google.docs.config,model_google_docs_config,,1,0,0,0
access_google_docs,google.docs.config,model_google_docs_config,base.group_system,1,1,1,1
\ No newline at end of file
=== modified file 'hr_recruitment/board_hr_recruitment_statistical_view.xml'
--- hr_recruitment/board_hr_recruitment_statistical_view.xml 2012-09-06 15:23:03 +0000
+++ hr_recruitment/board_hr_recruitment_statistical_view.xml 2012-09-26 10:07:29 +0000
@@ -32,7 +32,7 @@
<field name="inherit_id" ref="hr.board_hr_form"/>
<field name="arch" type="xml">
<xpath expr="/form/board/column[1]" position="inside">
- <action name="%(action_applicants_status)d" string="Applicants To be Processed"/>
+ <action name="%(action_applicants_status)d" string="Applicants To be Processed" groups="base.group_hr_user"/>
</xpath>
</field>
</record>
=== modified file 'project_timesheet/project_timesheet_view.xml'
--- project_timesheet/project_timesheet_view.xml 2012-09-10 20:14:08 +0000
+++ project_timesheet/project_timesheet_view.xml 2012-09-26 10:07:29 +0000
@@ -97,6 +97,7 @@
<menuitem action="hr_timesheet.action_hr_timesheet_sign_in"
id="menu_hr_timesheet_sign_in"
parent="hr_attendance.menu_hr_attendance"
+ groups="project.group_project_user"
sequence="5" />
<menuitem id="menu_project_billing" name="Invoicing"
=== modified file 'stock/stock_view.xml'
--- stock/stock_view.xml 2012-09-20 07:25:22 +0000
+++ stock/stock_view.xml 2012-09-26 10:07:29 +0000
@@ -750,7 +750,7 @@
<button name="draft_force_assign" states="draft" string="Confirm" type="object" class="oe_highlight"/>
<button name="draft_validate" states="draft" string="Confirm & Transfer" type="object" class="oe_highlight"/>
<!-- <button name="action_assign" states="confirmed" string="Check Availability" type="object"/> -->
- <button name="force_assign" states="confirmed" string="Force Availability" type="object" class="oe_highlight"/>
+ <button name="force_assign" states="confirmed" string="Force Availability" groups="stock.group_stock_user" type="object" class="oe_highlight"/>
<button name="action_process" states="assigned" string="Confirm & Transfer" groups="stock.group_stock_user" type="object" class="oe_highlight"/>
<button name="%(action_stock_invoice_onshipping)d" string="Create Invoice/Refund" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" class="oe_highlight"/>
<button name="%(act_stock_return_picking)d" string="Reverse Transfer" states="done" type="action"/>
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp