Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_ar_afipws_caea: Migration to 16.0
closes #43 Signed-off-by: Nicolas Mac Rouillon <nmr@adhoc.com.ar>
- Loading branch information
Showing
32 changed files
with
379 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import models | ||
from . import wizard |
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 |
---|---|---|
@@ -1,29 +1,32 @@ | ||
{ | ||
"name": "Factura Electrónica Argentina CAEA", | ||
"summary": """ | ||
Habilita la gestion de CAEA""", | ||
Habilita la gestion de CAEA para modo contingencia""", | ||
"sequence": 14, | ||
"author": "Filoquin", | ||
"website": "http://www.sipecu.com.ar", | ||
"license": "LGPL-3", | ||
"category": "Localization/Argentina", | ||
"version": "15.0.1.0.0", | ||
"version": "16.0.1.0.0", | ||
"depends": ["l10n_ar_afipws_fe"], | ||
"data": [ | ||
"security/ir.model.access.csv", | ||
"views/asset.xml", | ||
"views/account_journal.xml", | ||
"views/afipws_caea.xml", | ||
"views/company.xml", | ||
"views/res_config_settings.xml", | ||
"views/pyafipws_dummy.xml", | ||
"wizard/res_config_settings.xml", | ||
"wizard/pyafipws_dummy.xml", | ||
"views/account_move.xml", | ||
"data/ir_cron.xml", | ||
], | ||
"qweb": [ | ||
"static/src/xml/systray_afip_caea.xml", | ||
], | ||
"installable": False, | ||
'assets': { | ||
#'web.assets_backend': ['/l10n_ar_afipws_caea/static/src/js/systray_afip_caea.js'], | ||
#'web.assets_qweb': ['/l10n_ar_afipws_caea/static/src/xml/systray_afip_caea.xml'], | ||
}, | ||
"installable": True, | ||
"auto_install": False, | ||
"application": False, | ||
} |
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 |
---|---|---|
@@ -1,8 +1,5 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from . import afipws_caea | ||
from . import account_journal | ||
from . import res_company | ||
from . import account_move | ||
from . import res_config_settings | ||
from . import pyafipws_dummy |
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
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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
odoo.define('afip.caea', function (require) { | ||
"use strict"; | ||
/** @odoo-module **/ | ||
import SystrayMenu from 'web.SystrayMenu'; | ||
import Widget from 'web.Widget'; | ||
/** | ||
* Menu item appended in the systray part of the navbar | ||
*/ | ||
|
||
var SystrayMenu = require('web.SystrayMenu'); | ||
var Widget = require('web.Widget'); | ||
//var model_obj = new instance.web.Model('ir.model.data'); | ||
const { Component } = owl; | ||
var CaeaMenu = Widget.extend({ | ||
name: 'caea_menu', | ||
template: 'systray_afip.caea', | ||
events: { | ||
'click .caea_label': 'onclick_caea_icon', | ||
}, | ||
onclick_caea_icon:function(){ | ||
var action = { | ||
type: 'ir.actions.act_window', | ||
res_model: 'pyafipws.dummy', | ||
view_type: 'form', | ||
views:[[false, 'form']], | ||
target: 'new', | ||
}; | ||
|
||
var ActionMenu = Widget.extend({ | ||
template: 'systray_afip.caea', | ||
events: { | ||
'click .caea_label': 'onclick_caea_icon', | ||
}, | ||
onclick_caea_icon:function(){ | ||
var action = { | ||
type: 'ir.actions.act_window', | ||
res_model: 'pyafipws.dummy', | ||
view_type: 'form', | ||
views:[[false, 'form']], | ||
target: 'new', | ||
}; | ||
|
||
this.do_action(action); | ||
}, | ||
//some functions | ||
this.do_action(action); | ||
}, | ||
//some functions | ||
|
||
}); | ||
}); | ||
|
||
SystrayMenu.Items.push(ActionMenu); | ||
return ActionMenu; | ||
}); | ||
|
||
SystrayMenu.Items.push(CaeaMenu); | ||
|
||
export default CaeaMenu; | ||
|
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 |
---|---|---|
@@ -1,15 +1,11 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<templates> | ||
<t t-name="systray_afip.caea"> | ||
<li class="caea_icon"> | ||
<label class="caea_label" style="margin-bottom:0px;" | ||
title="Afip state"> | ||
<div class="icon_div"> | ||
<div class="toggle-icon"><i class="fa fa-plug" | ||
id="fa-icon"/> | ||
</div> | ||
</div> | ||
</label> | ||
</li> | ||
</t> | ||
</templates> | ||
<div class="o_caea_systray_item"> | ||
<a class="o-no-caret caea_label" data-display="static" aria-expanded="false" title="afip" href="#" role="button"> | ||
<i class="fa fa-plug" role="img" aria-label="Afip"/> | ||
</a> | ||
|
||
</div> | ||
</t> | ||
</templates> |
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
Oops, something went wrong.