Browse Source

Merge PR #391 into 12.0

Signed-off-by pedrobaeza
pull/383/head
OCA-git-bot 5 years ago
parent
commit
c34b664e98
  1. 1
      contract/views/res_partner_view.xml
  2. 1
      contract_sale/__manifest__.py
  3. 8
      contract_sale/views/res_partner_view.xml

1
contract/views/res_partner_view.xml

@ -6,6 +6,7 @@
<record id="view_partner_form" model="ir.ui.view"> <record id="view_partner_form" model="ir.ui.view">
<field name="inherit_id" ref="base.view_partner_form" /> <field name="inherit_id" ref="base.view_partner_form" />
<field name="model">res.partner</field> <field name="model">res.partner</field>
<field name="groups_id" eval="[(4, ref('account.group_account_invoice'))]"/>
<field type="xml" name="arch"> <field type="xml" name="arch">
<xpath expr="//div[@name='button_box']" position="inside"> <xpath expr="//div[@name='button_box']" position="inside">
<button name="act_show_contract" type="object" class="oe_stat_button" <button name="act_show_contract" type="object" class="oe_stat_button"

1
contract_sale/__manifest__.py

@ -19,6 +19,7 @@
'views/contract.xml', 'views/contract.xml',
'views/contract_line.xml', 'views/contract_line.xml',
'views/contract_template.xml', 'views/contract_template.xml',
'views/res_partner_view.xml',
], ],
'license': 'AGPL-3', 'license': 'AGPL-3',
'installable': True, 'installable': True,

8
contract_sale/views/res_partner_view.xml

@ -0,0 +1,8 @@
<?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>
</odoo>
Loading…
Cancel
Save