-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
intrastat - add 2019 fields to xls export
- Loading branch information
1 parent
705ab18
commit 006b5ae
Showing
9 changed files
with
165 additions
and
4 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
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
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
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,13 @@ | ||
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png | ||
:target: https://www.gnu.org/licenses/agpl | ||
:alt: License: AGPL-3 | ||
|
||
========================== | ||
Web 'column_invisible' fix | ||
========================== | ||
|
||
The 'column_invisible' modifier doesn't work for O2M fields | ||
where the tree view is not embedded in the form view. | ||
|
||
We have created a PR (cf. https://github.com/odoo/odoo/pull/30982) which fixes this limitation. | ||
Until this PR is merged by Odoo we recommend to install the web_column_invisible_fix module. |
Empty file.
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 @@ | ||
# Copyright 2019 Noviat. | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). | ||
|
||
{ | ||
'name': "Web 'column_invisible' fix", | ||
'version': '11.0.1.0.0', | ||
'license': 'AGPL-3', | ||
'author': 'Noviat', | ||
'website': 'http://www.noviat.com', | ||
'category': 'Web', | ||
'depends': ['web'], | ||
'data': [ | ||
'views/assets_backend.xml', | ||
], | ||
'installable': True, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions
36
web_column_invisible_fix/static/src/js/relational_fields.js
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,36 @@ | ||
/* Copyright 2019 Noviat (www.noviat.com) */ | ||
|
||
odoo.define("web_column_invisible_fix.relational_fields", function (require) { | ||
"use strict"; | ||
|
||
var relational_fields = require('web.relational_fields'); | ||
|
||
relational_fields.FieldOne2Many.include({ | ||
|
||
init: function () { | ||
var self = this; | ||
this._super.apply(this, arguments); | ||
var todo = false; | ||
var arch = this.view && this.view.arch; | ||
if (arch) { | ||
/* | ||
Set columnInvisibleFields which have not been set before. | ||
This is the case for O2M fields where the tree view is not embedded in the form view. | ||
*/ | ||
if (typeof this.attrs.columnInvisibleFields === "undefined") { | ||
this.attrs.columnInvisibleFields = {}; | ||
_.each(arch.children, function (child) { | ||
if (child.attrs && child.attrs.modifiers && child.attrs.modifiers.column_invisible) { | ||
self.attrs.columnInvisibleFields[child.attrs.name] = child.attrs.modifiers.column_invisible; | ||
todo = true; | ||
}; | ||
}); | ||
}; | ||
}; | ||
if (todo) { | ||
this._processColumnInvisibleFields(); | ||
}; | ||
}, | ||
}); | ||
|
||
}); |
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<odoo> | ||
|
||
<template id="assets_backend" name="column_invisible_fix assets_backend" inherit_id="web.assets_backend"> | ||
<xpath expr="." position="inside"> | ||
<script type="text/javascript" src="/web_column_invisible_fix/static/src/js/relational_fields.js"></script> | ||
</xpath> | ||
</template> | ||
|
||
</odoo> |