Skip to content

Commit

Permalink
[MIG] contract_sale: Migration to 16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Rogos committed May 15, 2023
1 parent cbd61ab commit 8b59103
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion contract_sale/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{
"name": "Contract from Sale",
"version": "15.0.1.1.0",
"version": "16.0.1.0.0",
"category": "Sales",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/contract",
Expand Down
2 changes: 1 addition & 1 deletion contract_sale/security/ir.model.access.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"contract_template_line_manager","Recurring Contract Line Manager","contract.model_contract_template_line","sales_team.group_sale_manager",1,1,1,1
"account_analytic_line_contract_salesman","Recurring Analytic Line Salesman","analytic.model_account_analytic_line","sales_team.group_sale_salesman",1,1,1,0
"contract_contract_salesman","Recurring Analytic Account Salesman","contract.model_contract_contract","sales_team.group_sale_salesman",1,1,1,0
"account_analytic_tag_contract_salesman","Recurring Account Analytic Tag Salesman","analytic.model_account_analytic_tag","sales_team.group_sale_salesman",1,1,1,0
"model_account_analytic_plan_contract_salesman","Recurring Account Analytic Tag Salesman","analytic.model_account_analytic_plan","sales_team.group_sale_salesman",1,1,1,0
"account_move_contract_salesman","Recurring Account Invoice Salesman","account.model_account_move","sales_team.group_sale_salesman",1,0,0,0
"account_journal_contract_salesman","Recurring Account Journal Salesman","account.model_account_journal","sales_team.group_sale_salesman",1,0,0,0
16 changes: 14 additions & 2 deletions contract_sale/views/res_partner_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="contract.view_partner_form" model="ir.ui.view">
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]" />
<record id="view_partner_form" model="ir.ui.view">
<field name="inherit_id" ref="contract.view_partner_form" />
<field name="model">res.partner</field>
<field type="xml" name="arch">
<field name="customer_rank" position="attributes">
<attribute name="group" add="sales_team.group_sale_salesman" />
</field>
<xpath expr="//button[@name='act_show_contract']" position="attributes">
<attribute name="group" add="sales_team.group_sale_salesman" />
</xpath>
<field name="supplier_rank" position="attributes">
<attribute name="group" add="sales_team.group_sale_salesman" />
</field>
</field>
</record>
</odoo>

0 comments on commit 8b59103

Please sign in to comment.