Skip to content
Extraits de code Groupes Projets
Valider 3326a19f rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[clean] clean files

parent 1b8b5488
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Chargement en cours
......@@ -12,8 +12,10 @@ Gestion des cotisations pour la CG Scop
Ce module hérite les modules *account* pour la gestion des cotisations :
* Ajoute un nouveau type de facture
* Crée u nouveau journal de vente
* Crée un lien avec une liasse fiscale, une année et une UR
* Crée un nouveau journal de vente
* Crée une nouvelle séquence de facture
* Modifie le Wizard d'avoirs pour ajouter le type et l'année de la cotisation
Credits
......
.o_chatter .o_chatter_topbar > .o_topbar_right_area .o_chatter_button_attachment{
display:none;
}
\ No newline at end of file
odoo.define('cgscop_base.KanbanControllerImport', function(require){
"use strict";
var KanbanController = require('web.KanbanController');
var core = require('web.core');
var qweb = core.qweb;
var KanbanControllerImport = KanbanController.include({
renderButtons: function ($node) {
if (this.hasButtons && (this.is_action_enabled('import') || this.is_action_enabled('create'))) {
this.$buttons = $(qweb.render('KanbanView.buttons', {
btnClass: 'btn-primary',
widget: this,
}));
this.$buttons.on('click', 'button.o-kanban-button-new', this._onButtonNew.bind(this));
this.$buttons.on('keydown',this._onButtonsKeyDown.bind(this));
this._updateButtons();
this.$buttons.appendTo($node);
}
},
});
});
\ No newline at end of file
odoo.define('cgscop_base.TreeviewImport', function(require) {
"use strict";
var AbstractView = require('web.AbstractView');
var TreeviewImport = AbstractView.include({
init: function (viewInfo, params) {
this._super(viewInfo, params);
if (this.arch.attrs.import == "False") {
this.controllerParams.activeActions['import'] = false;
} else {
this.controllerParams.activeActions['import'] = true;
}
},
});
return TreeviewImport;
});
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<templates id="cgscop_base_template" xml:space="preserve">
<t t-extend="ImportView.import_button">
<t t-jquery=".btn.btn-secondary.o_button_import" t-operation="replace"/>
</t>
<t t-name="ImportView.display_import_button">
<button t-if="widget and widget.is_action_enabled('import')" type="button" class="btn btn-secondary o_button_import">
Import
</button>
</t>
<t t-extend="ListView.buttons">
<t t-jquery=".o_list_buttons" t-operation="append">
<t t-call="ImportView.display_import_button"/>
</t>
</t>
</templates>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter