Pierre Verkest
4 years ago
12 changed files with 74 additions and 71 deletions
-
8base_comment_template/README.rst
-
6base_comment_template/__manifest__.py
-
2base_comment_template/i18n/base_comment_template.pot
-
13base_comment_template/migrations/12.0.2.0.0/pre-migration.py
-
23base_comment_template/models/comment.py
-
6base_comment_template/models/res_partner.py
-
2base_comment_template/readme/CONTRIBUTORS.rst
-
1base_comment_template/readme/DESCRIPTION.rst
-
10base_comment_template/security/security.xml
-
18base_comment_template/tests/test_base_comment_template.py
-
47base_comment_template/views/comment_view.xml
-
9base_comment_template/views/res_partner.xml
@ -1,13 +0,0 @@ |
|||||
# Copyright 2020 Tecnativa - Pedro M. Baeza |
|
||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). |
|
||||
from openupgradelib import openupgrade |
|
||||
|
|
||||
|
|
||||
@openupgrade.migrate() |
|
||||
def migrate(env, version): |
|
||||
cr = env.cr |
|
||||
table = 'res_partner' |
|
||||
old_column = 'comment_template_id' |
|
||||
new_column = 'property_comment_template_id' |
|
||||
if openupgrade.column_exists(cr, table, old_column): |
|
||||
openupgrade.rename_columns(cr, {table: [(old_column, new_column)]}) |
|
@ -1,11 +1,13 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
|
||||
|
<?xml version="1.0" encoding="utf-8" ?> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<record model="ir.rule" id="rule_multicompany"> |
<record model="ir.rule" id="rule_multicompany"> |
||||
<field name="name">Base comment multi-company</field> |
<field name="name">Base comment multi-company</field> |
||||
<field name="model_id" ref="model_base_comment_template"/> |
|
||||
<field name="global" eval="True"/> |
|
||||
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> |
|
||||
|
<field name="model_id" ref="model_base_comment_template" /> |
||||
|
<field name="global" eval="True" /> |
||||
|
<field |
||||
|
name="domain_force" |
||||
|
>['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> |
||||
</record> |
</record> |
||||
|
|
||||
</odoo> |
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue