-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
module to make State field visible in Partner (made invisible in l10n…
…_se)
- Loading branch information
Showing
4 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Odoo, Open Source Management Solution | ||
# Copyright (C) 2016-TODAY Linserv Aktiebolag, Sweden (<http://www.linserv.se>). | ||
# | ||
############################################################################## |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# -*- coding: utf-8 -*- | ||
############################################################################## | ||
# | ||
# Odoo, Open Source Management Solution | ||
# Copyright (C) 2016-TODAY Linserv Aktiebolag, Sweden (<http://www.linserv.se>). | ||
# | ||
############################################################################## | ||
{ | ||
'name': 'Partner - State Visible', | ||
'version': '1.0', | ||
'category': "Tools", | ||
'summary': 'Partner - State Visible', | ||
'description': """ | ||
#################################################### | ||
Partner - State Visible | ||
#################################################### | ||
This app removes modifier defined in l10n_se app which makes State field invisible. | ||
""", | ||
|
||
'author': 'Linserv AB', | ||
'website': 'www.linserv.se', | ||
'contributors': ['Riyaj Pathan <[email protected]>', | ||
], | ||
|
||
'depends': ['l10n_se'], | ||
'data': [ | ||
'views/partner.xml', | ||
], | ||
|
||
'installable': True, | ||
'auto_install': False, | ||
} | ||
|
||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<openerp> | ||
<data> | ||
|
||
<record id="view_partners_form_se1_state_visible" model="ir.ui.view"> | ||
<field name="name">view.res.partner.form.se1.state.visible</field> | ||
<field name="model">res.partner</field> | ||
<field name="inherit_id" ref="l10n_se.view_partners_form_se1"/> | ||
<field name="arch" type="xml"> | ||
<field name="state_id" position="attributes"> | ||
<attribute name="attrs">{'readonly': [('use_parent_address','=',True)]}</attribute> | ||
</field> | ||
</field> | ||
</record> | ||
|
||
</data> | ||
</openerp> |