[MERGE] Merged with lp:addons

bzr revid: ron@tinyerp.com-20111102132703-cwf7j38egh2aa361
This commit is contained in:
ron@tinyerp.com
2011-11-02 18:57:03 +05:30
58 changed files with 3485 additions and 2449 deletions
+15 -14
View File
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2011-01-11 11:14+0000\n"
"PO-Revision-Date: 2010-11-22 07:21+0000\n"
"Last-Translator: Martin Pihl <martinpihl@gmail.com>\n"
"PO-Revision-Date: 2011-11-01 21:03+0000\n"
"Last-Translator: OpenERP Danmark / Mikhael Saxtorph <Unknown>\n"
"Language-Team: Danish <da@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-19 05:05+0000\n"
"X-Generator: Launchpad (build 14157)\n"
"X-Launchpad-Export-Date: 2011-11-02 04:56+0000\n"
"X-Generator: Launchpad (build 14214)\n"
#. module: account
#: model:process.transition,name:account.process_transition_supplierreconcilepaid0
@@ -39,8 +39,7 @@ msgstr ""
msgid ""
"You cannot remove/deactivate an account which is set as a property to any "
"Partner."
msgstr ""
"Du kan ikke fjerne/deaktivere en konto som er sat til ejerskab af en Partner."
msgstr "Du kan ikke fjerne/deaktivere en konto som er tilknyttet en kontakt."
#. module: account
#: view:account.move.reconcile:0
@@ -131,7 +130,7 @@ msgstr ""
#. module: account
#: report:account.tax.code.entries:0
msgid "Accounting Entries-"
msgstr "Konto posteringer-"
msgstr "Posteringer"
#. module: account
#: code:addons/account/account.py:1291
@@ -328,6 +327,8 @@ msgid ""
"Installs localized accounting charts to match as closely as possible the "
"accounting needs of your company based on your country."
msgstr ""
"Installerer lokal kontoplan, der passer så godt som muligt til jeres firmas "
"behov, baseret på land."
#. module: account
#: code:addons/account/wizard/account_move_journal.py:63
@@ -1749,7 +1750,7 @@ msgstr ""
#. module: account
#: sql_constraint:account.move.line:0
msgid "Wrong credit or debit value in accounting entry !"
msgstr ""
msgstr "Forkert kredit eller debet værdi i posteringerne!"
#. module: account
#: view:account.invoice.report:0
@@ -1851,7 +1852,7 @@ msgstr ""
#: model:process.node,note:account.process_node_reconciliation0
#: model:process.node,note:account.process_node_supplierreconciliation0
msgid "Comparison between accounting and payment entries"
msgstr ""
msgstr "Sammenligning mellem bogførings- og betalingsindtastninger"
#. module: account
#: view:account.tax:0
@@ -2083,7 +2084,7 @@ msgstr ""
#. module: account
#: view:product.category:0
msgid "Accounting Properties"
msgstr ""
msgstr "Regnskab, egenskaber"
#. module: account
#: report:account.journal.period.print:0
@@ -2683,7 +2684,7 @@ msgstr ""
#. module: account
#: model:ir.ui.menu,name:account.menu_finance_accounting
msgid "Financial Accounting"
msgstr ""
msgstr "Finans"
#. module: account
#: view:account.pl.report:0
@@ -3016,13 +3017,13 @@ msgstr "Indløb"
#: model:ir.actions.act_window,name:account.action_account_installer
#: view:wizard.multi.charts.accounts:0
msgid "Accounting Application Configuration"
msgstr ""
msgstr "Regnskabsmodulets konfigurering"
#. module: account
#: model:ir.actions.act_window,name:account.open_board_account
#: model:ir.ui.menu,name:account.menu_board_account
msgid "Accounting Dashboard"
msgstr ""
msgstr "Regnskab, overblik"
#. module: account
#: field:account.bank.statement,balance_start:0
@@ -6628,7 +6629,7 @@ msgstr ""
#: view:account.invoice.report:0
#: field:report.invoice.created,date_invoice:0
msgid "Invoice Date"
msgstr ""
msgstr "Faktura dato"
#. module: account
#: help:res.partner,credit:0
+529
View File
@@ -0,0 +1,529 @@
# Danish translation for openobject-addons
# Copyright (c) 2011 Rosetta Contributors and Canonical Ltd 2011
# This file is distributed under the same license as the openobject-addons package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2011.
#
msgid ""
msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2009-11-24 12:54+0000\n"
"PO-Revision-Date: 2011-11-01 12:06+0000\n"
"Last-Translator: OpenERP Danmark / Mikhael Saxtorph <Unknown>\n"
"Language-Team: Danish <da@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-11-02 04:56+0000\n"
"X-Generator: Launchpad (build 14214)\n"
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_list_normal
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_list_normal
msgid "Open Assets"
msgstr ""
#. module: account_asset
#: field:account.asset.property,method_end:0
#: field:account.asset.property.history,method_end:0
msgid "Ending date"
msgstr "Slut dato"
#. module: account_asset
#: view:account.asset.asset:0
msgid "Depreciation board"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: field:account.asset.asset,name:0
#: field:account.asset.board,asset_id:0
#: field:account.asset.property,asset_id:0
#: field:account.invoice.line,asset_id:0
#: field:account.move.line,asset_id:0
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_form
#: model:ir.model,name:account_asset.model_account_asset_asset
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_form
msgid "Asset"
msgstr ""
#. module: account_asset
#: constraint:ir.actions.act_window:0
msgid "Invalid model name in the action definition."
msgstr ""
#. module: account_asset
#: selection:account.asset.property,method:0
msgid "Linear"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Change duration"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,child_ids:0
msgid "Child assets"
msgstr ""
#. module: account_asset
#: field:account.asset.board,value_asset:0
msgid "Asset Value"
msgstr ""
#. module: account_asset
#: wizard_field:account.asset.modify,init,name:0
msgid "Reason"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: field:account.asset.asset,entry_ids:0
#: wizard_field:account.asset.compute,asset_compute,move_ids:0
msgid "Entries"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.compute,asset_compute:0
msgid "Generated entries"
msgstr ""
#. module: account_asset
#: wizard_field:account.asset.modify,init,method_delay:0
#: field:account.asset.property,method_delay:0
#: field:account.asset.property.history,method_delay:0
msgid "Number of interval"
msgstr ""
#. module: account_asset
#: wizard_button:account.asset.compute,asset_compute,asset_open:0
msgid "Open entries"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_list
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_list
#: model:ir.ui.menu,name:account_asset.menu_finance_Assets
#: model:ir.ui.menu,name:account_asset.menu_finance_config_Assets
msgid "Assets"
msgstr ""
#. module: account_asset
#: selection:account.asset.property,method:0
msgid "Progressive"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_list_draft
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_list_draft
msgid "Draft Assets"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.modify,init:0
#: wizard_field:account.asset.modify,init,note:0
#: view:account.asset.property.history:0
msgid "Notes"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Change history"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Depreciation entries"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Methods"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.modify,init:0
msgid "Asset properties to modify"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,partner_id:0
msgid "Partner"
msgstr ""
#. module: account_asset
#: wizard_field:account.asset.modify,init,method_period:0
#: field:account.asset.property,method_period:0
#: field:account.asset.property.history,method_period:0
msgid "Period per interval"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Depreciation duration"
msgstr ""
#. module: account_asset
#: field:account.asset.property,account_analytic_id:0
msgid "Analytic account"
msgstr ""
#. module: account_asset
#: field:account.asset.property,state:0
msgid "State"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Depreciation methods"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Other information"
msgstr ""
#. module: account_asset
#: field:account.asset.board,value_asset_cumul:0
msgid "Cumul. value"
msgstr ""
#. module: account_asset
#: view:account.asset.property:0
msgid "Assets methods"
msgstr ""
#. module: account_asset
#: constraint:ir.ui.view:0
msgid "Invalid XML for View Architecture!"
msgstr ""
#. module: account_asset
#: model:ir.model,name:account_asset.model_account_asset_property
msgid "Asset property"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.compute,asset_compute:0
#: wizard_view:account.asset.compute,init:0
#: wizard_button:account.asset.compute,init,asset_compute:0
#: model:ir.actions.wizard,name:account_asset.wizard_asset_compute
#: model:ir.ui.menu,name:account_asset.menu_wizard_asset_compute
msgid "Compute assets"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.modify,init:0
#: wizard_button:account.asset.modify,init,asset_modify:0
#: model:ir.actions.wizard,name:account_asset.wizard_asset_modify
msgid "Modify asset"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Confirm asset"
msgstr ""
#. module: account_asset
#: view:account.asset.property.history:0
#: model:ir.model,name:account_asset.model_account_asset_property_history
msgid "Asset history"
msgstr ""
#. module: account_asset
#: field:account.asset.property,date:0
msgid "Date created"
msgstr ""
#. module: account_asset
#: model:ir.module.module,description:account_asset.module_meta_information
msgid ""
"Financial and accounting asset management.\n"
" Allows to define\n"
" * Asset category. \n"
" * Assets.\n"
" *Asset usage period and property.\n"
" "
msgstr ""
#. module: account_asset
#: field:account.asset.board,value_gross:0
#: field:account.asset.property,value_total:0
msgid "Gross value"
msgstr ""
#. module: account_asset
#: selection:account.asset.property,method_time:0
msgid "Ending period"
msgstr ""
#. module: account_asset
#: field:account.asset.board,name:0
msgid "Asset name"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Accounts information"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,note:0
#: field:account.asset.category,note:0
#: field:account.asset.property.history,note:0
msgid "Note"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
#: selection:account.asset.property,state:0
msgid "Draft"
msgstr ""
#. module: account_asset
#: field:account.asset.property,type:0
msgid "Depr. method type"
msgstr ""
#. module: account_asset
#: field:account.asset.property,account_asset_id:0
msgid "Asset account"
msgstr ""
#. module: account_asset
#: field:account.asset.property.history,asset_property_id:0
msgid "Method"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
msgid "Normal"
msgstr ""
#. module: account_asset
#: field:account.asset.property,method_progress_factor:0
msgid "Progressif factor"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,localisation:0
msgid "Localisation"
msgstr ""
#. module: account_asset
#: field:account.asset.property,method:0
msgid "Computation method"
msgstr ""
#. module: account_asset
#: field:account.asset.property,method_time:0
msgid "Time method"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,active:0
msgid "Active"
msgstr ""
#. module: account_asset
#: field:account.asset.property.history,user_id:0
msgid "User"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,property_ids:0
msgid "Asset method name"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,date:0
#: field:account.asset.property.history,date:0
msgid "Date"
msgstr ""
#. module: account_asset
#: field:account.asset.board,value_net:0
msgid "Net value"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.close,init:0
#: model:ir.actions.wizard,name:account_asset.wizard_asset_close
msgid "Close asset"
msgstr ""
#. module: account_asset
#: field:account.asset.property,history_ids:0
msgid "History"
msgstr ""
#. module: account_asset
#: field:account.asset.property,account_actif_id:0
msgid "Depreciation account"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,period_id:0
#: wizard_field:account.asset.compute,init,period_id:0
msgid "Period"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_account_asset_category_form
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_category_form
msgid "Asset Category"
msgstr ""
#. module: account_asset
#: wizard_button:account.asset.close,init,end:0
#: wizard_button:account.asset.compute,init,end:0
#: wizard_button:account.asset.modify,init,end:0
msgid "Cancel"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
#: wizard_button:account.asset.compute,asset_compute,end:0
#: selection:account.asset.property,state:0
msgid "Close"
msgstr ""
#. module: account_asset
#: selection:account.asset.property,state:0
msgid "Open"
msgstr ""
#. module: account_asset
#: constraint:ir.model:0
msgid ""
"The Object name must start with x_ and not contain any special character !"
msgstr ""
#. module: account_asset
#: model:ir.module.module,shortdesc:account_asset.module_meta_information
msgid "Asset management"
msgstr ""
#. module: account_asset
#: view:account.asset.board:0
#: field:account.asset.property,board_ids:0
#: model:ir.model,name:account_asset.model_account_asset_board
msgid "Asset board"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,state:0
msgid "Global state"
msgstr ""
#. module: account_asset
#: selection:account.asset.property,method_time:0
msgid "Delay"
msgstr ""
#. module: account_asset
#: wizard_view:account.asset.close,init:0
msgid "General information"
msgstr ""
#. module: account_asset
#: field:account.asset.property,journal_analytic_id:0
msgid "Analytic journal"
msgstr ""
#. module: account_asset
#: field:account.asset.property,name:0
msgid "Method name"
msgstr ""
#. module: account_asset
#: field:account.asset.property,journal_id:0
msgid "Journal"
msgstr ""
#. module: account_asset
#: field:account.asset.property.history,name:0
msgid "History name"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Close method"
msgstr ""
#. module: account_asset
#: field:account.asset.property,entry_asset_ids:0
msgid "Asset Entries"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,category_id:0
#: view:account.asset.category:0
#: field:account.asset.category,name:0
#: model:ir.model,name:account_asset.model_account_asset_category
msgid "Asset category"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "Depreciation"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,code:0
#: field:account.asset.category,code:0
msgid "Asset code"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,value_total:0
msgid "Total value"
msgstr ""
#. module: account_asset
#: selection:account.asset.asset,state:0
msgid "View"
msgstr ""
#. module: account_asset
#: view:account.asset.asset:0
msgid "General info"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,sequence:0
msgid "Sequence"
msgstr ""
#. module: account_asset
#: field:account.asset.property,value_residual:0
msgid "Residual value"
msgstr ""
#. module: account_asset
#: wizard_button:account.asset.close,init,asset_close:0
msgid "End of asset"
msgstr ""
#. module: account_asset
#: selection:account.asset.property,type:0
msgid "Direct"
msgstr ""
#. module: account_asset
#: selection:account.asset.property,type:0
msgid "Indirect"
msgstr ""
#. module: account_asset
#: field:account.asset.asset,parent_id:0
msgid "Parent asset"
msgstr ""
#. module: account_asset
#: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_tree
#: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_tree
msgid "Asset Hierarchy"
msgstr ""
+2 -2
View File
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-26 05:13+0000\n"
"X-Generator: Launchpad (build 14189)\n"
"X-Launchpad-Export-Date: 2011-10-27 05:22+0000\n"
"X-Generator: Launchpad (build 14197)\n"
#. module: association
#: field:profile.association.config.install_modules_wizard,wiki:0
+8 -8
View File
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2011-01-11 11:14+0000\n"
"PO-Revision-Date: 2011-09-23 15:56+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2011-11-01 20:11+0000\n"
"Last-Translator: OpenERP Danmark / Henning Dinsen <Unknown>\n"
"Language-Team: Danish <da@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-19 05:45+0000\n"
"X-Generator: Launchpad (build 14157)\n"
"X-Launchpad-Export-Date: 2011-11-02 04:56+0000\n"
"X-Generator: Launchpad (build 14214)\n"
#. module: base_calendar
#: selection:calendar.alarm,trigger_related:0
@@ -49,7 +49,7 @@ msgstr ""
#. module: base_calendar
#: field:calendar.event.edit.all,name:0
msgid "Title"
msgstr ""
msgstr "Titel"
#. module: base_calendar
#: selection:base.calendar.set.exrule,freq:0
@@ -66,7 +66,7 @@ msgstr ""
#. module: base_calendar
#: view:calendar.attendee:0
msgid "Invitation"
msgstr ""
msgstr "Invitation"
#. module: base_calendar
#: help:calendar.event,recurrency:0
@@ -78,7 +78,7 @@ msgstr ""
#: model:ir.actions.act_window,name:base_calendar.action_res_alarm_view
#: model:ir.ui.menu,name:base_calendar.menu_crm_meeting_avail_alarm
msgid "Alarms"
msgstr ""
msgstr "Alarmer"
#. module: base_calendar
#: selection:base.calendar.set.exrule,week_list:0
@@ -145,7 +145,7 @@ msgstr "Marts"
#: code:addons/base_calendar/wizard/base_calendar_set_exrule.py:90
#, python-format
msgid "Warning !"
msgstr "Advarsel!"
msgstr "Advarsel !"
#. module: base_calendar
#: selection:base.calendar.set.exrule,week_list:0
+1 -1
View File
@@ -61,7 +61,7 @@
<attribute name="string">Define Users's Preferences</attribute>
</xpath>
<xpath expr="//label[@string='description']" position="attributes">
<attribute name="string">This will set the default preferences for all users. After this, each user will be able to update his own preferences.</attribute>
<attribute name="string">This will set the default preferences for new users and update all existing ones. Afterwards, users are free to change those values on their own user preference form.</attribute>
</xpath>
<xpath expr="//separator[@string=&quot;vsep&quot;]" position="attributes">
<attribute name="string"/>
+6 -5
View File
@@ -8,14 +8,15 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2011-01-11 11:15+0000\n"
"PO-Revision-Date: 2011-09-22 20:38+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"PO-Revision-Date: 2011-10-26 14:18+0000\n"
"Last-Translator: Nicholas Christian Langkjær Ipsen "
"<sephiroth7vii@gmail.com>\n"
"Language-Team: Danish <da@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-19 04:59+0000\n"
"X-Generator: Launchpad (build 14157)\n"
"X-Launchpad-Export-Date: 2011-10-27 05:22+0000\n"
"X-Generator: Launchpad (build 14197)\n"
#. module: crm
#: view:crm.lead.report:0
@@ -74,7 +75,7 @@ msgstr ""
#: view:crm.lead:0
#: view:crm.phonecall:0
msgid "Today"
msgstr "Idag"
msgstr "I dag"
#. module: crm
#: view:crm.merge.opportunity:0
+35 -16
View File
@@ -47,28 +47,41 @@ MONTHS = [
]
class crm_lead_report(osv.osv):
""" CRM Lead Report """
""" CRM Lead Analysis """
_name = "crm.lead.report"
_auto = False
_description = "CRM Lead Report"
_description = "CRM Lead Analysis"
_rec_name = 'deadline_day'
_columns = {
'name': fields.char('Year', size=64, required=False, readonly=True),
# grouping fields based on Deadline Date
'deadline_year': fields.char('Ex. Closing Year', size=10, readonly=True, help="Expected closing year"),
'deadline_month':fields.selection(MONTHS, 'Exp. Closing Month', readonly=True, help="Expected closing month"),
'deadline_day': fields.char('Exp. Closing Day', size=10, readonly=True, help="Expected closing day"),
# grouping fields based on Create Date
'creation_year': fields.char('Creation Year', size=10, readonly=True, help="Creation year"),
'creation_month': fields.selection(MONTHS, 'Creation Month', readonly=True, help="Creation month"),
'creation_day': fields.char('Creation Day', size=10, readonly=True, help="Creation day"),
# other date fields
'create_date': fields.datetime('Create Date', readonly=True),
'opening_date': fields.date('Opening Date', readonly=True),
'date_closed': fields.date('Close Date', readonly=True),
# durations
'delay_open': fields.float('Delay to Open',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to open the case"),
'delay_close': fields.float('Delay to Close',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to close the case"),
'delay_expected': fields.float('Overpassed Deadline',digits=(16,2),readonly=True, group_operator="avg"),
'user_id':fields.many2one('res.users', 'User', readonly=True),
'country_id':fields.many2one('res.country', 'Country', readonly=True),
'section_id':fields.many2one('crm.case.section', 'Sales Team', readonly=True),
'channel_id':fields.many2one('crm.case.channel', 'Channel', readonly=True),
'type_id':fields.many2one('crm.case.resource.type', 'Campaign', readonly=True),
'state': fields.selection(AVAILABLE_STATES, 'State', size=16, readonly=True),
'creation_month':fields.selection(MONTHS, 'Creation Date', readonly=True),
'deadline_month':fields.selection(MONTHS, 'Exp. Closing', readonly=True),
'company_id': fields.many2one('res.company', 'Company', readonly=True),
'create_date': fields.datetime('Create Date', readonly=True, select=True),
'day': fields.char('Day', size=128, readonly=True),
'email': fields.integer('# Emails', size=128, readonly=True),
'delay_open': fields.float('Delay to Open',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to open the case"),
'delay_close': fields.float('Delay to Close',digits=(16,2),readonly=True, group_operator="avg",help="Number of Days to close the case"),
'delay_expected': fields.float('Overpassed Deadline',digits=(16,2),readonly=True, group_operator="avg"),
'probability': fields.float('Probability',digits=(16,2),readonly=True, group_operator="avg"),
'planned_revenue': fields.float('Planned Revenue',digits=(16,2),readonly=True),
'probable_revenue': fields.float('Probable Revenue', digits=(16,2),readonly=True),
@@ -76,9 +89,6 @@ class crm_lead_report(osv.osv):
domain="['|',('section_id','=',False),('section_id','=',section_id)]" , readonly=True),
'stage_id': fields.many2one ('crm.case.stage', 'Stage', readonly=True, domain="[('section_ids', '=', section_id)]"),
'partner_id': fields.many2one('res.partner', 'Partner' , readonly=True),
'opening_date': fields.date('Opening Date', readonly=True, select=True),
'creation_date': fields.date('Creation Date', readonly=True, select=True),
'date_closed': fields.date('Close Date', readonly=True, select=True),
'nbr': fields.integer('# of Cases', readonly=True),
'company_id': fields.many2one('res.company', 'Company', readonly=True),
'priority': fields.selection(crm.AVAILABLE_PRIORITIES, 'Priority'),
@@ -87,6 +97,10 @@ class crm_lead_report(osv.osv):
('opportunity','Opportunity'),
],'Type', help="Type is used to separate Leads and Opportunities"),
}
def init(self, cr):
"""
@@ -98,13 +112,18 @@ class crm_lead_report(osv.osv):
CREATE OR REPLACE VIEW crm_lead_report AS (
SELECT
id,
to_char(c.date_deadline, 'YYYY') as name,
to_char(c.date_deadline, 'YYYY') as deadline_year,
to_char(c.date_deadline, 'MM') as deadline_month,
to_char(c.date_deadline, 'YYYY-MM-DD') as day,
to_char(c.date_deadline, 'YYYY-MM-DD') as deadline_day,
to_char(c.create_date, 'YYYY') as creation_year,
to_char(c.create_date, 'MM') as creation_month,
to_char(c.create_date, 'YYYY-MM-DD') as creation_date,
to_char(c.create_date, 'YYYY-MM-DD') as creation_day,
to_char(c.date_open, 'YYYY-MM-DD') as opening_date,
to_char(c.date_closed, 'YYYY-mm-dd') as date_closed,
c.state,
c.user_id,
c.probability,
+15 -9
View File
@@ -10,7 +10,10 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Leads Analysis">
<field name="name" invisible="1"/>
<field name="creation_year" invisible="1"/>
<field name="creation_month" invisible="1"/>
<field name="creation_day" invisible="1"/>
<field name="deadline_month" invisible="1"/>
<field name="state" invisible="1"/>
<field name="stage_id" invisible="1"/>
<field name="categ_id" invisible="1"/>
@@ -18,14 +21,11 @@
<field name="channel_id" invisible="1"/>
<field name="type" invisible="1"/>
<field name="priority" invisible="1"/>
<field name="creation_month" invisible="1"/>
<field name="deadline_month" invisible="1"/>
<field name="section_id" invisible="1"/>
<field name="user_id" invisible="1"/>
<field name="company_id" invisible="1"/>
<field name="partner_id" invisible="1"/>
<field name="country_id" invisible="1"/>
<field name="day" invisible="1"/>
<field name="nbr" sum="# Leads"/>
<field name="email" sum="# Mails"/>
<field name="delay_open"/>
@@ -86,6 +86,7 @@
<filter string=" Year " icon="terp-go-year"
domain="[('create_date','&lt;=', time.strftime('%%Y-%%m-%%d')),('create_date','&gt;=',time.strftime('%%Y-01-01'))]"
help="Leads/Opportunities created in current year"/>
<separator orientation="vertical" />
<filter string=" Month " icon="terp-go-month" name="this_month"
domain="[('create_date','&lt;=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('create_date','&gt;=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
help="Leads/Opportunities created in current month"/>
@@ -101,7 +102,7 @@
<filter icon="terp-camera_test"
string="Open"
domain="[('state','=','open')]"
help="Leads/Opportunities which are in open state"/>
help="Leads/Opportunities which are in open state"/>
<filter icon="gtk-media-pause"
string="Pending"
domain="[('state','=','pending')]"
@@ -134,7 +135,7 @@
<separator orientation="vertical"/>
<field name="company_id" widget="selection" groups="base.group_multi_company"/>
<newline/>
<field name="creation_date"/>
<field name="create_date"/>
<field name="opening_date"/>
<field name="date_closed"/>
</group>
@@ -164,8 +165,13 @@
<filter string="State" icon="terp-stock_effects-object-colorize"
domain="[]" context="{'group_by':'state'}" />
<separator orientation="vertical" />
<filter string="Creation Date" icon="terp-go-month"
<filter string="Year" icon="terp-go-year"
domain="[]" context="{'group_by':'creation_year'}"/>
<filter string="Month" icon="terp-go-month"
domain="[]" context="{'group_by':'creation_month'}"/>
<filter string="Day" icon="terp-go-today"
domain="[]" context="{'group_by':'creation_day'}"/>
<separator orientation="vertical" />
<filter string="Exp. Closing" icon="terp-go-month"
domain="[]" context="{'group_by':'deadline_month'}"/>
</group>
@@ -181,14 +187,14 @@
<field name="type">tree</field>
<field name="arch" type="xml">
<tree colors="blue:state == 'draft';black:state in ('open','pending','done');gray:state == 'cancel' " string="Opportunities Analysis">
<field name="name" invisible="1"/>
<field name="creation_year" invisible="1"/>
<field name="creation_month" invisible="1"/>
<field name="creation_day" invisible="1"/>
<field name="deadline_month" invisible="1"/>
<field name="section_id" invisible="1" groups="base.group_extended"/>
<field name="user_id" invisible="1"/>
<field name="partner_id" invisible="1"/>
<field name="country_id" invisible="1"/>
<field name="day" invisible="1"/>
<field name="state" invisible="1"/>
<field name="stage_id" invisible="1"/>
<field name="priority" invisible="1"/>
+1
View File
@@ -15,6 +15,7 @@
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False"/>
<field name="help">Create employees form and link them to an OpenERP user if you want them to access this instance. Categories can be set on employees to perform massive operations on all the employees of the same category, i.e. allocating holidays.</field>
</record>
<record id="config_wizard_action_create_hr_employee_installer" model="ir.actions.todo">
+2 -2
View File
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-26 05:13+0000\n"
"X-Generator: Launchpad (build 14189)\n"
"X-Launchpad-Export-Date: 2011-10-27 05:22+0000\n"
"X-Generator: Launchpad (build 14197)\n"
#. module: hr_attendance
#: model:ir.ui.menu,name:hr_attendance.menu_hr_time_tracking
@@ -33,14 +33,14 @@ class hr_si_so_ask(osv.osv_memory):
}
def _get_empname(self, cr, uid, context=None):
emp_id = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
emp_id = context.get('emp_id', self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context))
if emp_id:
employee = self.pool.get('hr.employee').browse(cr, uid, emp_id, context=context)[0].name
return employee
return ''
def _get_empid(self, cr, uid, context=None):
emp_id = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
emp_id = context.get('emp_id', self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context))
if emp_id:
return emp_id[0]
return False
@@ -63,7 +63,6 @@ class hr_si_so_ask(osv.osv_memory):
hr_si_so_ask()
class hr_sign_in_out(osv.osv_memory):
_name = 'hr.sign.in.out'
_description = 'Sign In Sign Out'
@@ -74,7 +73,7 @@ class hr_sign_in_out(osv.osv_memory):
}
def _get_empid(self, cr, uid, context=None):
emp_id = self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context)
emp_id = context.get('emp_id', self.pool.get('hr.employee').search(cr, uid, [('user_id', '=', uid)], context=context))
if emp_id:
employee = self.pool.get('hr.employee').browse(cr, uid, emp_id, context=context)[0]
return {'name': employee.name, 'state': employee.state, 'emp_id': emp_id[0]}
@@ -109,6 +108,7 @@ class hr_sign_in_out(osv.osv_memory):
'res_model': 'hr.sign.in.out.ask',
'views': [(resource_id,'form')],
'type': 'ir.actions.act_window',
'context': context,
'target': 'new',
}
@@ -132,6 +132,7 @@ class hr_sign_in_out(osv.osv_memory):
'res_model': 'hr.sign.in.out',
'views': [(resource_id,'form')],
'type': 'ir.actions.act_window',
'context': context,
'target': 'new',
}
+18 -29
View File
@@ -143,25 +143,6 @@ class hr_timesheet_sheet(osv.osv):
res[record[0]]['total_difference'] = record[3]
return res
def _state_attendance(self, cr, uid, ids, name, args, context=None):
emp_obj = self.pool.get('hr.employee')
result = {}
link_emp = {}
emp_ids = []
for sheet in self.browse(cr, uid, ids, context=context):
result[sheet.id] = 'none'
emp_ids2 = emp_obj.search(cr, uid,
[('user_id', '=', sheet.user_id.id)], context=context)
if emp_ids2:
link_emp[emp_ids2[0]] = sheet.id
emp_ids.append(emp_ids2[0])
for emp in emp_obj.browse(cr, uid, emp_ids, context=context):
if emp.id in link_emp:
sheet_id = link_emp[emp.id]
result[sheet_id] = emp.state
return result
def check_employee_attendance_state(self, cr, uid, sheet_id, context=None):
ids_signin = self.pool.get('hr.attendance').search(cr,uid,[('sheet_id', '=', sheet_id),('action','=','sign_in')])
ids_signout = self.pool.get('hr.attendance').search(cr,uid,[('sheet_id', '=', sheet_id),('action','=','sign_out')])
@@ -245,23 +226,31 @@ class hr_timesheet_sheet(osv.osv):
self.write(cr, uid, [sheet.id], {'date_current': sheet.date_to,}, context=context)
return True
def sign(self, cr, uid, ids, typ, context=None):
emp_obj = self.pool.get('hr.employee')
def check_sign(self, cr, uid, ids, typ, context=None):
sheet = self.browse(cr, uid, ids, context=context)[0]
if context is None:
context = {}
if not sheet.date_current == time.strftime('%Y-%m-%d'):
raise osv.except_osv(_('Error !'), _('You cannot sign in/sign out from an other date than today'))
emp_id = sheet.employee_id.id
context['sheet_id']=ids[0]
emp_obj.attendance_action_change(cr, uid, [emp_id], type=typ, context=context,)
return True
def sign(self, cr, uid, ids, typ, context=None):
self.check_sign(cr, uid, ids, typ, context=context)
sign_obj = self.pool.get('hr.sign.in.out')
sheet = self.browse(cr, uid, ids, context=context)[0]
context['emp_id'] = [sheet.employee_id.id]
sign_id = sign_obj.create(cr, uid, {}, context=context)
methods = {'sign_in': sign_obj.si_check,
'sign_out': sign_obj.so_check}
wizard_result = methods[typ](cr, uid, [sign_id], context=context)
if wizard_result.get('type', False) == 'ir.actions.act_window_close':
return True # ensure we do not close the main window !
wizard_result['nodestroy'] = True # do not destroy the main window !
return wizard_result
def sign_in(self, cr, uid, ids, context=None):
return self.sign(cr,uid,ids,'sign_in',context=None)
return self.sign(cr, uid, ids, 'sign_in', context=context)
def sign_out(self, cr, uid, ids, context=None):
return self.sign(cr,uid,ids,'sign_out',context=None)
return self.sign(cr, uid, ids, 'sign_out', context=context)
_columns = {
'name': fields.char('Note', size=64, select=1,
@@ -286,7 +275,7 @@ class hr_timesheet_sheet(osv.osv):
help=' * The \'Draft\' state is used when a user is encoding a new and unconfirmed timesheet. \
\n* The \'Confirmed\' state is used for to confirm the timesheet by user. \
\n* The \'Done\' state is used when users timesheet is accepted by his/her senior.'),
'state_attendance' : fields.function(_state_attendance, type='selection', selection=[('absent', 'Absent'), ('present', 'Present'),('none','No employee defined')], string='Current Status'),
'state_attendance' : fields.related('employee_id', 'state', type='selection', selection=[('absent', 'Absent'), ('present', 'Present')], string='Current Status', readonly=True),
'total_attendance_day': fields.function(_total_day, string='Total Attendance', multi="_total_day"),
'total_timesheet_day': fields.function(_total_day, string='Total Timesheet', multi="_total_day"),
'total_difference_day': fields.function(_total_day, string='Difference', multi="_total_day"),
@@ -90,10 +90,10 @@
</tree>
</field>
<group col="4" colspan="1">
<field name="state_attendance"/>
<button name="sign_in" string="Sign In" type="object" icon="terp-gtk-jump-to-ltr" attrs="{'invisible':[('state_attendance','&lt;&gt;','absent')]}"/>
<button name="sign_out" string="Sign Out" type="object" icon="terp-gtk-jump-to-rtl" attrs="{'invisible':[('state_attendance','&lt;&gt;','present')]}"/>
<field name="total_attendance_day" widget="float_time" colspan="4"/>
<field name="state_attendance"/>
<button name="sign_in" string="Sign In" type="object" icon="terp-gtk-jump-to-ltr"/>
<button name="sign_out" string="Sign Out" type="object" icon="terp-gtk-jump-to-rtl"/>
<field name="total_attendance_day" widget="float_time" colspan="4"/>
</group>
<field colspan="4" context="{'date':date_current,'user_id':user_id}" domain="[('name','=',date_current)]" name="timesheet_ids" nolabel="1">
<tree editable="top" string="Timesheet Lines">
+9 -9
View File
@@ -8,14 +8,14 @@ msgstr ""
"Project-Id-Version: openobject-addons\n"
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
"POT-Creation-Date: 2011-01-11 11:15+0000\n"
"PO-Revision-Date: 2010-11-20 07:54+0000\n"
"Last-Translator: Martin Pihl <martinpihl@gmail.com>\n"
"PO-Revision-Date: 2011-11-01 20:17+0000\n"
"Last-Translator: OpenERP Danmark / Henning Dinsen <Unknown>\n"
"Language-Team: Danish <da@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-19 05:14+0000\n"
"X-Generator: Launchpad (build 14157)\n"
"X-Launchpad-Export-Date: 2011-11-02 04:56+0000\n"
"X-Generator: Launchpad (build 14214)\n"
#. module: idea
#: help:idea.category,visibility:0
@@ -43,7 +43,7 @@ msgstr "Kommentarer"
#. module: idea
#: view:idea.idea:0
msgid "Submit Vote"
msgstr "Indsend Stemme"
msgstr "Indsend stemme"
#. module: idea
#: model:ir.actions.act_window,name:idea.action_report_vote_all
@@ -492,7 +492,7 @@ msgstr ""
#. module: idea
#: field:idea.category,summary:0
msgid "Summary"
msgstr ""
msgstr "Kort beskrivelse"
#. module: idea
#: field:idea.idea,name:0
@@ -551,7 +551,7 @@ msgstr "Luk"
#: view:idea.idea:0
#: view:report.vote:0
msgid "Open"
msgstr ""
msgstr "Åbn"
#. module: idea
#: view:report.vote:0
@@ -667,7 +667,7 @@ msgstr ""
#. module: idea
#: view:idea.idea:0
msgid "Accept"
msgstr ""
msgstr "Godkend"
#. module: idea
#: field:idea.post.vote,vote:0
@@ -678,7 +678,7 @@ msgstr ""
#: view:report.vote:0
#: field:report.vote,year:0
msgid "Year"
msgstr ""
msgstr "År"
#. module: idea
#: view:idea.select:0
+4 -1
View File
@@ -4,7 +4,7 @@
# Copyright (C) 2009 Renato Lima - Akretion #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU General Public License as published by #
#it under the terms of the GNU Affero General Public License as published by #
#the Free Software Foundation, either version 3 of the License, or #
#(at your option) any later version. #
# #
@@ -17,5 +17,8 @@
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
#################################################################################
import account
import l10n_br
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+32 -11
View File
@@ -4,7 +4,7 @@
# Copyright (C) 2009 Renato Lima - Akretion
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
@@ -20,29 +20,50 @@
{
'name': 'Brazilian Localization',
'description': 'Brazilian Localization',
'category': 'Localization/Account Charts',
'description': """
This is the base module to manage the accounting chart for Brazil in OpenERP.
=============================================================================
Base module for the Brazilian localization
==========================================
Brazilian accounting chart and localization.
""",
'author': 'OpenERP Brasil',
This module consists in:
- Generic Brazilian chart of accounts
- Brazilian taxes such as:
- IPI
- ICMS
- PIS
- COFINS
- ISS
- IR
- IRPJ
- CSLL
- Tax Situation Code (CST) required for the electronic fiscal invoicing (NFe)
The field tax_discount has also been added in the account.tax.template and account.tax objects to allow the proper computation of some Brazilian VATs such as ICMS. The chart of account creation wizard has been extended to propagate those new data properly.
It's important to note however that this module lack many implementations to use OpenERP properly in Brazil. Those implementations (such as the electronic fiscal Invoicing which is already operational) are brought by more than 15 additional modules of the Brazilian Launchpad localization project https://launchpad.net/openerp.pt-br-localiz and their dependencies in the extra addons branch. Those modules aim at not breaking with the remarkable OpenERP modularity, this is why they are numerous but small. One of the reasons for maintaining those modules apart is that Brazilian Localization leaders need commit rights agility to complete the localization as companies fund the remaining legal requirements (such as soon fiscal ledgers, accounting SPED, fiscal SPED and PAF ECF that are still missing as September 2011). Those modules are also strictly licensed under AGPL V3 and today don't come with any additional paid permission for online use of 'private modules'.""",
'license': 'AGPL-3',
'author': 'Akretion, OpenERP Brasil',
'website': 'http://openerpbrasil.org',
'version': '0.6',
'depends': ['account','account_chart'],
'init_xml': [],
'update_xml': [
'init_xml': [
'data/account.account.type.csv',
'data/account.tax.code.template.csv',
'data/account.account.template.csv',
'data/l10n_br_account_chart_template.xml',
'data/account_tax_template.xml'
'data/account_tax_template.xml',
'data/l10n_br_data.xml',
'security/ir.model.access.csv',
],
'update_xml': [
'account_view.xml',
'l10n_br_view.xml',
],
'installable': True,
'certificate' : '001280994939126801405',
'images': ['images/1_config_chart_l10n_br.jpeg','images/2_l10n_br_chart.jpeg'],
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+177
View File
@@ -0,0 +1,177 @@
# -*- encoding: utf-8 -*-
#################################################################################
# #
# Copyright (C) 2009 Renato Lima - Akretion #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU Affero General Public License as published by #
#the Free Software Foundation, either version 3 of the License, or #
#(at your option) any later version. #
# #
#This program is distributed in the hope that it will be useful, #
#but WITHOUT ANY WARRANTY; without even the implied warranty of #
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
#GNU General Public License for more details. #
# #
#You should have received a copy of the GNU General Public License #
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
#################################################################################
import time
from datetime import datetime, timedelta
from dateutil.relativedelta import relativedelta
from operator import itemgetter
import netsvc
import pooler
from osv import fields, osv
import decimal_precision as dp
from tools.misc import currency
from tools.translate import _
from tools import config
class account_tax_code_template(osv.osv):
_inherit = 'account.tax.code.template'
_columns = {
'domain':fields.char('Domain', size=32, help="This field is only used if you develop your own module allowing developers to create specific taxes in a custom domain."),
'tax_discount': fields.boolean('Discount this Tax in Prince', help="Mark it for (ICMS, PIS e etc.)."),
}
account_tax_code_template()
class account_tax_code(osv.osv):
_inherit = 'account.tax.code'
_columns = {
'domain':fields.char('Domain', size=32, help="This field is only used if you develop your own module allowing developers to create specific taxes in a custom domain."),
'tax_discount': fields.boolean('Discount this Tax in Prince', help="Mark it for (ICMS, PIS e etc.)."),
}
account_tax_code()
class account_tax_template(osv.osv):
_inherit = 'account.tax.template'
def get_precision_tax():
def change_digit_tax(cr):
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, 1, 'Account')
return (16, res+2)
return change_digit_tax
_columns = {
'tax_discount': fields.boolean('Discount this Tax in Prince', help="Mark it for (ICMS, PIS e etc.)."),
'base_reduction': fields.float('Redution', required=True, digits_compute=get_precision_tax(), help="For taxes of type percentage, enter % ratio between 0-1."),
'amount_mva': fields.float('MVA Percent', required=True, digits_compute=get_precision_tax(), help="For taxes of type percentage, enter % ratio between 0-1."),
'type': fields.selection( [('percent','Percentage'), ('fixed','Fixed Amount'), ('none','None'), ('code','Python Code'), ('balance','Balance'), ('quantity','Quantity')], 'Tax Type', required=True,
help="The computation method for the tax amount."),
}
_defaults = {
'base_reduction': 0,
'amount_mva': 0,
}
def onchange_tax_code_id(self, cr, uid, ids, tax_code_id, context=None):
result = {'value': {}}
if not tax_code_id:
return result
obj_tax_code = self.pool.get('account.tax.code.template').browse(cr, uid, tax_code_id)
if obj_tax_code:
result['value']['tax_discount'] = obj_tax_code.tax_discount
result['value']['domain'] = obj_tax_code.domain
return result
account_tax_template()
class account_tax(osv.osv):
_inherit = 'account.tax'
def get_precision_tax():
def change_digit_tax(cr):
res = pooler.get_pool(cr.dbname).get('decimal.precision').precision_get(cr, 1, 'Account')
return (16, res+2)
return change_digit_tax
_columns = {
'tax_discount': fields.boolean('Discount this Tax in Prince', help="Mark it for (ICMS, PIS e etc.)."),
'base_reduction': fields.float('Redution', required=True, digits_compute=get_precision_tax(), help="Um percentual decimal em % entre 0-1."),
'amount_mva': fields.float('MVA Percent', required=True, digits_compute=get_precision_tax(), help="Um percentual decimal em % entre 0-1."),
'type': fields.selection( [('percent','Percentage'), ('fixed','Fixed Amount'), ('none','None'), ('code','Python Code'), ('balance','Balance'), ('quantity','Quantity')], 'Tax Type', required=True,
help="The computation method for the tax amount."),
}
_defaults = {
'base_reduction': 0,
'amount_mva': 0,
}
def onchange_tax_code_id(self, cr, uid, ids, tax_code_id, context=None):
result = {'value': {}}
if not tax_code_id:
return result
obj_tax_code = self.pool.get('account.tax.code').browse(cr, uid, tax_code_id)
if obj_tax_code:
result['value']['tax_discount'] = obj_tax_code.tax_discount
result['value']['domain'] = obj_tax_code.domain
return result
account_tax()
class account_journal(osv.osv):
_inherit = "account.journal"
_columns = {
'internal_sequence': fields.many2one('ir.sequence', 'Internal Sequence'),
}
account_journal()
class wizard_multi_charts_accounts(osv.osv_memory):
_inherit = 'wizard.multi.charts.accounts'
def execute(self, cr, uid, ids, context=None):
super(wizard_multi_charts_accounts, self).execute(cr, uid, ids, context)
obj_multi = self.browse(cr, uid, ids[0])
obj_acc_tax = self.pool.get('account.tax')
obj_acc_tax_tmp = self.pool.get('account.tax.template')
obj_acc_cst = self.pool.get('l10n_br_account.cst')
obj_acc_cst_tmp = self.pool.get('l10n_br_account.cst.template')
obj_tax_code = self.pool.get('account.tax.code')
obj_tax_code_tmp = self.pool.get('account.tax.code.template')
# Creating Account
obj_acc_root = obj_multi.chart_template_id.account_root_id
tax_code_root_id = obj_multi.chart_template_id.tax_code_root_id.id
company_id = obj_multi.company_id.id
children_tax_code_template = self.pool.get('account.tax.code.template').search(cr, uid, [('parent_id','child_of',[tax_code_root_id])], order='id')
children_tax_code_template.sort()
for tax_code_template in self.pool.get('account.tax.code.template').browse(cr, uid, children_tax_code_template, context=context):
tax_code_id = self.pool.get('account.tax.code').search(cr, uid, [('code','=',tax_code_template.code),('company_id','=',company_id)])
if tax_code_id:
obj_tax_code.write(cr, uid, tax_code_id, {'domain': tax_code_template.domain,'tax_discount': tax_code_template.tax_discount})
cst_tmp_ids = self.pool.get('l10n_br_account.cst.template').search(cr, uid, [('tax_code_template_id','=',tax_code_template.id)], order='id')
for cst_tmp in self.pool.get('l10n_br_account.cst.template').browse(cr, uid, cst_tmp_ids, context=context):
obj_acc_cst.create(cr, uid, {
'code': cst_tmp.code,
'name': cst_tmp.name,
'tax_code_id': tax_code_id[0],
})
tax_ids = self.pool.get('account.tax').search(cr, uid, [('company_id','=',company_id)])
for tax in self.pool.get('account.tax').browse(cr, uid, tax_ids, context=context):
if tax.tax_code_id:
obj_acc_tax.write(cr, uid, tax.id, {'domain': tax.tax_code_id.domain,'tax_discount': tax.tax_code_id.tax_discount})
wizard_multi_charts_accounts()
+114
View File
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- include domain field em account.tax.code and account.tax.code.template from -->
<record model="ir.ui.view" id="view_l10n_br_accout_tax_code_form">
<field name="name">l10n_br_account.tax.code.form</field>
<field name="model">account.tax.code</field>
<field name="inherit_id" ref="account.view_tax_code_form"/>
<field name="arch" type="xml">
<field position="after" name="parent_id">
<field name="domain"/>
<field name="tax_discount" />
</field>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_accout_tax_code_template_form">
<field name="name">l10n_br_account.tax.code.template.form</field>
<field name="model">account.tax.code.template</field>
<field name="inherit_id" ref="account.view_tax_code_template_form"/>
<field name="arch" type="xml">
<field position="after" name="parent_id">
<field name="domain"/>
<field name="tax_discount" />
</field>
</field>
</record>
<!-- Incluir o campo desconto do imposto -->
<record model="ir.ui.view" id="view_l10n_br_account_tax_template_form">
<field name="name">l10n_br_account.tax.template.form</field>
<field name="model">account.tax.template</field>
<field name="inherit_id" ref="account.view_account_tax_template_form"/>
<field name="arch" type="xml">
<field position="after" name="price_include">
<field groups="base.group_extended" name="tax_discount"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_account_tax_form">
<field name="name">l10n_br_account.tax.form</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field position="after" name="price_include">
<field groups="base.group_extended" name="tax_discount"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_account_tax_template_form1">
<field name="name">l10n_br_account.tax.template.form1</field>
<field name="model">account.tax.template</field>
<field name="inherit_id" ref="account.view_account_tax_template_form"/>
<field name="arch" type="xml">
<field position="after" name="amount">
<field groups="base.group_extended" name="base_reduction"/>
<field groups="base.group_extended" name="amount_mva"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_account_tax_form1">
<field name="name">l10n_br_account.tax.form1</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field position="after" name="amount">
<field groups="base.group_extended" name="base_reduction"/>
<field groups="base.group_extended" name="amount_mva"/>
</field>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_account_tax_form2">
<field name="name">l10n_br_account.tax.form2</field>
<field name="model">account.tax</field>
<field name="inherit_id" ref="account.view_tax_form"/>
<field name="arch" type="xml">
<field name="tax_code_id" position="replace" >
<field name="tax_code_id" on_change="onchange_tax_code_id(tax_code_id)" />
</field>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_account_tax_template_form2">
<field name="name">l10n_br_account.tax.template.form2</field>
<field name="model">account.tax.template</field>
<field name="inherit_id" ref="account.view_account_tax_template_form"/>
<field name="arch" type="xml">
<field name="tax_code_id" position="replace" >
<field name="tax_code_id" on_change="onchange_tax_code_id(tax_code_id)" />
</field>
</field>
</record>
<record id="view_l10n_br_journal_form_inherit" model="ir.ui.view">
<field name="name">l10n_br.journal.form.inherit</field>
<field name="model">account.journal</field>
<field name="type">form</field>
<field name="inherit_id" ref="account.view_account_journal_form"/>
<field name="arch" type="xml">
<field name="sequence_id" position="after">
<field name="internal_sequence"/>
</field>
</field>
</record>
</data>
</openerp>
+206 -206
View File
@@ -1,17 +1,17 @@
"id","code","name","parent_id:id","type","user_type:id","reconcile"
"account_template_1","0","Plano de Contas Padrão","","view","ativo","True"
"account_template_1","0","Plano de Contas Padrão",,"view","ativo","True"
"account_template_2","1","ATIVO","account_template_1","view","ativo","True"
"account_template_3","1.1","CIRCULANTE","account_template_2","view","ativo","True"
"account_template_4","1.1.01","DISPONIBILIDADES","account_template_3","view","ativo","True"
"account_template_5","1.1.01.01","CAIXA","account_template_4","view","ativo","True"
"account_template_6","1.1.01.01.0001","Caixa Geral","account_template_5","receivable","ativo","True"
"account_template_7","1.1.01.01.0002","Fundo Fixo","account_template_5","receivable","ativo","True"
"account_template_6","1.1.01.01.0001","Caixa Geral","account_template_5","other","ativo","True"
"account_template_7","1.1.01.01.0002","Fundo Fixo","account_template_5","other","ativo","True"
"account_template_8","1.1.01.02","BANCOS ","account_template_4","view","ativo","True"
"account_template_9","1.1.01.02.0001","Banco C/ Movimento","account_template_8","receivable","ativo","True"
"account_template_9","1.1.01.02.0001","Banco C/ Movimento","account_template_8","other","ativo","True"
"account_template_10","1.1.01.03","VALORES MOBILIÁRIOS-MERC.CAP.INTERNOS","account_template_4","view","ativo","True"
"account_template_11","1.1.01.03.0001","Aplicações Nacionais","account_template_10","receivable","ativo","True"
"account_template_11","1.1.01.03.0001","Aplicações Nacionais","account_template_10","other","ativo","True"
"account_template_12","1.1.01.04","TITULOS DE CAPITALIZAÇÃO","account_template_4","view","ativo","True"
"account_template_13","1.1.01.04.0001","Banco Título de Capitalização","account_template_12","receivable","ativo","True"
"account_template_13","1.1.01.04.0001","Banco Título de Capitalização","account_template_12","other","ativo","True"
"account_template_14","1.1.02","CRÉDITOS","account_template_3","view","ativo","True"
"account_template_15","1.1.02.01","CLIENTES NACIONAIS","account_template_14","view","ativo","True"
"account_template_16","1.1.02.01.0001","Clientes Nacionais","account_template_15","receivable","ativo","True"
@@ -20,186 +20,186 @@
"account_template_19","1.1.02.03","OUTROS VALORES A RECEBER","account_template_14","view","ativo","True"
"account_template_20","1.1.02.03.0001","Outras Contas a Receber","account_template_19","receivable","ativo","True"
"account_template_21","1.1.02.04","DUPLICATAS CONTA VINCULADA","account_template_14","view","ativo","True"
"account_template_22","1.1.02.04.0001","Banco Conta Garantida","account_template_21","receivable","ativo","True"
"account_template_22","1.1.02.04.0001","Banco Conta Garantida","account_template_21","other","ativo","True"
"account_template_23","1.1.02.05","DUPLICATAS CAUCIONADAS","account_template_14","view","ativo","True"
"account_template_24","1.1.02.05.0001","Banco Conta Caucionada","account_template_23","receivable","ativo","True"
"account_template_24","1.1.02.05.0001","Banco Conta Caucionada","account_template_23","other","ativo","True"
"account_template_25","1.1.02.06","CHEQUES DEVOLVIDOS","account_template_14","view","ativo","True"
"account_template_26","1.1.02.06.0001","Cheques Devolvidos","account_template_25","receivable","ativo","True"
"account_template_26","1.1.02.06.0001","Cheques Devolvidos","account_template_25","other","ativo","True"
"account_template_27","1.1.02.07","ADIANTAMENTOS","account_template_14","view","ativo","True"
"account_template_28","1.1.02.07.0002","Adiantamento de Salários","account_template_27","receivable","ativo","True"
"account_template_29","1.1.02.07.0003","Adiantamento Despesa de Viagem","account_template_27","receivable","ativo","True"
"account_template_30","1.1.02.07.0004","Adiantamento de Férias","account_template_27","receivable","ativo","True"
"account_template_31","1.1.02.07.0005","Adiantamento 13º Salário","account_template_27","receivable","ativo","True"
"account_template_32","1.1.02.07.0006","Adiantamento de Pro-Labore a Diretores","account_template_27","receivable","ativo","True"
"account_template_33","1.1.02.07.0001","Adiantamento de PIS a Empregados","account_template_27","receivable","ativo","True"
"account_template_28","1.1.02.07.0002","Adiantamento de Salários","account_template_27","other","ativo","True"
"account_template_29","1.1.02.07.0003","Adiantamento Despesa de Viagem","account_template_27","other","ativo","True"
"account_template_30","1.1.02.07.0004","Adiantamento de Férias","account_template_27","other","ativo","True"
"account_template_31","1.1.02.07.0005","Adiantamento 13º Salário","account_template_27","other","ativo","True"
"account_template_32","1.1.02.07.0006","Adiantamento de Pro-Labore a Diretores","account_template_27","other","ativo","True"
"account_template_33","1.1.02.07.0001","Adiantamento de PIS a Empregados","account_template_27","other","ativo","True"
"account_template_34","1.1.02.08","ADIANTAMENTO A FORNECEDORES","account_template_14","view","ativo","True"
"account_template_35","1.1.02.08.0001","Adiantamento a Fornecedor","account_template_34","receivable","ativo","True"
"account_template_35","1.1.02.08.0001","Adiantamento a Fornecedor","account_template_34","other","ativo","True"
"account_template_36","1.1.02.09","IMPOSTOS E CONTRIBUIÇÕES A RECUPERAR","account_template_14","view","ativo","True"
"account_template_37","1.1.02.09.0001","CSLL a Recuperar/Compensar","account_template_36","receivable","ativo","True"
"account_template_38","1.1.02.09.0002","CSLL a Compensar Lei 10.833/03","account_template_36","receivable","ativo","True"
"account_template_39","1.1.02.09.0003","COFINS a Recuperar/Compensar","account_template_36","receivable","ativo","True"
"account_template_40","1.1.02.09.0004","COFINS a Compensar Lei 10.833/03","account_template_36","receivable","ativo","True"
"account_template_41","1.1.02.09.0008","Crédito COFINS Não-Cumulativo","account_template_36","receivable","ativo","True"
"account_template_42","1.1.02.09.0009","ICMS a Recuperar","account_template_36","receivable","ativo","True"
"account_template_43","1.1.02.09.0010","ICMS a Recup. s/Ativo Imobilizado","account_template_36","receivable","ativo","True"
"account_template_44","1.1.02.09.0012","IPI a Recuperar/Compensar","account_template_36","receivable","ativo","True"
"account_template_45","1.1.02.09.0013","IPI a Compensar Pedido Restituição","account_template_36","receivable","ativo","True"
"account_template_46","1.1.02.09.0015","IRF s/Aplicações Financeiras","account_template_36","receivable","ativo","True"
"account_template_47","1.1.02.09.0016","IRRF a Recuperar/Compensar","account_template_36","receivable","ativo","True"
"account_template_48","1.1.02.09.0017","IRPJ a Recuperar/Compensar","account_template_36","receivable","ativo","True"
"account_template_49","1.1.02.09.0019","PIS a Recuperar/Compensar","account_template_36","receivable","ativo","True"
"account_template_50","1.1.02.09.0020","PIS a Compensar Lei 10.833/03","account_template_36","receivable","ativo","True"
"account_template_51","1.1.02.09.0022","PIS/COFINS/CSLL a Recuperar","account_template_36","receivable","ativo","True"
"account_template_52","1.1.02.09.0007","Crédito de PIS Não-Cumulativo","account_template_36","receivable","ativo","True"
"account_template_37","1.1.02.09.0001","CSLL a Recuperar/Compensar","account_template_36","other","ativo","True"
"account_template_38","1.1.02.09.0002","CSLL a Compensar Lei 10.833/03","account_template_36","other","ativo","True"
"account_template_39","1.1.02.09.0003","COFINS a Recuperar/Compensar","account_template_36","other","ativo","True"
"account_template_40","1.1.02.09.0004","COFINS a Compensar Lei 10.833/03","account_template_36","other","ativo","True"
"account_template_41","1.1.02.09.0008","Crédito COFINS Não-Cumulativo","account_template_36","other","ativo","True"
"account_template_42","1.1.02.09.0009","ICMS a Recuperar","account_template_36","other","ativo","True"
"account_template_43","1.1.02.09.0010","ICMS a Recup. s/Ativo Imobilizado","account_template_36","other","ativo","True"
"account_template_44","1.1.02.09.0012","IPI a Recuperar/Compensar","account_template_36","other","ativo","True"
"account_template_45","1.1.02.09.0013","IPI a Compensar Pedido Restituição","account_template_36","other","ativo","True"
"account_template_46","1.1.02.09.0015","IRF s/Aplicações Financeiras","account_template_36","other","ativo","True"
"account_template_47","1.1.02.09.0016","IRRF a Recuperar/Compensar","account_template_36","other","ativo","True"
"account_template_48","1.1.02.09.0017","IRPJ a Recuperar/Compensar","account_template_36","other","ativo","True"
"account_template_49","1.1.02.09.0019","PIS a Recuperar/Compensar","account_template_36","other","ativo","True"
"account_template_50","1.1.02.09.0020","PIS a Compensar Lei 10.833/03","account_template_36","other","ativo","True"
"account_template_51","1.1.02.09.0022","PIS/COFINS/CSLL a Recuperar","account_template_36","other","ativo","True"
"account_template_52","1.1.02.09.0007","Crédito de PIS Não-Cumulativo","account_template_36","other","ativo","True"
"account_template_53","1.1.02.10","CRÉDITOS FISCAIS CSLL BASE CALC.NEGATIVA","account_template_14","view","ativo","True"
"account_template_54","1.1.02.10.0001","Base Negativa CSLL - Exerc. Anteriores","account_template_53","receivable","ativo","True"
"account_template_54","1.1.02.10.0001","Base Negativa CSLL - Exerc. Anteriores","account_template_53","other","ativo","True"
"account_template_55","1.1.02.11","CRÉDITOS FISCAIS IRPJ-BASE CALC.NEGATIVA","account_template_14","view","ativo","True"
"account_template_56","1.1.02.11.0001","Base Negativa IRPJ - Exerc. Anteriores","account_template_55","receivable","ativo","True"
"account_template_56","1.1.02.11.0001","Base Negativa IRPJ - Exerc. Anteriores","account_template_55","other","ativo","True"
"account_template_57","1.1.03","ESTOQUES","account_template_3","view","ativo","True"
"account_template_58","1.1.03.01","ESTOQUE DE MERCADORIAS","account_template_57","view","ativo","True"
"account_template_59","1.1.03.01.0001","Insumos (Materiais Diretos)","account_template_58","receivable","ativo","True"
"account_template_60","1.1.03.01.0002","Material de Consumo-Almoxarifado","account_template_58","receivable","ativo","True"
"account_template_61","1.1.03.01.0003","Mercadorias para Revenda","account_template_58","receivable","ativo","True"
"account_template_62","1.1.03.01.0004","Produtos Acabados","account_template_58","receivable","ativo","True"
"account_template_63","1.1.03.01.0005","Produtos em Elaboração","account_template_58","receivable","ativo","True"
"account_template_59","1.1.03.01.0001","Insumos (Materiais Diretos)","account_template_58","other","ativo","True"
"account_template_60","1.1.03.01.0002","Material de Consumo-Almoxarifado","account_template_58","other","ativo","True"
"account_template_61","1.1.03.01.0003","Mercadorias para Revenda","account_template_58","other","ativo","True"
"account_template_62","1.1.03.01.0004","Produtos Acabados","account_template_58","other","ativo","True"
"account_template_63","1.1.03.01.0005","Produtos em Elaboração","account_template_58","other","ativo","True"
"account_template_64","1.1.03.02","(-) DEVOLUÇÕES DE COMPRAS","account_template_57","view","ativo","True"
"account_template_65","1.1.03.02.0001","Devoluções de Compras","account_template_64","receivable","ativo","True"
"account_template_65","1.1.03.02.0001","Devoluções de Compras","account_template_64","other","ativo","True"
"account_template_66","1.1.03.03","TRANSFERÊNCIA DE MERCADORIAS","account_template_57","view","ativo","True"
"account_template_67","1.1.03.03.0001","Transferência de Mercadorias","account_template_66","receivable","ativo","True"
"account_template_67","1.1.03.03.0001","Transferência de Mercadorias","account_template_66","other","ativo","True"
"account_template_68","1.1.03.04","ESTOQUE DE TERCEIROS EM NOSSO PODER","account_template_57","view","ativo","True"
"account_template_69","1.1.03.04.0001","Estoque de Terceiros em N/Poder","account_template_68","receivable","ativo","True"
"account_template_70","1.1.03.04.0002","Entrada P/Industrialização","account_template_68","receivable","ativo","True"
"account_template_71","1.1.03.04.0003","Entrada P/Conserto","account_template_68","receivable","ativo","True"
"account_template_72","1.1.03.04.0004","Entrada P/Demonstração","account_template_68","receivable","ativo","True"
"account_template_73","1.1.03.04.0005","Entrada P/Empréstimo","account_template_68","receivable","ativo","True"
"account_template_74","1.1.03.04.0006","Entrada em Consignação","account_template_68","receivable","ativo","True"
"account_template_75","1.1.03.04.0007","Entrada p/ Garantia","account_template_68","receivable","ativo","True"
"account_template_76","1.1.03.04.0008","Entrada p/ Locação","account_template_68","receivable","ativo","True"
"account_template_77","1.1.03.04.0009","Entrada em Comodato","account_template_68","receivable","ativo","True"
"account_template_69","1.1.03.04.0001","Estoque de Terceiros em N/Poder","account_template_68","other","ativo","True"
"account_template_70","1.1.03.04.0002","Entrada P/Industrialização","account_template_68","other","ativo","True"
"account_template_71","1.1.03.04.0003","Entrada P/Conserto","account_template_68","other","ativo","True"
"account_template_72","1.1.03.04.0004","Entrada P/Demonstração","account_template_68","other","ativo","True"
"account_template_73","1.1.03.04.0005","Entrada P/Empréstimo","account_template_68","other","ativo","True"
"account_template_74","1.1.03.04.0006","Entrada em Consignação","account_template_68","other","ativo","True"
"account_template_75","1.1.03.04.0007","Entrada p/ Garantia","account_template_68","other","ativo","True"
"account_template_76","1.1.03.04.0008","Entrada p/ Locação","account_template_68","other","ativo","True"
"account_template_77","1.1.03.04.0009","Entrada em Comodato","account_template_68","other","ativo","True"
"account_template_78","1.1.03.05","NOSSO ESTOQUE EM PODER DE TERCEIROS","account_template_57","view","ativo","True"
"account_template_79","1.1.03.05.0001","N/Estoque em Poder de Terceiros","account_template_78","receivable","ativo","True"
"account_template_80","1.1.03.05.0002","Remessa P/Industrialização","account_template_78","receivable","ativo","True"
"account_template_81","1.1.03.05.0003","Remessa P/Conserto","account_template_78","receivable","ativo","True"
"account_template_82","1.1.03.05.0004","Remessa P/Demonstração","account_template_78","receivable","ativo","True"
"account_template_83","1.1.03.05.0005","Remessa P/Exposição","account_template_78","receivable","ativo","True"
"account_template_84","1.1.03.05.0006","Remessa P/Empréstimo","account_template_78","receivable","ativo","True"
"account_template_85","1.1.03.05.0007","Remessa em Consignação","account_template_78","receivable","ativo","True"
"account_template_86","1.1.03.05.0008","Remessa P/Locação","account_template_78","receivable","ativo","True"
"account_template_87","1.1.03.05.0009","Remessa em Garantia","account_template_78","receivable","ativo","True"
"account_template_79","1.1.03.05.0001","N/Estoque em Poder de Terceiros","account_template_78","other","ativo","True"
"account_template_80","1.1.03.05.0002","Remessa P/Industrialização","account_template_78","other","ativo","True"
"account_template_81","1.1.03.05.0003","Remessa P/Conserto","account_template_78","other","ativo","True"
"account_template_82","1.1.03.05.0004","Remessa P/Demonstração","account_template_78","other","ativo","True"
"account_template_83","1.1.03.05.0005","Remessa P/Exposição","account_template_78","other","ativo","True"
"account_template_84","1.1.03.05.0006","Remessa P/Empréstimo","account_template_78","other","ativo","True"
"account_template_85","1.1.03.05.0007","Remessa em Consignação","account_template_78","other","ativo","True"
"account_template_86","1.1.03.05.0008","Remessa P/Locação","account_template_78","other","ativo","True"
"account_template_87","1.1.03.05.0009","Remessa em Garantia","account_template_78","other","ativo","True"
"account_template_88","1.1.03.06","(-) IMPOSTOS S/ESTOQUE DE TERCEIROS","account_template_57","view","ativo","True"
"account_template_89","1.1.03.06.0001","(-) ICMS s/Estoque de Terceiros","account_template_88","receivable","ativo","True"
"account_template_90","1.1.03.06.0002","(-) IPI s/Estoque de Terceiros","account_template_88","receivable","ativo","True"
"account_template_89","1.1.03.06.0001","(-) ICMS s/Estoque de Terceiros","account_template_88","other","ativo","True"
"account_template_90","1.1.03.06.0002","(-) IPI s/Estoque de Terceiros","account_template_88","other","ativo","True"
"account_template_91","1.1.03.07","IMPORTAÇÕES EM ANDAMENTO","account_template_57","view","ativo","True"
"account_template_92","1.1.03.07.0001","D.I. nº 0000000-0 Importação","account_template_91","receivable","ativo","True"
"account_template_92","1.1.03.07.0001","D.I. nº 0000000-0 Importação","account_template_91","other","ativo","True"
"account_template_93","1.1.03.08","COMPRAS PARA ENTREGA FUTURA","account_template_57","view","ativo","True"
"account_template_94","1.1.03.08.0001","Compras p/Entrega Futura","account_template_93","receivable","ativo","True"
"account_template_94","1.1.03.08.0001","Compras p/Entrega Futura","account_template_93","other","ativo","True"
"account_template_95","1.1.04","DESPESAS DO EXERCÍCIO SEGUINTE","account_template_3","view","ativo","True"
"account_template_96","1.1.04.01","SEGUROS A APROPRIAR","account_template_95","view","ativo","True"
"account_template_97","1.1.04.01.0001","Seguros de Veículos","account_template_96","receivable","ativo","True"
"account_template_98","1.1.04.01.0002","Seguros Prédios/Bens/Estoques","account_template_96","receivable","ativo","True"
"account_template_99","1.1.04.01.0003","Seguros s/Lucros Cessantes","account_template_96","receivable","ativo","True"
"account_template_97","1.1.04.01.0001","Seguros de Veículos","account_template_96","other","ativo","True"
"account_template_98","1.1.04.01.0002","Seguros Prédios/Bens/Estoques","account_template_96","other","ativo","True"
"account_template_99","1.1.04.01.0003","Seguros s/Lucros Cessantes","account_template_96","other","ativo","True"
"account_template_100","1.1.04.02","ASSINATURAS A APROPRIAR","account_template_95","view","ativo","True"
"account_template_101","1.1.04.02.0001","Assinaturas de Jornais/Boletins/Revistas","account_template_100","receivable","ativo","True"
"account_template_101","1.1.04.02.0001","Assinaturas de Jornais/Boletins/Revistas","account_template_100","other","ativo","True"
"account_template_102","1.1.04.03","DESPESAS FINANCEIRAS A APROPRIAR","account_template_95","view","ativo","True"
"account_template_103","1.1.04.03.0001","Juros s/ Financiamentos a Apropriar","account_template_102","receivable","ativo","True"
"account_template_103","1.1.04.03.0001","Juros s/ Financiamentos a Apropriar","account_template_102","other","ativo","True"
"account_template_104","1.1.05","CONTAS RETIFICADORAS","account_template_3","view","ativo","True"
"account_template_105","1.1.05.01","(-) DUPLICATAS DESCONTADAS","account_template_104","view","ativo","True"
"account_template_106","1.1.05.01.0001","(-) Banco Conta - Duplicata Descontada","account_template_105","receivable","ativo","True"
"account_template_106","1.1.05.01.0001","(-) Banco Conta - Duplicata Descontada","account_template_105","other","ativo","True"
"account_template_107","1.2","ATIVO NÃO CIRCULANTE","account_template_2","view","ativo","True"
"account_template_108","1.2.01","REALIZÁVEL A LONGO PRAZO","account_template_107","view","ativo","True"
"account_template_109","1.2.01.01","VALORES MOBILIÁRIOS-MERC.CAP.INTERNO","account_template_108","view","ativo","True"
"account_template_110","1.2.01.01.0001","Aplicações Nacionais","account_template_109","receivable","ativo","True"
"account_template_110","1.2.01.01.0001","Aplicações Nacionais","account_template_109","other","ativo","True"
"account_template_111","1.2.01.02","DÉBITOS DE SÓCIOS","account_template_108","view","ativo","True"
"account_template_112","1.2.01.02.0001","Sócio","account_template_111","receivable","ativo","True"
"account_template_112","1.2.01.02.0001","Sócio","account_template_111","other","ativo","True"
"account_template_113","1.2.01.03","EMPRÉSTIMOS A EMPRESAS LIGADAS","account_template_108","view","ativo","True"
"account_template_114","1.2.01.03.0001","Empresa Ligada","account_template_113","receivable","ativo","True"
"account_template_114","1.2.01.03.0001","Empresa Ligada","account_template_113","other","ativo","True"
"account_template_115","1.2.01.04","EMPRÉSTIMOS A TERCEIROS","account_template_108","view","ativo","True"
"account_template_116","1.2.01.04.0001","Empréstimo de Terceiros","account_template_115","receivable","ativo","True"
"account_template_116","1.2.01.04.0001","Empréstimo de Terceiros","account_template_115","other","ativo","True"
"account_template_117","1.2.01.05","DEPÓSITOS JUDICIAIS","account_template_108","view","ativo","True"
"account_template_118","1.2.01.05.0001","Depósitos Judiciais","account_template_117","receivable","ativo","True"
"account_template_118","1.2.01.05.0001","Depósitos Judiciais","account_template_117","other","ativo","True"
"account_template_119","1.2.02","INVESTIMENTOS","account_template_107","view","ativo","True"
"account_template_120","1.2.02.01","PARTICIPAÇÕES SOCIETÁRIAS","account_template_119","view","ativo","True"
"account_template_121","1.2.02.01.0001","Participação Societárias","account_template_120","receivable","ativo","True"
"account_template_121","1.2.02.01.0001","Participação Societárias","account_template_120","other","ativo","True"
"account_template_122","1.2.03","IMOBILIZADO - MATRIZ","account_template_107","view","ativo","True"
"account_template_123","1.2.03.01","IMOBILIZADO","account_template_122","view","ativo","True"
"account_template_124","1.2.03.01.0001","Máquinas e Equipamentos ","account_template_123","receivable","ativo","True"
"account_template_125","1.2.03.01.0002","Terrenos","account_template_123","receivable","ativo","True"
"account_template_126","1.2.03.01.0003","Ferramentas","account_template_123","receivable","ativo","True"
"account_template_127","1.2.03.01.0004","Modelos, Moldes e Matrizes","account_template_123","receivable","ativo","True"
"account_template_128","1.2.03.01.0005","Móveis e Utensílios","account_template_123","receivable","ativo","True"
"account_template_129","1.2.03.01.0006","Veículos","account_template_123","receivable","ativo","True"
"account_template_130","1.2.03.01.0007","Equipamentos de Informática","account_template_123","receivable","ativo","True"
"account_template_131","1.2.03.01.0008","Instalações","account_template_123","receivable","ativo","True"
"account_template_132","1.2.03.01.0009","Benfeitoria em Imóveis de Terceiros","account_template_123","receivable","ativo","True"
"account_template_133","1.2.03.01.0010","Direito de Uso Linhas Telefônicas","account_template_123","receivable","ativo","True"
"account_template_134","1.2.03.01.0011","Edifícios e Construções","account_template_123","receivable","ativo","True"
"account_template_124","1.2.03.01.0001","Máquinas e Equipamentos ","account_template_123","other","ativo","True"
"account_template_125","1.2.03.01.0002","Terrenos","account_template_123","other","ativo","True"
"account_template_126","1.2.03.01.0003","Ferramentas","account_template_123","other","ativo","True"
"account_template_127","1.2.03.01.0004","Modelos, Moldes e Matrizes","account_template_123","other","ativo","True"
"account_template_128","1.2.03.01.0005","Móveis e Utensílios","account_template_123","other","ativo","True"
"account_template_129","1.2.03.01.0006","Veículos","account_template_123","other","ativo","True"
"account_template_130","1.2.03.01.0007","Equipamentos de Informática","account_template_123","other","ativo","True"
"account_template_131","1.2.03.01.0008","Instalações","account_template_123","other","ativo","True"
"account_template_132","1.2.03.01.0009","Benfeitoria em Imóveis de Terceiros","account_template_123","other","ativo","True"
"account_template_133","1.2.03.01.0010","Direito de Uso Linhas Telefônicas","account_template_123","other","ativo","True"
"account_template_134","1.2.03.01.0011","Edifícios e Construções","account_template_123","other","ativo","True"
"account_template_135","1.2.03.02","CONSTRUÇÕES EM ANDAMENTO","account_template_122","view","ativo","True"
"account_template_136","1.2.03.02.0001","Imóvel","account_template_135","receivable","ativo","True"
"account_template_136","1.2.03.02.0001","Imóvel","account_template_135","other","ativo","True"
"account_template_137","1.2.03.04","PARTICIPAÇÃO EM CONSÓRCIOS","account_template_122","view","ativo","True"
"account_template_138","1.2.03.04.0001","Consórcio","account_template_137","receivable","ativo","True"
"account_template_138","1.2.03.04.0001","Consórcio","account_template_137","other","ativo","True"
"account_template_139","1.2.03.05","(-) DEPRECIAÇÃO ACUMULADA","account_template_122","view","ativo","True"
"account_template_140","1.2.03.05.0001","Deprec.de Máquinas e Equipamentos","account_template_139","receivable","ativo","True"
"account_template_141","1.2.03.05.0002","Deprec.de Modelos, Moldes e Matrizes","account_template_139","receivable","ativo","True"
"account_template_142","1.2.03.05.0003","Deprec.de Móveis e Utensílios","account_template_139","receivable","ativo","True"
"account_template_143","1.2.03.05.0004","Deprec.de Veículos","account_template_139","receivable","ativo","True"
"account_template_144","1.2.03.05.0005","Deprec.de Equip.de Informática","account_template_139","receivable","ativo","True"
"account_template_145","1.2.03.05.0006","Deprec.de Instalações","account_template_139","receivable","ativo","True"
"account_template_146","1.2.03.05.0007","Deprec.de Ferramentas","account_template_139","receivable","ativo","True"
"account_template_147","1.2.03.05.0008","Deprec.de Edificações","account_template_139","receivable","ativo","True"
"account_template_140","1.2.03.05.0001","Deprec.de Máquinas e Equipamentos","account_template_139","other","ativo","True"
"account_template_141","1.2.03.05.0002","Deprec.de Modelos, Moldes e Matrizes","account_template_139","other","ativo","True"
"account_template_142","1.2.03.05.0003","Deprec.de Móveis e Utensílios","account_template_139","other","ativo","True"
"account_template_143","1.2.03.05.0004","Deprec.de Veículos","account_template_139","other","ativo","True"
"account_template_144","1.2.03.05.0005","Deprec.de Equip.de Informática","account_template_139","other","ativo","True"
"account_template_145","1.2.03.05.0006","Deprec.de Instalações","account_template_139","other","ativo","True"
"account_template_146","1.2.03.05.0007","Deprec.de Ferramentas","account_template_139","other","ativo","True"
"account_template_147","1.2.03.05.0008","Deprec.de Edificações","account_template_139","other","ativo","True"
"account_template_148","1.2.03.06","(-) AMORTIZAÇÃO ACUMULADA","account_template_122","view","ativo","True"
"account_template_149","1.2.03.06.0001","Amortiz.Benfeit.em Imóveis de Terceiros","account_template_148","receivable","ativo","True"
"account_template_150","1.2.03.06.0002","Amortiz.Direito Uso Linhas Telefônica","account_template_148","receivable","ativo","True"
"account_template_149","1.2.03.06.0001","Amortiz.Benfeit.em Imóveis de Terceiros","account_template_148","other","ativo","True"
"account_template_150","1.2.03.06.0002","Amortiz.Direito Uso Linhas Telefônica","account_template_148","other","ativo","True"
"account_template_151","1.2.03.07","ICMS S/IMOBILIZADO-PARCELA NÃO CREDITADA","account_template_122","view","ativo","True"
"account_template_152","1.2.03.07.0001","ICMS s/ Imobilizado parc. não creditável","account_template_151","receivable","ativo","True"
"account_template_153","1.2.03.07.0002","(-) Amortização ICMS não creditado","account_template_151","receivable","ativo","True"
"account_template_152","1.2.03.07.0001","ICMS s/ Imobilizado parc. não creditável","account_template_151","other","ativo","True"
"account_template_153","1.2.03.07.0002","(-) Amortização ICMS não creditado","account_template_151","other","ativo","True"
"account_template_154","1.2.04","IMOBILIZADO - FILIAL","account_template_107","view","ativo","True"
"account_template_155","1.2.04.01","IMOBILIZADO","account_template_154","view","ativo","True"
"account_template_156","1.2.04.01.0001","Máquinas e Equipamentos","account_template_155","receivable","ativo","True"
"account_template_157","1.2.04.01.0002","Terrenos","account_template_155","receivable","ativo","True"
"account_template_158","1.2.04.01.0003","Ferramentas","account_template_155","receivable","ativo","True"
"account_template_159","1.2.04.01.0004","Edifícios","account_template_155","receivable","ativo","True"
"account_template_160","1.2.04.01.0005","Móveis e Utensílios","account_template_155","receivable","ativo","True"
"account_template_161","1.2.04.01.0006","Veículos","account_template_155","receivable","ativo","True"
"account_template_162","1.2.04.01.0007","Equipamentos de Informática","account_template_155","receivable","ativo","True"
"account_template_163","1.2.04.01.0008","Instalações","account_template_155","receivable","ativo","True"
"account_template_156","1.2.04.01.0001","Máquinas e Equipamentos","account_template_155","other","ativo","True"
"account_template_157","1.2.04.01.0002","Terrenos","account_template_155","other","ativo","True"
"account_template_158","1.2.04.01.0003","Ferramentas","account_template_155","other","ativo","True"
"account_template_159","1.2.04.01.0004","Edifícios","account_template_155","other","ativo","True"
"account_template_160","1.2.04.01.0005","Móveis e Utensílios","account_template_155","other","ativo","True"
"account_template_161","1.2.04.01.0006","Veículos","account_template_155","other","ativo","True"
"account_template_162","1.2.04.01.0007","Equipamentos de Informática","account_template_155","other","ativo","True"
"account_template_163","1.2.04.01.0008","Instalações","account_template_155","other","ativo","True"
"account_template_164","1.2.04.02","(-) DEPRECIAÇÃO ACUMULADA - FILIAL","account_template_154","view","ativo","True"
"account_template_165","1.2.04.02.0001","Deprec.de Máquinas e Equipamentos","account_template_164","receivable","ativo","True"
"account_template_166","1.2.04.02.0003","Deprec.de Móveis e Utensílios","account_template_164","receivable","ativo","True"
"account_template_167","1.2.04.02.0004","Deprec.de Veículos","account_template_164","receivable","ativo","True"
"account_template_168","1.2.04.02.0005","Deprec.de Equip.de Informática","account_template_164","receivable","ativo","True"
"account_template_169","1.2.04.02.0006","Deprec.de Instalações","account_template_164","receivable","ativo","True"
"account_template_170","1.2.04.02.0007","Deprec.de Ferramentas","account_template_164","receivable","ativo","True"
"account_template_171","1.2.04.02.0008","Deprec.de Edifícios","account_template_164","receivable","ativo","True"
"account_template_165","1.2.04.02.0001","Deprec.de Máquinas e Equipamentos","account_template_164","other","ativo","True"
"account_template_166","1.2.04.02.0003","Deprec.de Móveis e Utensílios","account_template_164","other","ativo","True"
"account_template_167","1.2.04.02.0004","Deprec.de Veículos","account_template_164","other","ativo","True"
"account_template_168","1.2.04.02.0005","Deprec.de Equip.de Informática","account_template_164","other","ativo","True"
"account_template_169","1.2.04.02.0006","Deprec.de Instalações","account_template_164","other","ativo","True"
"account_template_170","1.2.04.02.0007","Deprec.de Ferramentas","account_template_164","other","ativo","True"
"account_template_171","1.2.04.02.0008","Deprec.de Edifícios","account_template_164","other","ativo","True"
"account_template_172","1.2.04.03","(-) AMORTIZAÇÃO ACUMULADA - FILIAL","account_template_154","view","ativo","True"
"account_template_173","1.2.04.03.0001","Amortização Acumulada","account_template_172","receivable","ativo","True"
"account_template_173","1.2.04.03.0001","Amortização Acumulada","account_template_172","other","ativo","True"
"account_template_174","1.2.05","BENS INTAGÍVEIS - MATRIZ","account_template_107","view","ativo","True"
"account_template_175","1.2.05.01","INTANGÍVEL","account_template_174","view","ativo","True"
"account_template_176","1.2.05.01.0001","Marcas e Patentes","account_template_175","receivable","ativo","True"
"account_template_177","1.2.05.01.0002","Softwares","account_template_175","receivable","ativo","True"
"account_template_176","1.2.05.01.0001","Marcas e Patentes","account_template_175","other","ativo","True"
"account_template_177","1.2.05.01.0002","Softwares","account_template_175","other","ativo","True"
"account_template_178","1.2.05.02","(-) AMORTIZAÇÃO DO INTANGÍVEL","account_template_174","view","ativo","True"
"account_template_179","1.2.05.02.0001","Amortiz.de Marcas e Patentes","account_template_178","receivable","ativo","True"
"account_template_180","1.2.05.02.0002","Amortização de Softwares","account_template_178","receivable","ativo","True"
"account_template_179","1.2.05.02.0001","Amortiz.de Marcas e Patentes","account_template_178","other","ativo","True"
"account_template_180","1.2.05.02.0002","Amortização de Softwares","account_template_178","other","ativo","True"
"account_template_181","1.2.06","BENS INTANGÍVEIS - FILIAL","account_template_107","view","ativo","True"
"account_template_182","1.2.06.01","INTANGÍVEL","account_template_181","view","ativo","True"
"account_template_183","1.2.06.01.0001","Softwares","account_template_182","receivable","ativo","True"
"account_template_183","1.2.06.01.0001","Softwares","account_template_182","other","ativo","True"
"account_template_184","1.2.06.02","(-) AMORTIZAÇÃO DO INTANGÍVEL","account_template_181","view","ativo","True"
"account_template_185","1.2.06.02.0001","Amortização de Softwares","account_template_184","receivable","ativo","True"
"account_template_185","1.2.06.02.0001","Amortização de Softwares","account_template_184","other","ativo","True"
"account_template_186","1.2.07","TRANSFERÊNCIAS DE ATIVO IMOBILIZADO","account_template_107","view","ativo","True"
"account_template_187","1.2.07.01","TRANSFERÊNCIA DE ATIVO IMOBILIZADO","account_template_186","view","ativo","True"
"account_template_188","1.2.07.01.0001","Transferência de Ativo Imobilizado","account_template_187","receivable","ativo","True"
"account_template_188","1.2.07.01.0001","Transferência de Ativo Imobilizado","account_template_187","other","ativo","True"
"account_template_189","1.2.08","DIFERIDO","account_template_107","view","ativo","True"
"account_template_190","1.2.08.01","DESPESAS PRÉ-INDUSTRIAIS","account_template_189","view","ativo","True"
"account_template_191","1.2.08.01.0001","Gastos Gerais de Implantação","account_template_190","receivable","ativo","True"
"account_template_192","1.2.08.01.0002","(-) Amortização Acumulada","account_template_190","receivable","ativo","True"
"account_template_191","1.2.08.01.0001","Gastos Gerais de Implantação","account_template_190","other","ativo","True"
"account_template_192","1.2.08.01.0002","(-) Amortização Acumulada","account_template_190","other","ativo","True"
"account_template_193","2","PASSIVO","account_template_1","view","passivo","True"
"account_template_194","2.1","CIRCULANTE","account_template_193","view","passivo","True"
"account_template_195","2.1.01","OBRIGAÇÕES A CURTO PRAZO","account_template_194","view","passivo","True"
"account_template_196","2.1.01.01","FINANCIAMENTOS A CURTO PRAZO - SFN","account_template_195","view","passivo","True"
"account_template_197","2.1.01.01.0001","Banco Conta Empréstimo","account_template_196","payable","passivo","True"
"account_template_197","2.1.01.01.0001","Banco Conta Empréstimo","account_template_196","other","passivo","True"
"account_template_198","2.1.01.02","CHEQUES A COMPENSAR","account_template_195","view","passivo","True"
"account_template_199","2.1.01.02.0001","Banco Conta a Compensar","account_template_198","payable","passivo","True"
"account_template_199","2.1.01.02.0001","Banco Conta a Compensar","account_template_198","other","passivo","True"
"account_template_200","2.1.01.03","LIMITE DE CRÉDITO CHEQUE ESPECIAL","account_template_195","view","passivo","True"
"account_template_201","2.1.01.03.0001","Banco Conta Limite","account_template_200","payable","passivo","True"
"account_template_201","2.1.01.03.0001","Banco Conta Limite","account_template_200","other","passivo","True"
"account_template_202","2.1.02","FORNECEDORES ","account_template_194","view","passivo","True"
"account_template_203","2.1.02.01","FORNECEDORES NACIONAIS","account_template_202","view","passivo","True"
"account_template_204","2.1.02.01.0001","Fornecedores Nacionais","account_template_203","payable","passivo","True"
@@ -207,118 +207,118 @@
"account_template_206","2.1.02.02.0001","Fornecedores Internacionais","account_template_205","payable","passivo","True"
"account_template_207","2.1.03","OBRIGAÇÕES TRABALHISTAS","account_template_194","view","passivo","True"
"account_template_208","2.1.03.01","FOLHA DE PAGAMENTO - EMPREGADOS","account_template_207","view","passivo","True"
"account_template_209","2.1.03.01.0001","Salários a Pagar","account_template_208","payable","passivo","True"
"account_template_210","2.1.03.01.0002","Férias a Pagar","account_template_208","payable","passivo","True"
"account_template_211","2.1.03.01.0003","Rescisões a Pagar","account_template_208","payable","passivo","True"
"account_template_212","2.1.03.01.0004","13º Salário a Pagar","account_template_208","payable","passivo","True"
"account_template_213","2.1.03.01.0005","Comissões a Pagar","account_template_208","payable","passivo","True"
"account_template_209","2.1.03.01.0001","Salários a Pagar","account_template_208","other","passivo","True"
"account_template_210","2.1.03.01.0002","Férias a Pagar","account_template_208","other","passivo","True"
"account_template_211","2.1.03.01.0003","Rescisões a Pagar","account_template_208","other","passivo","True"
"account_template_212","2.1.03.01.0004","13º Salário a Pagar","account_template_208","other","passivo","True"
"account_template_213","2.1.03.01.0005","Comissões a Pagar","account_template_208","other","passivo","True"
"account_template_214","2.1.03.02","PROVISÕES DE FÉRIAS E 13º SALÁRIO","account_template_207","view","passivo","True"
"account_template_215","2.1.03.02.0001","Provisão de Férias","account_template_214","payable","passivo","True"
"account_template_216","2.1.03.02.0002","Provisão de INSS s/Férias","account_template_214","payable","passivo","True"
"account_template_217","2.1.03.02.0003","Provisão de FGTS s/Férias","account_template_214","payable","passivo","True"
"account_template_218","2.1.03.02.0004","Provisão de 13º Salário","account_template_214","payable","passivo","True"
"account_template_219","2.1.03.02.0005","Provisão de INSS s/13º Salário","account_template_214","payable","passivo","True"
"account_template_220","2.1.03.02.0006","Provisão FGTS s/13º Salário","account_template_214","payable","passivo","True"
"account_template_215","2.1.03.02.0001","Provisão de Férias","account_template_214","other","passivo","True"
"account_template_216","2.1.03.02.0002","Provisão de INSS s/Férias","account_template_214","other","passivo","True"
"account_template_217","2.1.03.02.0003","Provisão de FGTS s/Férias","account_template_214","other","passivo","True"
"account_template_218","2.1.03.02.0004","Provisão de 13º Salário","account_template_214","other","passivo","True"
"account_template_219","2.1.03.02.0005","Provisão de INSS s/13º Salário","account_template_214","other","passivo","True"
"account_template_220","2.1.03.02.0006","Provisão FGTS s/13º Salário","account_template_214","other","passivo","True"
"account_template_221","2.1.03.03","FOLHA DE PAGAMENTO - AUTÔNOMOS","account_template_207","view","passivo","True"
"account_template_222","2.1.03.03.0001","Rendimentos a Pagar","account_template_221","payable","passivo","True"
"account_template_222","2.1.03.03.0001","Rendimentos a Pagar","account_template_221","other","passivo","True"
"account_template_223","2.1.03.04","FOLHA DE PAGAMENTO - DIRIGENTES","account_template_207","view","passivo","True"
"account_template_224","2.1.03.04.0001","Pro-Labore a Pagar","account_template_223","payable","passivo","True"
"account_template_224","2.1.03.04.0001","Pro-Labore a Pagar","account_template_223","other","passivo","True"
"account_template_225","2.1.03.05","ENCARGOS SOCIAIS A PAGAR","account_template_207","view","passivo","True"
"account_template_226","2.1.03.05.0001","INSS a Recolher","account_template_225","payable","passivo","True"
"account_template_227","2.1.03.05.0002","FGTS a Recolher","account_template_225","payable","passivo","True"
"account_template_228","2.1.03.05.0003","Contribuição Sindical a Pagar","account_template_225","payable","passivo","True"
"account_template_229","2.1.03.05.0004","Previdência Privada a Recolher","account_template_225","payable","passivo","True"
"account_template_226","2.1.03.05.0001","INSS a Recolher","account_template_225","other","passivo","True"
"account_template_227","2.1.03.05.0002","FGTS a Recolher","account_template_225","other","passivo","True"
"account_template_228","2.1.03.05.0003","Contribuição Sindical a Pagar","account_template_225","other","passivo","True"
"account_template_229","2.1.03.05.0004","Previdência Privada a Recolher","account_template_225","other","passivo","True"
"account_template_230","2.1.04","OBRIGAÇÕES TRIBUTÁRIAS","account_template_194","view","passivo","True"
"account_template_231","2.1.04.01","IMPOSTOS RETIDOS A RECOLHER","account_template_230","view","passivo","True"
"account_template_232","2.1.04.01.0001","IRRF a Recolher - Pessoa Física","account_template_231","payable","passivo","True"
"account_template_233","2.1.04.01.0002","IRRF a Recolher - Pessoa Jurídica","account_template_231","payable","passivo","True"
"account_template_234","2.1.04.01.0003","ISS Retido a Recolher","account_template_231","payable","passivo","True"
"account_template_235","2.1.04.01.0004","PIS/COFINS/CSLL Retido a Recolher","account_template_231","payable","passivo","True"
"account_template_236","2.1.04.01.0005","INSS Retido a Recolher","account_template_231","payable","passivo","True"
"account_template_232","2.1.04.01.0001","IRRF a Recolher - Pessoa Física","account_template_231","other","passivo","True"
"account_template_233","2.1.04.01.0002","IRRF a Recolher - Pessoa Jurídica","account_template_231","other","passivo","True"
"account_template_234","2.1.04.01.0003","ISS Retido a Recolher","account_template_231","other","passivo","True"
"account_template_235","2.1.04.01.0004","PIS/COFINS/CSLL Retido a Recolher","account_template_231","other","passivo","True"
"account_template_236","2.1.04.01.0005","INSS Retido a Recolher","account_template_231","other","passivo","True"
"account_template_237","2.1.04.02","IMPOSTOS E CONTRIBUIÇÃO S/ O LUCRO","account_template_230","view","passivo","True"
"account_template_238","2.1.04.02.0001","Provisão para o Imposto de Renda","account_template_237","payable","passivo","True"
"account_template_239","2.1.04.02.0002","Provisão Contrib.Social s/Lucro Líquido","account_template_237","payable","passivo","True"
"account_template_238","2.1.04.02.0001","Provisão para o Imposto de Renda","account_template_237","other","passivo","True"
"account_template_239","2.1.04.02.0002","Provisão Contrib.Social s/Lucro Líquido","account_template_237","other","passivo","True"
"account_template_240","2.1.04.03","IMPOSTOS E CONTRIBUIÇÃO S/ RECEITAS","account_template_230","view","passivo","True"
"account_template_241","2.1.04.03.0001","ICMS a Recolher","account_template_240","payable","passivo","True"
"account_template_242","2.1.04.03.0002","COFINS a Recolher","account_template_240","payable","passivo","True"
"account_template_243","2.1.04.03.0003","PIS a Recolher","account_template_240","payable","passivo","True"
"account_template_244","2.1.04.03.0004","IPI a Recolher","account_template_240","payable","passivo","True"
"account_template_245","2.1.04.03.0005","ISS a Recolher","account_template_240","payable","passivo","True"
"account_template_241","2.1.04.03.0001","ICMS a Recolher","account_template_240","other","passivo","True"
"account_template_242","2.1.04.03.0002","COFINS a Recolher","account_template_240","other","passivo","True"
"account_template_243","2.1.04.03.0003","PIS a Recolher","account_template_240","other","passivo","True"
"account_template_244","2.1.04.03.0004","IPI a Recolher","account_template_240","other","passivo","True"
"account_template_245","2.1.04.03.0005","ISS a Recolher","account_template_240","other","passivo","True"
"account_template_246","2.1.05","PARCELAMENTOS CURTO PRAZO","account_template_194","view","passivo","True"
"account_template_247","2.1.05.01","PARCELAMENTOS TRIBUTÁRIOS","account_template_246","view","passivo","True"
"account_template_248","2.1.05.01.0001","COFINS Parcelamento","account_template_247","payable","passivo","True"
"account_template_249","2.1.05.01.0002","PIS Parcelamento","account_template_247","payable","passivo","True"
"account_template_250","2.1.05.01.0003","IPI Parcelamento","account_template_247","payable","passivo","True"
"account_template_251","2.1.05.01.0004","ICMS Parcelamento","account_template_247","payable","passivo","True"
"account_template_252","2.1.05.01.0005","IRPJ Parcelamento","account_template_247","payable","passivo","True"
"account_template_253","2.1.05.01.0006","CSLL Parcelamento","account_template_247","payable","passivo","True"
"account_template_254","2.1.05.01.0007","INSS Parcelamento","account_template_247","payable","passivo","True"
"account_template_255","2.1.05.01.0008","FGTS Parcelamento","account_template_247","payable","passivo","True"
"account_template_248","2.1.05.01.0001","COFINS Parcelamento","account_template_247","other","passivo","True"
"account_template_249","2.1.05.01.0002","PIS Parcelamento","account_template_247","other","passivo","True"
"account_template_250","2.1.05.01.0003","IPI Parcelamento","account_template_247","other","passivo","True"
"account_template_251","2.1.05.01.0004","ICMS Parcelamento","account_template_247","other","passivo","True"
"account_template_252","2.1.05.01.0005","IRPJ Parcelamento","account_template_247","other","passivo","True"
"account_template_253","2.1.05.01.0006","CSLL Parcelamento","account_template_247","other","passivo","True"
"account_template_254","2.1.05.01.0007","INSS Parcelamento","account_template_247","other","passivo","True"
"account_template_255","2.1.05.01.0008","FGTS Parcelamento","account_template_247","other","passivo","True"
"account_template_256","2.1.06","OUTRAS OBRIGAÇÕES","account_template_194","view","passivo","True"
"account_template_257","2.1.06.01","CONTAS DE CONSUMO","account_template_256","view","passivo","True"
"account_template_258","2.1.06.01.0001","Consumo de Água/Esgoto","account_template_257","payable","passivo","True"
"account_template_259","2.1.06.01.0003","Consumo de Energia Elétrica","account_template_257","payable","passivo","True"
"account_template_260","2.1.06.01.0004","Consumo de Telefone","account_template_257","payable","passivo","True"
"account_template_261","2.1.06.01.0005","Consumo de Internet","account_template_257","payable","passivo","True"
"account_template_258","2.1.06.01.0001","Consumo de Água/Esgoto","account_template_257","other","passivo","True"
"account_template_259","2.1.06.01.0003","Consumo de Energia Elétrica","account_template_257","other","passivo","True"
"account_template_260","2.1.06.01.0004","Consumo de Telefone","account_template_257","other","passivo","True"
"account_template_261","2.1.06.01.0005","Consumo de Internet","account_template_257","other","passivo","True"
"account_template_262","2.1.06.02","OUTRAS CONTAS A PAGAR","account_template_256","view","passivo","True"
"account_template_263","2.1.06.02.0001","Cheques a Compensar","account_template_262","payable","passivo","True"
"account_template_264","2.1.06.02.0002","Seguros a Pagar","account_template_262","payable","passivo","True"
"account_template_265","2.1.06.02.0003","Assinaturas de Periódicos a Pagar","account_template_262","payable","passivo","True"
"account_template_266","2.1.06.02.0004","Aluguel a Pagar","account_template_262","payable","passivo","True"
"account_template_267","2.1.06.02.0005","Doações a Pagar","account_template_262","payable","passivo","True"
"account_template_268","2.1.06.02.0006","Pensão Alimenticia a Pagar","account_template_262","payable","passivo","True"
"account_template_263","2.1.06.02.0001","Cheques a Compensar","account_template_262","other","passivo","True"
"account_template_264","2.1.06.02.0002","Seguros a Pagar","account_template_262","other","passivo","True"
"account_template_265","2.1.06.02.0003","Assinaturas de Periódicos a Pagar","account_template_262","other","passivo","True"
"account_template_266","2.1.06.02.0004","Aluguel a Pagar","account_template_262","other","passivo","True"
"account_template_267","2.1.06.02.0005","Doações a Pagar","account_template_262","other","passivo","True"
"account_template_268","2.1.06.02.0006","Pensão Alimenticia a Pagar","account_template_262","other","passivo","True"
"account_template_269","2.1.06.03","ADIANTAMENTO DE CLIENTES","account_template_256","view","passivo","True"
"account_template_270","2.1.06.03.0001","Adiantamento Clientes","account_template_269","payable","passivo","True"
"account_template_270","2.1.06.03.0001","Adiantamento Clientes","account_template_269","other","passivo","True"
"account_template_271","2.2","PASSIVO NÃO CIRCULANTE","account_template_193","view","passivo","True"
"account_template_272","2.2.01","EXIGÍVEL A LONGO PRAZO","account_template_271","view","passivo","True"
"account_template_273","2.2.01.01","FINANCIAMENTOS A LONGO PRAZO - SFN","account_template_272","view","passivo","True"
"account_template_274","2.2.01.01.0001","Banco Conta Empréstimo","account_template_273","payable","passivo","True"
"account_template_274","2.2.01.01.0001","Banco Conta Empréstimo","account_template_273","other","passivo","True"
"account_template_275","2.2.01.02","EMPRÉSTIMO DE SÓCIOS","account_template_272","view","passivo","True"
"account_template_276","2.2.01.02.0001","Sócio","account_template_275","payable","passivo","True"
"account_template_276","2.2.01.02.0001","Sócio","account_template_275","other","passivo","True"
"account_template_277","2.2.01.03","EMPRÉSTIMO DE EMPRESAS LIGADAS","account_template_272","view","passivo","True"
"account_template_278","2.2.01.03.0001","Empresas Ligadas","account_template_277","payable","passivo","True"
"account_template_278","2.2.01.03.0001","Empresas Ligadas","account_template_277","other","passivo","True"
"account_template_279","2.2.01.04","EMPRÉSTIMOS A TERCEIROS","account_template_272","view","passivo","True"
"account_template_280","2.2.01.04.0001","Terceiro","account_template_279","payable","passivo","True"
"account_template_280","2.2.01.04.0001","Terceiro","account_template_279","other","passivo","True"
"account_template_281","2.2.01.05","PARCELAMENTOS TRIBUTÁRIOS","account_template_272","view","passivo","True"
"account_template_282","2.2.01.05.0001","COFINS Parcelamento","account_template_281","payable","passivo","True"
"account_template_283","2.2.01.05.0002","PIS Parcelamento","account_template_281","payable","passivo","True"
"account_template_284","2.2.01.05.0003","IPI Parcelamento","account_template_281","payable","passivo","True"
"account_template_285","2.2.01.05.0004","ICMS Parcelamento","account_template_281","payable","passivo","True"
"account_template_286","2.2.01.05.0005","ISS Parcelamento","account_template_281","payable","passivo","True"
"account_template_287","2.2.01.05.0006","IRPJ Parcelamento","account_template_281","payable","passivo","True"
"account_template_288","2.2.01.05.0007","CSLL Parcelamento","account_template_281","payable","passivo","True"
"account_template_289","2.2.01.05.0008","INSS Parcelamento","account_template_281","payable","passivo","True"
"account_template_290","2.2.01.05.0009","FGTS Parcelamento","account_template_281","payable","passivo","True"
"account_template_282","2.2.01.05.0001","COFINS Parcelamento","account_template_281","other","passivo","True"
"account_template_283","2.2.01.05.0002","PIS Parcelamento","account_template_281","other","passivo","True"
"account_template_284","2.2.01.05.0003","IPI Parcelamento","account_template_281","other","passivo","True"
"account_template_285","2.2.01.05.0004","ICMS Parcelamento","account_template_281","other","passivo","True"
"account_template_286","2.2.01.05.0005","ISS Parcelamento","account_template_281","other","passivo","True"
"account_template_287","2.2.01.05.0006","IRPJ Parcelamento","account_template_281","other","passivo","True"
"account_template_288","2.2.01.05.0007","CSLL Parcelamento","account_template_281","other","passivo","True"
"account_template_289","2.2.01.05.0008","INSS Parcelamento","account_template_281","other","passivo","True"
"account_template_290","2.2.01.05.0009","FGTS Parcelamento","account_template_281","other","passivo","True"
"account_template_291","2.2.03","RECEITA DIFERIDA","account_template_271","view","passivo","True"
"account_template_292","2.2.03.01","RECEITAS DIFERIDAS","account_template_291","view","passivo","True"
"account_template_293","2.2.03.01.0001","Receitas a Realizar","account_template_292","payable","passivo","True"
"account_template_293","2.2.03.01.0001","Receitas a Realizar","account_template_292","other","passivo","True"
"account_template_294","2.2.03.02","CUSTOS DIFERIDOS","account_template_291","view","passivo","True"
"account_template_295","2.2.03.02.0001","Custos Diferidos","account_template_294","payable","passivo","True"
"account_template_295","2.2.03.02.0001","Custos Diferidos","account_template_294","other","passivo","True"
"account_template_296","2.2.03.03","DESPESAS DIFERIDAS","account_template_291","view","passivo","True"
"account_template_297","2.2.03.03.0001","Despesas Diferidas","account_template_296","payable","passivo","True"
"account_template_297","2.2.03.03.0001","Despesas Diferidas","account_template_296","other","passivo","True"
"account_template_298","2.4","PATRIMÔNIO LÍQUIDO","account_template_193","view","passivo","True"
"account_template_299","2.4.01","CAPITAL SOCIAL","account_template_298","view","passivo","True"
"account_template_300","2.4.01.01","CAPITAL SOCIAL REALIZADO","account_template_299","view","passivo","True"
"account_template_301","2.4.01.01.0001","Capital Social Realizado","account_template_300","payable","passivo","True"
"account_template_301","2.4.01.01.0001","Capital Social Realizado","account_template_300","other","passivo","True"
"account_template_302","2.4.01.02","(-) CAPITAL A REALIZAR","account_template_299","view","passivo","True"
"account_template_303","2.4.01.02.0001","Capital Social a Realizar ","account_template_302","payable","passivo","True"
"account_template_303","2.4.01.02.0001","Capital Social a Realizar ","account_template_302","other","passivo","True"
"account_template_304","2.4.02","RESERVAS","account_template_298","view","passivo","True"
"account_template_305","2.4.02.01","RESERVAS DE CAPITAL","account_template_304","view","passivo","True"
"account_template_306","2.4.02.01.0001","Reserva de Correção do Capital Realizado","account_template_305","payable","passivo","True"
"account_template_306","2.4.02.01.0001","Reserva de Correção do Capital Realizado","account_template_305","other","passivo","True"
"account_template_307","2.4.02.02","AJUSTES DE AVALIAÇÃO PATRIMONIAL","account_template_304","view","passivo","True"
"account_template_308","2.4.02.02.0001","Ajustes de Avaliação Patrimonial","account_template_307","payable","passivo","True"
"account_template_308","2.4.02.02.0001","Ajustes de Avaliação Patrimonial","account_template_307","other","passivo","True"
"account_template_309","2.4.02.03","RESERVAS DE LUCROS","account_template_304","view","passivo","True"
"account_template_310","2.4.02.03.0001","Reserva de Lucros","account_template_309","payable","passivo","True"
"account_template_311","2.4.02.03.0002","Reserva para Aumento de Capital","account_template_309","payable","passivo","True"
"account_template_310","2.4.02.03.0001","Reserva de Lucros","account_template_309","other","passivo","True"
"account_template_311","2.4.02.03.0002","Reserva para Aumento de Capital","account_template_309","other","passivo","True"
"account_template_312","2.4.02.04","PREJUÍZOS ACUMULADOS","account_template_304","view","passivo","True"
"account_template_313","2.4.02.04.0002","(-) Prejuízos Acumulados","account_template_312","payable","passivo","True"
"account_template_314","2.4.02.04.0003","Ajustes Credores Exercícios Anteriores","account_template_312","payable","passivo","True"
"account_template_315","2.4.02.04.0001","Ajustes Devedores Exercícios Anteriores","account_template_312","payable","passivo","True"
"account_template_313","2.4.02.04.0002","(-) Prejuízos Acumulados","account_template_312","other","passivo","True"
"account_template_314","2.4.02.04.0003","Ajustes Credores Exercícios Anteriores","account_template_312","other","passivo","True"
"account_template_315","2.4.02.04.0001","Ajustes Devedores Exercícios Anteriores","account_template_312","other","passivo","True"
"account_template_316","2.4.02.05","RESULTADO DO EXERCÍCIO","account_template_304","view","passivo","True"
"account_template_317","2.4.02.05.0001","Lucro do Exercício","account_template_316","payable","passivo","True"
"account_template_318","2.4.02.05.0002","Prejuízo do Exercício","account_template_316","payable","passivo","True"
"account_template_317","2.4.02.05.0001","Lucro do Exercício","account_template_316","other","passivo","True"
"account_template_318","2.4.02.05.0002","Prejuízo do Exercício","account_template_316","other","passivo","True"
"account_template_319","2.4.02.06","(-) LUCROS DISTRIBUÍDOS","account_template_304","view","passivo","True"
"account_template_320","2.4.02.06.0001","Lucros Distribuídos","account_template_319","payable","passivo","True"
"account_template_320","2.4.02.06.0001","Lucros Distribuídos","account_template_319","other","passivo","True"
"account_template_321","3","CONTAS DE RESULTADO - CUSTOS E DESPESAS","account_template_1","view","despesa","True"
"account_template_322","3.1","CUSTOS","account_template_321","view","despesa","True"
"account_template_323","3.1.01","CUSTOS DAS MERCADORIAS E PRODUTOS","account_template_322","view","despesa","True"
@@ -337,8 +337,8 @@
"account_template_336","3.1.02.03.0005","13º Salário","account_template_331","other","despesa","True"
"account_template_337","3.1.02.03.0006","Aviso Prévio/Indeniz.Trabalhistas","account_template_331","other","despesa","True"
"account_template_338","3.1.02.03.0007","Gratificações","account_template_331","other","despesa","True"
"account_template_339","3.1.02.03.0008","INSS Empresa","account_template_331","payable","passivo","True"
"account_template_340","3.1.02.03.0009","FGTS ","account_template_331","payable","passivo","True"
"account_template_339","3.1.02.03.0008","INSS Empresa","account_template_331","other","despesa","True"
"account_template_340","3.1.02.03.0009","FGTS ","account_template_331","other","despesa","True"
"account_template_341","3.1.02.03.0010","Adicional Insalubridade","account_template_331","other","despesa","True"
"account_template_342","3.1.02.03.0011","Vale Transporte","account_template_331","other","despesa","True"
"account_template_343","3.1.02.03.0012","PAT - Programa Alim. Trabalhador","account_template_331","other","despesa","True"
1 id code name parent_id:id type user_type:id reconcile
2 account_template_1 0 Plano de Contas Padrão view ativo True
3 account_template_2 1 ATIVO account_template_1 view ativo True
4 account_template_3 1.1 CIRCULANTE account_template_2 view ativo True
5 account_template_4 1.1.01 DISPONIBILIDADES account_template_3 view ativo True
6 account_template_5 1.1.01.01 CAIXA account_template_4 view ativo True
7 account_template_6 1.1.01.01.0001 Caixa Geral account_template_5 receivable other ativo True
8 account_template_7 1.1.01.01.0002 Fundo Fixo account_template_5 receivable other ativo True
9 account_template_8 1.1.01.02 BANCOS account_template_4 view ativo True
10 account_template_9 1.1.01.02.0001 Banco C/ Movimento account_template_8 receivable other ativo True
11 account_template_10 1.1.01.03 VALORES MOBILIÁRIOS-MERC.CAP.INTERNOS account_template_4 view ativo True
12 account_template_11 1.1.01.03.0001 Aplicações Nacionais account_template_10 receivable other ativo True
13 account_template_12 1.1.01.04 TITULOS DE CAPITALIZAÇÃO account_template_4 view ativo True
14 account_template_13 1.1.01.04.0001 Banco Título de Capitalização account_template_12 receivable other ativo True
15 account_template_14 1.1.02 CRÉDITOS account_template_3 view ativo True
16 account_template_15 1.1.02.01 CLIENTES NACIONAIS account_template_14 view ativo True
17 account_template_16 1.1.02.01.0001 Clientes Nacionais account_template_15 receivable ativo True
20 account_template_19 1.1.02.03 OUTROS VALORES A RECEBER account_template_14 view ativo True
21 account_template_20 1.1.02.03.0001 Outras Contas a Receber account_template_19 receivable ativo True
22 account_template_21 1.1.02.04 DUPLICATAS CONTA VINCULADA account_template_14 view ativo True
23 account_template_22 1.1.02.04.0001 Banco Conta Garantida account_template_21 receivable other ativo True
24 account_template_23 1.1.02.05 DUPLICATAS CAUCIONADAS account_template_14 view ativo True
25 account_template_24 1.1.02.05.0001 Banco Conta Caucionada account_template_23 receivable other ativo True
26 account_template_25 1.1.02.06 CHEQUES DEVOLVIDOS account_template_14 view ativo True
27 account_template_26 1.1.02.06.0001 Cheques Devolvidos account_template_25 receivable other ativo True
28 account_template_27 1.1.02.07 ADIANTAMENTOS account_template_14 view ativo True
29 account_template_28 1.1.02.07.0002 Adiantamento de Salários account_template_27 receivable other ativo True
30 account_template_29 1.1.02.07.0003 Adiantamento Despesa de Viagem account_template_27 receivable other ativo True
31 account_template_30 1.1.02.07.0004 Adiantamento de Férias account_template_27 receivable other ativo True
32 account_template_31 1.1.02.07.0005 Adiantamento 13º Salário account_template_27 receivable other ativo True
33 account_template_32 1.1.02.07.0006 Adiantamento de Pro-Labore a Diretores account_template_27 receivable other ativo True
34 account_template_33 1.1.02.07.0001 Adiantamento de PIS a Empregados account_template_27 receivable other ativo True
35 account_template_34 1.1.02.08 ADIANTAMENTO A FORNECEDORES account_template_14 view ativo True
36 account_template_35 1.1.02.08.0001 Adiantamento a Fornecedor account_template_34 receivable other ativo True
37 account_template_36 1.1.02.09 IMPOSTOS E CONTRIBUIÇÕES A RECUPERAR account_template_14 view ativo True
38 account_template_37 1.1.02.09.0001 CSLL a Recuperar/Compensar account_template_36 receivable other ativo True
39 account_template_38 1.1.02.09.0002 CSLL a Compensar Lei 10.833/03 account_template_36 receivable other ativo True
40 account_template_39 1.1.02.09.0003 COFINS a Recuperar/Compensar account_template_36 receivable other ativo True
41 account_template_40 1.1.02.09.0004 COFINS a Compensar Lei 10.833/03 account_template_36 receivable other ativo True
42 account_template_41 1.1.02.09.0008 Crédito COFINS Não-Cumulativo account_template_36 receivable other ativo True
43 account_template_42 1.1.02.09.0009 ICMS a Recuperar account_template_36 receivable other ativo True
44 account_template_43 1.1.02.09.0010 ICMS a Recup. s/Ativo Imobilizado account_template_36 receivable other ativo True
45 account_template_44 1.1.02.09.0012 IPI a Recuperar/Compensar account_template_36 receivable other ativo True
46 account_template_45 1.1.02.09.0013 IPI a Compensar Pedido Restituição account_template_36 receivable other ativo True
47 account_template_46 1.1.02.09.0015 IRF s/Aplicações Financeiras account_template_36 receivable other ativo True
48 account_template_47 1.1.02.09.0016 IRRF a Recuperar/Compensar account_template_36 receivable other ativo True
49 account_template_48 1.1.02.09.0017 IRPJ a Recuperar/Compensar account_template_36 receivable other ativo True
50 account_template_49 1.1.02.09.0019 PIS a Recuperar/Compensar account_template_36 receivable other ativo True
51 account_template_50 1.1.02.09.0020 PIS a Compensar Lei 10.833/03 account_template_36 receivable other ativo True
52 account_template_51 1.1.02.09.0022 PIS/COFINS/CSLL a Recuperar account_template_36 receivable other ativo True
53 account_template_52 1.1.02.09.0007 Crédito de PIS Não-Cumulativo account_template_36 receivable other ativo True
54 account_template_53 1.1.02.10 CRÉDITOS FISCAIS CSLL BASE CALC.NEGATIVA account_template_14 view ativo True
55 account_template_54 1.1.02.10.0001 Base Negativa CSLL - Exerc. Anteriores account_template_53 receivable other ativo True
56 account_template_55 1.1.02.11 CRÉDITOS FISCAIS IRPJ-BASE CALC.NEGATIVA account_template_14 view ativo True
57 account_template_56 1.1.02.11.0001 Base Negativa IRPJ - Exerc. Anteriores account_template_55 receivable other ativo True
58 account_template_57 1.1.03 ESTOQUES account_template_3 view ativo True
59 account_template_58 1.1.03.01 ESTOQUE DE MERCADORIAS account_template_57 view ativo True
60 account_template_59 1.1.03.01.0001 Insumos (Materiais Diretos) account_template_58 receivable other ativo True
61 account_template_60 1.1.03.01.0002 Material de Consumo-Almoxarifado account_template_58 receivable other ativo True
62 account_template_61 1.1.03.01.0003 Mercadorias para Revenda account_template_58 receivable other ativo True
63 account_template_62 1.1.03.01.0004 Produtos Acabados account_template_58 receivable other ativo True
64 account_template_63 1.1.03.01.0005 Produtos em Elaboração account_template_58 receivable other ativo True
65 account_template_64 1.1.03.02 (-) DEVOLUÇÕES DE COMPRAS account_template_57 view ativo True
66 account_template_65 1.1.03.02.0001 Devoluções de Compras account_template_64 receivable other ativo True
67 account_template_66 1.1.03.03 TRANSFERÊNCIA DE MERCADORIAS account_template_57 view ativo True
68 account_template_67 1.1.03.03.0001 Transferência de Mercadorias account_template_66 receivable other ativo True
69 account_template_68 1.1.03.04 ESTOQUE DE TERCEIROS EM NOSSO PODER account_template_57 view ativo True
70 account_template_69 1.1.03.04.0001 Estoque de Terceiros em N/Poder account_template_68 receivable other ativo True
71 account_template_70 1.1.03.04.0002 Entrada P/Industrialização account_template_68 receivable other ativo True
72 account_template_71 1.1.03.04.0003 Entrada P/Conserto account_template_68 receivable other ativo True
73 account_template_72 1.1.03.04.0004 Entrada P/Demonstração account_template_68 receivable other ativo True
74 account_template_73 1.1.03.04.0005 Entrada P/Empréstimo account_template_68 receivable other ativo True
75 account_template_74 1.1.03.04.0006 Entrada em Consignação account_template_68 receivable other ativo True
76 account_template_75 1.1.03.04.0007 Entrada p/ Garantia account_template_68 receivable other ativo True
77 account_template_76 1.1.03.04.0008 Entrada p/ Locação account_template_68 receivable other ativo True
78 account_template_77 1.1.03.04.0009 Entrada em Comodato account_template_68 receivable other ativo True
79 account_template_78 1.1.03.05 NOSSO ESTOQUE EM PODER DE TERCEIROS account_template_57 view ativo True
80 account_template_79 1.1.03.05.0001 N/Estoque em Poder de Terceiros account_template_78 receivable other ativo True
81 account_template_80 1.1.03.05.0002 Remessa P/Industrialização account_template_78 receivable other ativo True
82 account_template_81 1.1.03.05.0003 Remessa P/Conserto account_template_78 receivable other ativo True
83 account_template_82 1.1.03.05.0004 Remessa P/Demonstração account_template_78 receivable other ativo True
84 account_template_83 1.1.03.05.0005 Remessa P/Exposição account_template_78 receivable other ativo True
85 account_template_84 1.1.03.05.0006 Remessa P/Empréstimo account_template_78 receivable other ativo True
86 account_template_85 1.1.03.05.0007 Remessa em Consignação account_template_78 receivable other ativo True
87 account_template_86 1.1.03.05.0008 Remessa P/Locação account_template_78 receivable other ativo True
88 account_template_87 1.1.03.05.0009 Remessa em Garantia account_template_78 receivable other ativo True
89 account_template_88 1.1.03.06 (-) IMPOSTOS S/ESTOQUE DE TERCEIROS account_template_57 view ativo True
90 account_template_89 1.1.03.06.0001 (-) ICMS s/Estoque de Terceiros account_template_88 receivable other ativo True
91 account_template_90 1.1.03.06.0002 (-) IPI s/Estoque de Terceiros account_template_88 receivable other ativo True
92 account_template_91 1.1.03.07 IMPORTAÇÕES EM ANDAMENTO account_template_57 view ativo True
93 account_template_92 1.1.03.07.0001 D.I. nº 0000000-0 Importação account_template_91 receivable other ativo True
94 account_template_93 1.1.03.08 COMPRAS PARA ENTREGA FUTURA account_template_57 view ativo True
95 account_template_94 1.1.03.08.0001 Compras p/Entrega Futura account_template_93 receivable other ativo True
96 account_template_95 1.1.04 DESPESAS DO EXERCÍCIO SEGUINTE account_template_3 view ativo True
97 account_template_96 1.1.04.01 SEGUROS A APROPRIAR account_template_95 view ativo True
98 account_template_97 1.1.04.01.0001 Seguros de Veículos account_template_96 receivable other ativo True
99 account_template_98 1.1.04.01.0002 Seguros Prédios/Bens/Estoques account_template_96 receivable other ativo True
100 account_template_99 1.1.04.01.0003 Seguros s/Lucros Cessantes account_template_96 receivable other ativo True
101 account_template_100 1.1.04.02 ASSINATURAS A APROPRIAR account_template_95 view ativo True
102 account_template_101 1.1.04.02.0001 Assinaturas de Jornais/Boletins/Revistas account_template_100 receivable other ativo True
103 account_template_102 1.1.04.03 DESPESAS FINANCEIRAS A APROPRIAR account_template_95 view ativo True
104 account_template_103 1.1.04.03.0001 Juros s/ Financiamentos a Apropriar account_template_102 receivable other ativo True
105 account_template_104 1.1.05 CONTAS RETIFICADORAS account_template_3 view ativo True
106 account_template_105 1.1.05.01 (-) DUPLICATAS DESCONTADAS account_template_104 view ativo True
107 account_template_106 1.1.05.01.0001 (-) Banco Conta - Duplicata Descontada account_template_105 receivable other ativo True
108 account_template_107 1.2 ATIVO NÃO CIRCULANTE account_template_2 view ativo True
109 account_template_108 1.2.01 REALIZÁVEL A LONGO PRAZO account_template_107 view ativo True
110 account_template_109 1.2.01.01 VALORES MOBILIÁRIOS-MERC.CAP.INTERNO account_template_108 view ativo True
111 account_template_110 1.2.01.01.0001 Aplicações Nacionais account_template_109 receivable other ativo True
112 account_template_111 1.2.01.02 DÉBITOS DE SÓCIOS account_template_108 view ativo True
113 account_template_112 1.2.01.02.0001 Sócio account_template_111 receivable other ativo True
114 account_template_113 1.2.01.03 EMPRÉSTIMOS A EMPRESAS LIGADAS account_template_108 view ativo True
115 account_template_114 1.2.01.03.0001 Empresa Ligada account_template_113 receivable other ativo True
116 account_template_115 1.2.01.04 EMPRÉSTIMOS A TERCEIROS account_template_108 view ativo True
117 account_template_116 1.2.01.04.0001 Empréstimo de Terceiros account_template_115 receivable other ativo True
118 account_template_117 1.2.01.05 DEPÓSITOS JUDICIAIS account_template_108 view ativo True
119 account_template_118 1.2.01.05.0001 Depósitos Judiciais account_template_117 receivable other ativo True
120 account_template_119 1.2.02 INVESTIMENTOS account_template_107 view ativo True
121 account_template_120 1.2.02.01 PARTICIPAÇÕES SOCIETÁRIAS account_template_119 view ativo True
122 account_template_121 1.2.02.01.0001 Participação Societárias account_template_120 receivable other ativo True
123 account_template_122 1.2.03 IMOBILIZADO - MATRIZ account_template_107 view ativo True
124 account_template_123 1.2.03.01 IMOBILIZADO account_template_122 view ativo True
125 account_template_124 1.2.03.01.0001 Máquinas e Equipamentos account_template_123 receivable other ativo True
126 account_template_125 1.2.03.01.0002 Terrenos account_template_123 receivable other ativo True
127 account_template_126 1.2.03.01.0003 Ferramentas account_template_123 receivable other ativo True
128 account_template_127 1.2.03.01.0004 Modelos, Moldes e Matrizes account_template_123 receivable other ativo True
129 account_template_128 1.2.03.01.0005 Móveis e Utensílios account_template_123 receivable other ativo True
130 account_template_129 1.2.03.01.0006 Veículos account_template_123 receivable other ativo True
131 account_template_130 1.2.03.01.0007 Equipamentos de Informática account_template_123 receivable other ativo True
132 account_template_131 1.2.03.01.0008 Instalações account_template_123 receivable other ativo True
133 account_template_132 1.2.03.01.0009 Benfeitoria em Imóveis de Terceiros account_template_123 receivable other ativo True
134 account_template_133 1.2.03.01.0010 Direito de Uso Linhas Telefônicas account_template_123 receivable other ativo True
135 account_template_134 1.2.03.01.0011 Edifícios e Construções account_template_123 receivable other ativo True
136 account_template_135 1.2.03.02 CONSTRUÇÕES EM ANDAMENTO account_template_122 view ativo True
137 account_template_136 1.2.03.02.0001 Imóvel account_template_135 receivable other ativo True
138 account_template_137 1.2.03.04 PARTICIPAÇÃO EM CONSÓRCIOS account_template_122 view ativo True
139 account_template_138 1.2.03.04.0001 Consórcio account_template_137 receivable other ativo True
140 account_template_139 1.2.03.05 (-) DEPRECIAÇÃO ACUMULADA account_template_122 view ativo True
141 account_template_140 1.2.03.05.0001 Deprec.de Máquinas e Equipamentos account_template_139 receivable other ativo True
142 account_template_141 1.2.03.05.0002 Deprec.de Modelos, Moldes e Matrizes account_template_139 receivable other ativo True
143 account_template_142 1.2.03.05.0003 Deprec.de Móveis e Utensílios account_template_139 receivable other ativo True
144 account_template_143 1.2.03.05.0004 Deprec.de Veículos account_template_139 receivable other ativo True
145 account_template_144 1.2.03.05.0005 Deprec.de Equip.de Informática account_template_139 receivable other ativo True
146 account_template_145 1.2.03.05.0006 Deprec.de Instalações account_template_139 receivable other ativo True
147 account_template_146 1.2.03.05.0007 Deprec.de Ferramentas account_template_139 receivable other ativo True
148 account_template_147 1.2.03.05.0008 Deprec.de Edificações account_template_139 receivable other ativo True
149 account_template_148 1.2.03.06 (-) AMORTIZAÇÃO ACUMULADA account_template_122 view ativo True
150 account_template_149 1.2.03.06.0001 Amortiz.Benfeit.em Imóveis de Terceiros account_template_148 receivable other ativo True
151 account_template_150 1.2.03.06.0002 Amortiz.Direito Uso Linhas Telefônica account_template_148 receivable other ativo True
152 account_template_151 1.2.03.07 ICMS S/IMOBILIZADO-PARCELA NÃO CREDITADA account_template_122 view ativo True
153 account_template_152 1.2.03.07.0001 ICMS s/ Imobilizado parc. não creditável account_template_151 receivable other ativo True
154 account_template_153 1.2.03.07.0002 (-) Amortização ICMS não creditado account_template_151 receivable other ativo True
155 account_template_154 1.2.04 IMOBILIZADO - FILIAL account_template_107 view ativo True
156 account_template_155 1.2.04.01 IMOBILIZADO account_template_154 view ativo True
157 account_template_156 1.2.04.01.0001 Máquinas e Equipamentos account_template_155 receivable other ativo True
158 account_template_157 1.2.04.01.0002 Terrenos account_template_155 receivable other ativo True
159 account_template_158 1.2.04.01.0003 Ferramentas account_template_155 receivable other ativo True
160 account_template_159 1.2.04.01.0004 Edifícios account_template_155 receivable other ativo True
161 account_template_160 1.2.04.01.0005 Móveis e Utensílios account_template_155 receivable other ativo True
162 account_template_161 1.2.04.01.0006 Veículos account_template_155 receivable other ativo True
163 account_template_162 1.2.04.01.0007 Equipamentos de Informática account_template_155 receivable other ativo True
164 account_template_163 1.2.04.01.0008 Instalações account_template_155 receivable other ativo True
165 account_template_164 1.2.04.02 (-) DEPRECIAÇÃO ACUMULADA - FILIAL account_template_154 view ativo True
166 account_template_165 1.2.04.02.0001 Deprec.de Máquinas e Equipamentos account_template_164 receivable other ativo True
167 account_template_166 1.2.04.02.0003 Deprec.de Móveis e Utensílios account_template_164 receivable other ativo True
168 account_template_167 1.2.04.02.0004 Deprec.de Veículos account_template_164 receivable other ativo True
169 account_template_168 1.2.04.02.0005 Deprec.de Equip.de Informática account_template_164 receivable other ativo True
170 account_template_169 1.2.04.02.0006 Deprec.de Instalações account_template_164 receivable other ativo True
171 account_template_170 1.2.04.02.0007 Deprec.de Ferramentas account_template_164 receivable other ativo True
172 account_template_171 1.2.04.02.0008 Deprec.de Edifícios account_template_164 receivable other ativo True
173 account_template_172 1.2.04.03 (-) AMORTIZAÇÃO ACUMULADA - FILIAL account_template_154 view ativo True
174 account_template_173 1.2.04.03.0001 Amortização Acumulada account_template_172 receivable other ativo True
175 account_template_174 1.2.05 BENS INTAGÍVEIS - MATRIZ account_template_107 view ativo True
176 account_template_175 1.2.05.01 INTANGÍVEL account_template_174 view ativo True
177 account_template_176 1.2.05.01.0001 Marcas e Patentes account_template_175 receivable other ativo True
178 account_template_177 1.2.05.01.0002 Softwares account_template_175 receivable other ativo True
179 account_template_178 1.2.05.02 (-) AMORTIZAÇÃO DO INTANGÍVEL account_template_174 view ativo True
180 account_template_179 1.2.05.02.0001 Amortiz.de Marcas e Patentes account_template_178 receivable other ativo True
181 account_template_180 1.2.05.02.0002 Amortização de Softwares account_template_178 receivable other ativo True
182 account_template_181 1.2.06 BENS INTANGÍVEIS - FILIAL account_template_107 view ativo True
183 account_template_182 1.2.06.01 INTANGÍVEL account_template_181 view ativo True
184 account_template_183 1.2.06.01.0001 Softwares account_template_182 receivable other ativo True
185 account_template_184 1.2.06.02 (-) AMORTIZAÇÃO DO INTANGÍVEL account_template_181 view ativo True
186 account_template_185 1.2.06.02.0001 Amortização de Softwares account_template_184 receivable other ativo True
187 account_template_186 1.2.07 TRANSFERÊNCIAS DE ATIVO IMOBILIZADO account_template_107 view ativo True
188 account_template_187 1.2.07.01 TRANSFERÊNCIA DE ATIVO IMOBILIZADO account_template_186 view ativo True
189 account_template_188 1.2.07.01.0001 Transferência de Ativo Imobilizado account_template_187 receivable other ativo True
190 account_template_189 1.2.08 DIFERIDO account_template_107 view ativo True
191 account_template_190 1.2.08.01 DESPESAS PRÉ-INDUSTRIAIS account_template_189 view ativo True
192 account_template_191 1.2.08.01.0001 Gastos Gerais de Implantação account_template_190 receivable other ativo True
193 account_template_192 1.2.08.01.0002 (-) Amortização Acumulada account_template_190 receivable other ativo True
194 account_template_193 2 PASSIVO account_template_1 view passivo True
195 account_template_194 2.1 CIRCULANTE account_template_193 view passivo True
196 account_template_195 2.1.01 OBRIGAÇÕES A CURTO PRAZO account_template_194 view passivo True
197 account_template_196 2.1.01.01 FINANCIAMENTOS A CURTO PRAZO - SFN account_template_195 view passivo True
198 account_template_197 2.1.01.01.0001 Banco Conta Empréstimo account_template_196 payable other passivo True
199 account_template_198 2.1.01.02 CHEQUES A COMPENSAR account_template_195 view passivo True
200 account_template_199 2.1.01.02.0001 Banco Conta a Compensar account_template_198 payable other passivo True
201 account_template_200 2.1.01.03 LIMITE DE CRÉDITO CHEQUE ESPECIAL account_template_195 view passivo True
202 account_template_201 2.1.01.03.0001 Banco Conta Limite account_template_200 payable other passivo True
203 account_template_202 2.1.02 FORNECEDORES account_template_194 view passivo True
204 account_template_203 2.1.02.01 FORNECEDORES NACIONAIS account_template_202 view passivo True
205 account_template_204 2.1.02.01.0001 Fornecedores Nacionais account_template_203 payable passivo True
207 account_template_206 2.1.02.02.0001 Fornecedores Internacionais account_template_205 payable passivo True
208 account_template_207 2.1.03 OBRIGAÇÕES TRABALHISTAS account_template_194 view passivo True
209 account_template_208 2.1.03.01 FOLHA DE PAGAMENTO - EMPREGADOS account_template_207 view passivo True
210 account_template_209 2.1.03.01.0001 Salários a Pagar account_template_208 payable other passivo True
211 account_template_210 2.1.03.01.0002 Férias a Pagar account_template_208 payable other passivo True
212 account_template_211 2.1.03.01.0003 Rescisões a Pagar account_template_208 payable other passivo True
213 account_template_212 2.1.03.01.0004 13º Salário a Pagar account_template_208 payable other passivo True
214 account_template_213 2.1.03.01.0005 Comissões a Pagar account_template_208 payable other passivo True
215 account_template_214 2.1.03.02 PROVISÕES DE FÉRIAS E 13º SALÁRIO account_template_207 view passivo True
216 account_template_215 2.1.03.02.0001 Provisão de Férias account_template_214 payable other passivo True
217 account_template_216 2.1.03.02.0002 Provisão de INSS s/Férias account_template_214 payable other passivo True
218 account_template_217 2.1.03.02.0003 Provisão de FGTS s/Férias account_template_214 payable other passivo True
219 account_template_218 2.1.03.02.0004 Provisão de 13º Salário account_template_214 payable other passivo True
220 account_template_219 2.1.03.02.0005 Provisão de INSS s/13º Salário account_template_214 payable other passivo True
221 account_template_220 2.1.03.02.0006 Provisão FGTS s/13º Salário account_template_214 payable other passivo True
222 account_template_221 2.1.03.03 FOLHA DE PAGAMENTO - AUTÔNOMOS account_template_207 view passivo True
223 account_template_222 2.1.03.03.0001 Rendimentos a Pagar account_template_221 payable other passivo True
224 account_template_223 2.1.03.04 FOLHA DE PAGAMENTO - DIRIGENTES account_template_207 view passivo True
225 account_template_224 2.1.03.04.0001 Pro-Labore a Pagar account_template_223 payable other passivo True
226 account_template_225 2.1.03.05 ENCARGOS SOCIAIS A PAGAR account_template_207 view passivo True
227 account_template_226 2.1.03.05.0001 INSS a Recolher account_template_225 payable other passivo True
228 account_template_227 2.1.03.05.0002 FGTS a Recolher account_template_225 payable other passivo True
229 account_template_228 2.1.03.05.0003 Contribuição Sindical a Pagar account_template_225 payable other passivo True
230 account_template_229 2.1.03.05.0004 Previdência Privada a Recolher account_template_225 payable other passivo True
231 account_template_230 2.1.04 OBRIGAÇÕES TRIBUTÁRIAS account_template_194 view passivo True
232 account_template_231 2.1.04.01 IMPOSTOS RETIDOS A RECOLHER account_template_230 view passivo True
233 account_template_232 2.1.04.01.0001 IRRF a Recolher - Pessoa Física account_template_231 payable other passivo True
234 account_template_233 2.1.04.01.0002 IRRF a Recolher - Pessoa Jurídica account_template_231 payable other passivo True
235 account_template_234 2.1.04.01.0003 ISS Retido a Recolher account_template_231 payable other passivo True
236 account_template_235 2.1.04.01.0004 PIS/COFINS/CSLL Retido a Recolher account_template_231 payable other passivo True
237 account_template_236 2.1.04.01.0005 INSS Retido a Recolher account_template_231 payable other passivo True
238 account_template_237 2.1.04.02 IMPOSTOS E CONTRIBUIÇÃO S/ O LUCRO account_template_230 view passivo True
239 account_template_238 2.1.04.02.0001 Provisão para o Imposto de Renda account_template_237 payable other passivo True
240 account_template_239 2.1.04.02.0002 Provisão Contrib.Social s/Lucro Líquido account_template_237 payable other passivo True
241 account_template_240 2.1.04.03 IMPOSTOS E CONTRIBUIÇÃO S/ RECEITAS account_template_230 view passivo True
242 account_template_241 2.1.04.03.0001 ICMS a Recolher account_template_240 payable other passivo True
243 account_template_242 2.1.04.03.0002 COFINS a Recolher account_template_240 payable other passivo True
244 account_template_243 2.1.04.03.0003 PIS a Recolher account_template_240 payable other passivo True
245 account_template_244 2.1.04.03.0004 IPI a Recolher account_template_240 payable other passivo True
246 account_template_245 2.1.04.03.0005 ISS a Recolher account_template_240 payable other passivo True
247 account_template_246 2.1.05 PARCELAMENTOS CURTO PRAZO account_template_194 view passivo True
248 account_template_247 2.1.05.01 PARCELAMENTOS TRIBUTÁRIOS account_template_246 view passivo True
249 account_template_248 2.1.05.01.0001 COFINS Parcelamento account_template_247 payable other passivo True
250 account_template_249 2.1.05.01.0002 PIS Parcelamento account_template_247 payable other passivo True
251 account_template_250 2.1.05.01.0003 IPI Parcelamento account_template_247 payable other passivo True
252 account_template_251 2.1.05.01.0004 ICMS Parcelamento account_template_247 payable other passivo True
253 account_template_252 2.1.05.01.0005 IRPJ Parcelamento account_template_247 payable other passivo True
254 account_template_253 2.1.05.01.0006 CSLL Parcelamento account_template_247 payable other passivo True
255 account_template_254 2.1.05.01.0007 INSS Parcelamento account_template_247 payable other passivo True
256 account_template_255 2.1.05.01.0008 FGTS Parcelamento account_template_247 payable other passivo True
257 account_template_256 2.1.06 OUTRAS OBRIGAÇÕES account_template_194 view passivo True
258 account_template_257 2.1.06.01 CONTAS DE CONSUMO account_template_256 view passivo True
259 account_template_258 2.1.06.01.0001 Consumo de Água/Esgoto account_template_257 payable other passivo True
260 account_template_259 2.1.06.01.0003 Consumo de Energia Elétrica account_template_257 payable other passivo True
261 account_template_260 2.1.06.01.0004 Consumo de Telefone account_template_257 payable other passivo True
262 account_template_261 2.1.06.01.0005 Consumo de Internet account_template_257 payable other passivo True
263 account_template_262 2.1.06.02 OUTRAS CONTAS A PAGAR account_template_256 view passivo True
264 account_template_263 2.1.06.02.0001 Cheques a Compensar account_template_262 payable other passivo True
265 account_template_264 2.1.06.02.0002 Seguros a Pagar account_template_262 payable other passivo True
266 account_template_265 2.1.06.02.0003 Assinaturas de Periódicos a Pagar account_template_262 payable other passivo True
267 account_template_266 2.1.06.02.0004 Aluguel a Pagar account_template_262 payable other passivo True
268 account_template_267 2.1.06.02.0005 Doações a Pagar account_template_262 payable other passivo True
269 account_template_268 2.1.06.02.0006 Pensão Alimenticia a Pagar account_template_262 payable other passivo True
270 account_template_269 2.1.06.03 ADIANTAMENTO DE CLIENTES account_template_256 view passivo True
271 account_template_270 2.1.06.03.0001 Adiantamento Clientes account_template_269 payable other passivo True
272 account_template_271 2.2 PASSIVO NÃO CIRCULANTE account_template_193 view passivo True
273 account_template_272 2.2.01 EXIGÍVEL A LONGO PRAZO account_template_271 view passivo True
274 account_template_273 2.2.01.01 FINANCIAMENTOS A LONGO PRAZO - SFN account_template_272 view passivo True
275 account_template_274 2.2.01.01.0001 Banco Conta Empréstimo account_template_273 payable other passivo True
276 account_template_275 2.2.01.02 EMPRÉSTIMO DE SÓCIOS account_template_272 view passivo True
277 account_template_276 2.2.01.02.0001 Sócio account_template_275 payable other passivo True
278 account_template_277 2.2.01.03 EMPRÉSTIMO DE EMPRESAS LIGADAS account_template_272 view passivo True
279 account_template_278 2.2.01.03.0001 Empresas Ligadas account_template_277 payable other passivo True
280 account_template_279 2.2.01.04 EMPRÉSTIMOS A TERCEIROS account_template_272 view passivo True
281 account_template_280 2.2.01.04.0001 Terceiro account_template_279 payable other passivo True
282 account_template_281 2.2.01.05 PARCELAMENTOS TRIBUTÁRIOS account_template_272 view passivo True
283 account_template_282 2.2.01.05.0001 COFINS Parcelamento account_template_281 payable other passivo True
284 account_template_283 2.2.01.05.0002 PIS Parcelamento account_template_281 payable other passivo True
285 account_template_284 2.2.01.05.0003 IPI Parcelamento account_template_281 payable other passivo True
286 account_template_285 2.2.01.05.0004 ICMS Parcelamento account_template_281 payable other passivo True
287 account_template_286 2.2.01.05.0005 ISS Parcelamento account_template_281 payable other passivo True
288 account_template_287 2.2.01.05.0006 IRPJ Parcelamento account_template_281 payable other passivo True
289 account_template_288 2.2.01.05.0007 CSLL Parcelamento account_template_281 payable other passivo True
290 account_template_289 2.2.01.05.0008 INSS Parcelamento account_template_281 payable other passivo True
291 account_template_290 2.2.01.05.0009 FGTS Parcelamento account_template_281 payable other passivo True
292 account_template_291 2.2.03 RECEITA DIFERIDA account_template_271 view passivo True
293 account_template_292 2.2.03.01 RECEITAS DIFERIDAS account_template_291 view passivo True
294 account_template_293 2.2.03.01.0001 Receitas a Realizar account_template_292 payable other passivo True
295 account_template_294 2.2.03.02 CUSTOS DIFERIDOS account_template_291 view passivo True
296 account_template_295 2.2.03.02.0001 Custos Diferidos account_template_294 payable other passivo True
297 account_template_296 2.2.03.03 DESPESAS DIFERIDAS account_template_291 view passivo True
298 account_template_297 2.2.03.03.0001 Despesas Diferidas account_template_296 payable other passivo True
299 account_template_298 2.4 PATRIMÔNIO LÍQUIDO account_template_193 view passivo True
300 account_template_299 2.4.01 CAPITAL SOCIAL account_template_298 view passivo True
301 account_template_300 2.4.01.01 CAPITAL SOCIAL REALIZADO account_template_299 view passivo True
302 account_template_301 2.4.01.01.0001 Capital Social Realizado account_template_300 payable other passivo True
303 account_template_302 2.4.01.02 (-) CAPITAL A REALIZAR account_template_299 view passivo True
304 account_template_303 2.4.01.02.0001 Capital Social a Realizar account_template_302 payable other passivo True
305 account_template_304 2.4.02 RESERVAS account_template_298 view passivo True
306 account_template_305 2.4.02.01 RESERVAS DE CAPITAL account_template_304 view passivo True
307 account_template_306 2.4.02.01.0001 Reserva de Correção do Capital Realizado account_template_305 payable other passivo True
308 account_template_307 2.4.02.02 AJUSTES DE AVALIAÇÃO PATRIMONIAL account_template_304 view passivo True
309 account_template_308 2.4.02.02.0001 Ajustes de Avaliação Patrimonial account_template_307 payable other passivo True
310 account_template_309 2.4.02.03 RESERVAS DE LUCROS account_template_304 view passivo True
311 account_template_310 2.4.02.03.0001 Reserva de Lucros account_template_309 payable other passivo True
312 account_template_311 2.4.02.03.0002 Reserva para Aumento de Capital account_template_309 payable other passivo True
313 account_template_312 2.4.02.04 PREJUÍZOS ACUMULADOS account_template_304 view passivo True
314 account_template_313 2.4.02.04.0002 (-) Prejuízos Acumulados account_template_312 payable other passivo True
315 account_template_314 2.4.02.04.0003 Ajustes Credores Exercícios Anteriores account_template_312 payable other passivo True
316 account_template_315 2.4.02.04.0001 Ajustes Devedores Exercícios Anteriores account_template_312 payable other passivo True
317 account_template_316 2.4.02.05 RESULTADO DO EXERCÍCIO account_template_304 view passivo True
318 account_template_317 2.4.02.05.0001 Lucro do Exercício account_template_316 payable other passivo True
319 account_template_318 2.4.02.05.0002 Prejuízo do Exercício account_template_316 payable other passivo True
320 account_template_319 2.4.02.06 (-) LUCROS DISTRIBUÍDOS account_template_304 view passivo True
321 account_template_320 2.4.02.06.0001 Lucros Distribuídos account_template_319 payable other passivo True
322 account_template_321 3 CONTAS DE RESULTADO - CUSTOS E DESPESAS account_template_1 view despesa True
323 account_template_322 3.1 CUSTOS account_template_321 view despesa True
324 account_template_323 3.1.01 CUSTOS DAS MERCADORIAS E PRODUTOS account_template_322 view despesa True
337 account_template_336 3.1.02.03.0005 13º Salário account_template_331 other despesa True
338 account_template_337 3.1.02.03.0006 Aviso Prévio/Indeniz.Trabalhistas account_template_331 other despesa True
339 account_template_338 3.1.02.03.0007 Gratificações account_template_331 other despesa True
340 account_template_339 3.1.02.03.0008 INSS Empresa account_template_331 payable other passivo despesa True
341 account_template_340 3.1.02.03.0009 FGTS account_template_331 payable other passivo despesa True
342 account_template_341 3.1.02.03.0010 Adicional Insalubridade account_template_331 other despesa True
343 account_template_342 3.1.02.03.0011 Vale Transporte account_template_331 other despesa True
344 account_template_343 3.1.02.03.0012 PAT - Programa Alim. Trabalhador account_template_331 other despesa True
@@ -1,14 +1,13 @@
"id","code","name","parent_id:id","sign"
"tax_code_chart_root","","Códigos de Impostos Brasileiros","","1"
"tax_code_1","ICMS","ICMS Interno","tax_code_chart_root","1"
"tax_code_2","ICMS","ICMS Externo","tax_code_chart_root","1"
"tax_code_3","ICMS Subist","ICMS Subist","tax_code_chart_root","1"
"tax_code_4","IPI","IPI","tax_code_chart_root","1"
"tax_code_5","PIS","PIS","tax_code_chart_root","1"
"tax_code_6","COFINS","COFINS","tax_code_chart_root","1"
"tax_code_7","IRPJ","IRPJ","tax_code_chart_root","1"
"tax_code_8","IR","IR","tax_code_chart_root","1"
"tax_code_9","ISS","ISS","tax_code_chart_root","1"
"tax_code_10","CSLL","CSLL","tax_code_chart_root","1"
"id","code","name","parent_id:id","sign","domain","tax_discount"
"tax_code_chart_root","","Códigos de Impostos Brasileiros","","1","",0
"tax_code_1","ICMS","ICMS","tax_code_chart_root","1","icms",1
"tax_code_2","ICMS Subist","ICMS Subist","tax_code_chart_root","1","icmsst",0
"tax_code_3","IPI","IPI","tax_code_chart_root","1","ipi",0
"tax_code_4","PIS","PIS","tax_code_chart_root","1","pis",1
"tax_code_5","COFINS","COFINS","tax_code_chart_root","1","cofins",1
"tax_code_6","IRPJ","IRPJ","tax_code_chart_root","1","irpj",1
"tax_code_7","IR","IR","tax_code_chart_root","1","ir",1
"tax_code_8","ISS","ISS","tax_code_chart_root","1","iss",1
"tax_code_9","CSLL","CSLL","tax_code_chart_root","1","csll",1
1 id code name parent_id:id sign domain tax_discount
2 tax_code_chart_root Códigos de Impostos Brasileiros 1 0
3 tax_code_1 ICMS ICMS Interno ICMS tax_code_chart_root 1 icms 1
4 tax_code_2 ICMS ICMS Subist ICMS Externo ICMS Subist tax_code_chart_root 1 icmsst 0
5 tax_code_3 ICMS Subist IPI ICMS Subist IPI tax_code_chart_root 1 ipi 0
6 tax_code_4 IPI PIS IPI PIS tax_code_chart_root 1 pis 1
7 tax_code_5 PIS COFINS PIS COFINS tax_code_chart_root 1 cofins 1
8 tax_code_6 COFINS IRPJ COFINS IRPJ tax_code_chart_root 1 irpj 1
9 tax_code_7 IRPJ IR IRPJ IR tax_code_chart_root 1 ir 1
10 tax_code_8 IR ISS IR ISS tax_code_chart_root 1 iss 1
11 tax_code_9 ISS CSLL ISS CSLL tax_code_chart_root 1 csll 1
tax_code_10 CSLL CSLL tax_code_chart_root 1
12
13
File diff suppressed because it is too large Load Diff
@@ -1,15 +1,16 @@
<?xml version="1.0"?>
<openerp>
<data>
<record id="l10n_br_account_chart_template" model="account.chart.template">
<field name="name">Planilha de Contas Brasileira</field>
<field name="account_root_id" ref="account_template_1"/>
<field name="account_root_id" ref="account_template_1" />
<field name="tax_code_root_id" ref="tax_code_chart_root"/>
<field name="bank_account_view_id" ref="account_template_9"/>
<field name="property_account_receivable" ref="account_template_16"/>
<field name="property_account_payable" ref="account_template_204"/>
<field name="property_account_expense_categ" ref="account_template_329"/>
<field name="property_account_income_categ" ref="account_template_552"/>
<field name="property_account_payable" ref="account_template_204" />
<field name="property_account_expense_categ" ref="account_template_330" />
<field name="property_account_income_categ" ref="account_template_552" />
</record>
<record id="config_call_account_template_brazilian_localization" model="ir.actions.todo">
@@ -17,8 +18,8 @@
<field name="note">Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.
This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template.</field>
<field name="action_id" ref="account.action_wizard_multi_chart"/>
<field name="type">automatic</field>
<field name="category_id" ref="account.category_accounting_configuration"/>
<field name="state">open</field>
<field name="restart">onskip</field>
</record>
</data>
+673
View File
@@ -0,0 +1,673 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<!-- l10n_br_account.cst.template -->
<record id="l10n_br_cst_template_1" model="l10n_br_account.cst.template">
<field name="code">01</field>
<field name="name">Operação Tributável com Alíquota Básica</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_2" model="l10n_br_account.cst.template">
<field name="code">02</field>
<field name="name">Operação Tributável com Alíquota Diferenciada</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_3" model="l10n_br_account.cst.template">
<field name="code">03</field>
<field name="name">Operação Tributável com Alíquota por Unidade de Medida de Produto</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_4" model="l10n_br_account.cst.template">
<field name="code">04</field>
<field name="name">Operação Tributável Monofásica - Revenda a Alíquota Zero</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_5" model="l10n_br_account.cst.template">
<field name="code">05</field>
<field name="name">Operação Tributável por Substituição Tributária</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_6" model="l10n_br_account.cst.template">
<field name="code">06</field>
<field name="name">Operação Tributável a Alíquota zero</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_7" model="l10n_br_account.cst.template">
<field name="code">07</field>
<field name="name">Operação Isenta da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_8" model="l10n_br_account.cst.template">
<field name="code">08</field>
<field name="name">Operação sem Incidência da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_9" model="l10n_br_account.cst.template">
<field name="code">09</field>
<field name="name">Operação com Suspensão da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_10" model="l10n_br_account.cst.template">
<field name="code">49</field>
<field name="name">Outras Operações de Saída</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_11" model="l10n_br_account.cst.template">
<field name="code">50</field>
<field name="name">Operação com Direito a Crédito - Vinculada Exclusivamente a Receita Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_12" model="l10n_br_account.cst.template">
<field name="code">51</field>
<field name="name">Operação com Direito a Crédito - Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_13" model="l10n_br_account.cst.template">
<field name="code">52</field>
<field name="name">Operação com Direito a Crédito - Vinculada Exclusivamente a Receita de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_14" model="l10n_br_account.cst.template">
<field name="code">53</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_15" model="l10n_br_account.cst.template">
<field name="code">54</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_16" model="l10n_br_account.cst.template">
<field name="code">55</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Não Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_17" model="l10n_br_account.cst.template">
<field name="code">56</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_18" model="l10n_br_account.cst.template">
<field name="code">60</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_19" model="l10n_br_account.cst.template">
<field name="code">61</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_20" model="l10n_br_account.cst.template">
<field name="code">62</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_21" model="l10n_br_account.cst.template">
<field name="code">63</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_22" model="l10n_br_account.cst.template">
<field name="code">64</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_23" model="l10n_br_account.cst.template">
<field name="code">65</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_24" model="l10n_br_account.cst.template">
<field name="code">66</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_25" model="l10n_br_account.cst.template">
<field name="code">67</field>
<field name="name">Crédito Presumido - Outras Operações</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_26" model="l10n_br_account.cst.template">
<field name="code">70</field>
<field name="name">Operação de Aquisição sem Direito a Crédito</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_27" model="l10n_br_account.cst.template">
<field name="code">71</field>
<field name="name">Operação de Aquisição com Isenção</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_28" model="l10n_br_account.cst.template">
<field name="code">72</field>
<field name="name">Operação de Aquisição com Suspensão</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_29" model="l10n_br_account.cst.template">
<field name="code">73</field>
<field name="name">Operação de Aquisição a Alíquota Zero</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_30" model="l10n_br_account.cst.template">
<field name="code">74</field>
<field name="name">Operação de Aquisição sem Incidência da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_31" model="l10n_br_account.cst.template">
<field name="code">75</field>
<field name="name">Operação de Aquisição por Substituição Tributária</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_32" model="l10n_br_account.cst.template">
<field name="code">98</field>
<field name="name">Outras Operações de Entrada</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_33" model="l10n_br_account.cst.template">
<field name="code">99</field>
<field name="name">Outras Operações</field>
<field name="tax_code_template_id" ref="tax_code_5" />
</record>
<record id="l10n_br_cst_template_34" model="l10n_br_account.cst.template">
<field name="code">01</field>
<field name="name">Operação Tributável com Alíquota Básica</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_35" model="l10n_br_account.cst.template">
<field name="code">02</field>
<field name="name">Operação Tributável com Alíquota Diferenciada</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_36" model="l10n_br_account.cst.template">
<field name="code">03</field>
<field name="name">Operação Tributável com Alíquota por Unidade de Medida de Produto</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_37" model="l10n_br_account.cst.template">
<field name="code">04</field>
<field name="name">Operação Tributável Monofásica - Revenda a Alíquota Zero</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_38" model="l10n_br_account.cst.template">
<field name="code">05</field>
<field name="name">Operação Tributável por Substituição Tributária</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_39" model="l10n_br_account.cst.template">
<field name="code">06</field>
<field name="name">Operação Tributável a Alíquota Zero</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_40" model="l10n_br_account.cst.template">
<field name="code">07</field>
<field name="name">Operação Isenta da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_41" model="l10n_br_account.cst.template">
<field name="code">08</field>
<field name="name">Operação sem Incidência da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_42" model="l10n_br_account.cst.template">
<field name="code">09</field>
<field name="name">Operação com Suspensão da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_43" model="l10n_br_account.cst.template">
<field name="code">49</field>
<field name="name">Outras Operações de Saída</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_44" model="l10n_br_account.cst.template">
<field name="code">50</field>
<field name="name">Operação com Direito a Crédito - Vinculada Exclusivamente a Receita Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_45" model="l10n_br_account.cst.template">
<field name="code">51</field>
<field name="name">Operação com Direito a Crédito - Vinculada Exclusivamente a Receita Não Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_46" model="l10n_br_account.cst.template">
<field name="code">52</field>
<field name="name">Operação com Direito a Crédito - Vinculada Exclusivamente a Receita de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_47" model="l10n_br_account.cst.template">
<field name="code">53</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_48" model="l10n_br_account.cst.template">
<field name="code">54</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_49" model="l10n_br_account.cst.template">
<field name="code">55</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_50" model="l10n_br_account.cst.template">
<field name="code">56</field>
<field name="name">Operação com Direito a Crédito - Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno, e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_51" model="l10n_br_account.cst.template">
<field name="code">60</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_52" model="l10n_br_account.cst.template">
<field name="code">61</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita Não-Tributada no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_53" model="l10n_br_account.cst.template">
<field name="code">62</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada Exclusivamente a Receita de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_54" model="l10n_br_account.cst.template">
<field name="code">63</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_55" model="l10n_br_account.cst.template">
<field name="code">64</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_56" model="l10n_br_account.cst.template">
<field name="code">65</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Não-Tributadas no Mercado Interno e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_57" model="l10n_br_account.cst.template">
<field name="code">66</field>
<field name="name">Crédito Presumido - Operação de Aquisição Vinculada a Receitas Tributadas e Não-Tributadas no Mercado Interno, e de Exportação</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_58" model="l10n_br_account.cst.template">
<field name="code">67</field>
<field name="name">Crédito Presumido - Outras Operações</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_59" model="l10n_br_account.cst.template">
<field name="code">70</field>
<field name="name">Operação de Aquisição sem Direito a Crédito</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_60" model="l10n_br_account.cst.template">
<field name="code">71</field>
<field name="name">Operação de Aquisição com Isenção</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_61" model="l10n_br_account.cst.template">
<field name="code">72</field>
<field name="name">Operação de Aquisição com Suspensão</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_62" model="l10n_br_account.cst.template">
<field name="code">73</field>
<field name="name">Operação de Aquisição a Alíquota Zero</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_63" model="l10n_br_account.cst.template">
<field name="code">74</field>
<field name="name">Operação de Aquisição sem Incidência da Contribuição</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_64" model="l10n_br_account.cst.template">
<field name="code">75</field>
<field name="name">Operação de Aquisição por Substituição Tributária</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_65" model="l10n_br_account.cst.template">
<field name="code">98</field>
<field name="name">Outras Operações de Entrada</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_66" model="l10n_br_account.cst.template">
<field name="code">99</field>
<field name="name">Outras Operações</field>
<field name="tax_code_template_id" ref="tax_code_4" />
</record>
<record id="l10n_br_cst_template_67" model="l10n_br_account.cst.template">
<field name="code">00</field>
<field name="name">Entrada com recuperação de crédito</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_68" model="l10n_br_account.cst.template">
<field name="code">01</field>
<field name="name">Entrada tributada com alíquota zero</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_69" model="l10n_br_account.cst.template">
<field name="code">02</field>
<field name="name">Entrada isenta</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_70" model="l10n_br_account.cst.template">
<field name="code">03</field>
<field name="name">Entrada não-tributada</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_71" model="l10n_br_account.cst.template">
<field name="code">04</field>
<field name="name">Entrada imune</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_72" model="l10n_br_account.cst.template">
<field name="code">05</field>
<field name="name">Entrada com suspensão</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_73" model="l10n_br_account.cst.template">
<field name="code">49</field>
<field name="name">Outras entradas</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_74" model="l10n_br_account.cst.template">
<field name="code">50</field>
<field name="name">Saída tributada</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_75" model="l10n_br_account.cst.template">
<field name="code">51</field>
<field name="name">Saída tributada com alíquota zero</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_76" model="l10n_br_account.cst.template">
<field name="code">52</field>
<field name="name">Saída isenta</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_77" model="l10n_br_account.cst.template">
<field name="code">53</field>
<field name="name">Saída não-tributada</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_78" model="l10n_br_account.cst.template">
<field name="code">54</field>
<field name="name">Saída imune</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_79" model="l10n_br_account.cst.template">
<field name="code">55</field>
<field name="name">Saída com suspensão</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_80" model="l10n_br_account.cst.template">
<field name="code">99</field>
<field name="name">Outras saídas</field>
<field name="tax_code_template_id" ref="tax_code_3" />
</record>
<record id="l10n_br_cst_template_92" model="l10n_br_account.cst.template">
<field name="code">00</field>
<field name="name">Tributada integralmente</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_93" model="l10n_br_account.cst.template">
<field name="code">10</field>
<field name="name">Tributada e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_94" model="l10n_br_account.cst.template">
<field name="code">20</field>
<field name="name">Com redução de base de cálculo</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_95" model="l10n_br_account.cst.template">
<field name="code">30</field>
<field name="name">Isenta ou não tributada e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_96" model="l10n_br_account.cst.template">
<field name="code">40</field>
<field name="name">Isenta</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_97" model="l10n_br_account.cst.template">
<field name="code">41</field>
<field name="name">Não tributada</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_98" model="l10n_br_account.cst.template">
<field name="code">50</field>
<field name="name">Suspensão</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_99" model="l10n_br_account.cst.template">
<field name="code">51</field>
<field name="name">Diferimento</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_100" model="l10n_br_account.cst.template">
<field name="code">60</field>
<field name="name">ICMS cobrado anteriormente por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_101" model="l10n_br_account.cst.template">
<field name="code">70</field>
<field name="name">Com redução de base de cálculo e cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_102" model="l10n_br_account.cst.template">
<field name="code">90</field>
<field name="name">Outras</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_103" model="l10n_br_account.cst.template">
<field name="code">101</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional com permissão de crédito</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_104" model="l10n_br_account.cst.template">
<field name="code">102</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional sem permissão de crédito</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_105" model="l10n_br_account.cst.template">
<field name="code">103</field>
<field name="name">Simples Nacional - Isenção do ICMS no Simples Nacional para faixa de receita bruta</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_106" model="l10n_br_account.cst.template">
<field name="code">201</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional com permissão de crédito e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_107" model="l10n_br_account.cst.template">
<field name="code">202</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional sem permissão de crédito e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_108" model="l10n_br_account.cst.template">
<field name="code">203</field>
<field name="name">Simples Nacional - Isenção do ICMS no Simples Nacional para faixa de receita bruta e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_109" model="l10n_br_account.cst.template">
<field name="code">300</field>
<field name="name">Simples Nacional - Imune</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_110" model="l10n_br_account.cst.template">
<field name="code">400</field>
<field name="name">Simples Nacional - Não tributada pelo Simples Nacional</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_111" model="l10n_br_account.cst.template">
<field name="code">500</field>
<field name="name">Simples Nacional - ICMS cobrado anteriormente por substituição tributária (substituído) ou por antecipação</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_112" model="l10n_br_account.cst.template">
<field name="code">900</field>
<field name="name">Simples Nacional - Outros</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_103" model="l10n_br_account.cst.template">
<field name="code">101</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional com permissão de crédito</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_104" model="l10n_br_account.cst.template">
<field name="code">102</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional sem permissão de crédito</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_105" model="l10n_br_account.cst.template">
<field name="code">103</field>
<field name="name">Simples Nacional - Isenção do ICMS no Simples Nacional para faixa de receita bruta</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_106" model="l10n_br_account.cst.template">
<field name="code">201</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional com permissão de crédito e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_107" model="l10n_br_account.cst.template">
<field name="code">202</field>
<field name="name">Simples Nacional - Tributada pelo Simples Nacional sem permissão de crédito e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_108" model="l10n_br_account.cst.template">
<field name="code">203</field>
<field name="name">Simples Nacional - Isenção do ICMS no Simples Nacional para faixa de receita bruta e com cobrança do ICMS por substituição tributária</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_109" model="l10n_br_account.cst.template">
<field name="code">300</field>
<field name="name">Simples Nacional - Imune</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_110" model="l10n_br_account.cst.template">
<field name="code">400</field>
<field name="name">Simples Nacional - Não tributada pelo Simples Nacional</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_111" model="l10n_br_account.cst.template">
<field name="code">500</field>
<field name="name">Simples Nacional - ICMS cobrado anteriormente por substituição tributária (substituído) ou por antecipação</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
<record id="l10n_br_cst_template_112" model="l10n_br_account.cst.template">
<field name="code">900</field>
<field name="name">Simples Nacional - Outros</field>
<field name="tax_code_template_id" ref="tax_code_1" />
</record>
</data>
</openerp>
+84
View File
@@ -0,0 +1,84 @@
# -*- encoding: utf-8 -*-
#################################################################################
# #
# Copyright (C) 2009 Renato Lima - Akretion #
# #
#This program is free software: you can redistribute it and/or modify #
#it under the terms of the GNU Affero General Public License as published by #
#the Free Software Foundation, either version 3 of the License, or #
#(at your option) any later version. #
# #
#This program is distributed in the hope that it will be useful, #
#but WITHOUT ANY WARRANTY; without even the implied warranty of #
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
#GNU General Public License for more details. #
# #
#You should have received a copy of the GNU General Public License #
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
#################################################################################
from osv import fields, osv
class l10n_br_account_cst_template(osv.osv):
_name = 'l10n_br_account.cst.template'
_description = 'Tax Situation Code Template'
_columns = {
'code': fields.char('Code', size=8,required=True),
'name': fields.char('Description', size=64),
'tax_code_template_id': fields.many2one('account.tax.code.template', 'Tax Code Template',required=True),
}
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):
if not args:
args = []
if context is None:
context = {}
ids = self.search(cr, user, ['|',('name',operator,name),('code',operator,name)] + args, limit=limit, context=context)
return self.name_get(cr, user, ids, context)
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
reads = self.read(cr, uid, ids, ['name', 'code'], context=context)
res = []
for record in reads:
name = record['name']
if record['code']:
name = record['code'] + ' - '+name
res.append((record['id'], name))
return res
l10n_br_account_cst_template()
class l10n_br_account_cst(osv.osv):
_name = 'l10n_br_account.cst'
_description = 'Tax Situation Code'
_columns = {
'code': fields.char('Code', size=8,required=True),
'name': fields.char('Description', size=64),
'tax_code_id': fields.many2one('account.tax.code', 'Tax Code',required=True),
}
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):
if not args:
args = []
if context is None:
context = {}
ids = self.search(cr, user, ['|',('name',operator,name),('code',operator,name)] + args, limit=limit, context=context)
return self.name_get(cr, user, ids, context)
def name_get(self, cr, uid, ids, context=None):
if not ids:
return []
reads = self.read(cr, uid, ids, ['name', 'code'], context=context)
res = []
for record in reads:
name = record['name']
if record['code']:
name = record['code'] + ' - '+name
res.append((record['id'], name))
return res
l10n_br_account_cst()
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+80
View File
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="view_l10n_br_cst_template_form">
<field name="name">l10n_br.cst.form</field>
<field name="model">l10n_br_account.cst.template</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Tax Situation Code Template">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="tax_code_template_id" select="2"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_cst_template_tree">
<field name="name">l10n_br.cst.tree</field>
<field name="model">l10n_br_account.cst.template</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Tax Situation Code Template">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="tax_code_template_id" select="2"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_l10n_br_cst_template_form">
<field name="name">Tax Situation Code Template</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_br_account.cst.template</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_l10n_br_cst_template_tree"/>
</record>
<record model="ir.ui.view" id="view_l10n_br_cst_form">
<field name="name">l10n_br.cst.form</field>
<field name="model">l10n_br_account.cst</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Tax Situation Code">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="tax_code_id" select="2"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="view_l10n_br_cst_tree">
<field name="name">l10n_br.cst.tree</field>
<field name="model">l10n_br_account.cst</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Tax Situation Code">
<field name="code" select="1"/>
<field name="name" select="1"/>
<field name="tax_code_id" select="2"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_l10n_br_cst_form">
<field name="name">Tax Situation Code</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">l10n_br_account.cst</field>
<field name="view_mode">tree,form</field>
<field name="view_type">form</field>
<field name="view_id" ref="view_l10n_br_cst_tree"/>
</record>
<menuitem name="Tax Situation Code Template" id="menu_action_l10n_br_cst_template" sequence="99" parent="account.account_template_taxes" action="action_l10n_br_cst_template_form"/>
<menuitem name="Tax Situation Code" id="menu_action_l10n_br_cst" parent="account.next_id_27" sequence="99" action="action_l10n_br_cst_form"/>
</data>
</openerp>
@@ -0,0 +1,3 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"l10n_br_account_cst","l10n_br_account.cst","model_l10n_br_account_cst","account.group_account_invoice",1,1,1,1
"l10n_br_account_cst_template","l10n_br_account.cst.template","model_l10n_br_account_cst_template","account.group_account_invoice",1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 l10n_br_account_cst l10n_br_account.cst model_l10n_br_account_cst account.group_account_invoice 1 1 1 1
3 l10n_br_account_cst_template l10n_br_account.cst.template model_l10n_br_account_cst_template account.group_account_invoice 1 1 1 1
File diff suppressed because it is too large Load Diff
+5 -5
View File
@@ -7,11 +7,11 @@
<field name="name">Canada - Plan comptable pour les provinces francophones</field>
<field name="account_root_id" ref="chart0_fr"/>
<field name="tax_code_root_id" ref="vat_code_tax_fr"/>
<field name="bank_account_view_id" ref="chart111160_fr"/>
<field name="property_account_receivable" ref="chart112110_fr"/>
<field name="property_account_payable" ref="chart221110_fr"/>
<field name="property_account_income_categ" ref="chart411110_fr"/>
<field name="property_account_expense_categ" ref="chart511110_fr"/>
<field name="bank_account_view_id" ref="chart1111_fr"/>
<field name="property_account_receivable" ref="chart1151_fr"/>
<field name="property_account_payable" ref="chart2111_fr"/>
<field name="property_account_income_categ" ref="chart411_fr"/>
<field name="property_account_expense_categ" ref="chart5111_fr"/>
</record>
</data>
+13 -13
View File
@@ -15,7 +15,7 @@
<record id="gstpst_mb_gst_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">GST (5%)</field>
<field name="name">GST - 5% (MB)</field>
<field name="description">GST</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
@@ -32,7 +32,7 @@
<record id="pst_mb_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">PST (7%)</field>
<field name="name">PST - 7%</field>
<field name="description">PST</field>
<field name="amount">0.070000</field>
<field name="type">percent</field>
@@ -59,7 +59,7 @@
<record id="gstpst_pe_gst_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">GST (5%)</field>
<field name="name">GST - 5% (PE)</field>
<field name="description">GST</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
@@ -76,7 +76,7 @@
<record id="pst_pe_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">PST (10%)</field>
<field name="name">PST - 10%</field>
<field name="description">PST</field>
<field name="amount">0.100000</field>
<field name="type">percent</field>
@@ -103,7 +103,7 @@
<record id="gstpst_qc_gst_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">GST (5%)</field>
<field name="name">GST - 5% (QC)</field>
<field name="description">GST</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
@@ -120,7 +120,7 @@
<record id="pst_qc_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">PST (8.5%)</field>
<field name="name">PST - 8.5%</field>
<field name="description">PST</field>
<field name="amount">0.085000</field>
<field name="type">percent</field>
@@ -147,7 +147,7 @@
<record id="gstpst_sk_gst_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">GST (5%)</field>
<field name="name">GST - 5% (SK)</field>
<field name="description">GST</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
@@ -164,7 +164,7 @@
<record id="pst_sk_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">PST (5%)</field>
<field name="name">PST - 5%</field>
<field name="description">PST</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
@@ -182,7 +182,7 @@
<record id="hst12_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">HST (12%)</field>
<field name="name">HST - 12%</field>
<field name="description">HST12</field>
<field name="amount">0.120000</field>
<field name="type">percent</field>
@@ -196,7 +196,7 @@
<record id="hst13_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">HST (13%)</field>
<field name="name">HST - 13%</field>
<field name="description">HST13</field>
<field name="amount">0.130000</field>
<field name="type">percent</field>
@@ -210,7 +210,7 @@
<record id="hst135_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">HST (13.5%)</field>
<field name="name">HST - 13.5%</field>
<field name="description">HST135</field>
<field name="amount">0.135000</field>
<field name="type">percent</field>
@@ -224,7 +224,7 @@
<record id="hst15_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">HST (15%)</field>
<field name="name">HST - 15%</field>
<field name="description">HST15</field>
<field name="amount">0.150000</field>
<field name="type">percent</field>
@@ -240,7 +240,7 @@
<record id="gst_en" model="account.tax.template">
<field name="chart_template_id" ref="ca_en_chart_template_en"/>
<field name="name">GST (5%)</field>
<field name="name">GST - 5%</field>
<field name="description">GST</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
+39 -39
View File
@@ -15,14 +15,14 @@
<record id="tpstvp_mb_tps_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TPS (5%)</field>
<field name="name">TPS - 5% (MB)</field>
<field name="description">TPS</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="include_base_amount" eval="True"/>
<field name="account_collected_id" ref="chart241100_fr"/>
<field name="account_paid_id" ref="chart242100_fr"/>
<field name="account_collected_id" ref="chart1181_fr"/>
<field name="account_paid_id" ref="chart2131_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tps_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tps_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tps_fr"/>
@@ -32,13 +32,13 @@
<record id="tvp_mb_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVP (7%)</field>
<field name="name">TVP - 7%</field>
<field name="description">TVP</field>
<field name="amount">0.700000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="account_collected_id" ref="chart241200_fr"/>
<field name="account_paid_id" ref="chart242200_fr"/>
<field name="account_collected_id" ref="chart1182_fr"/>
<field name="account_paid_id" ref="chart2132_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvp_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvp_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvp_fr"/>
@@ -59,14 +59,14 @@
<record id="tpstvp_pe_tps_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TPS (5%)</field>
<field name="name">TPS - 5% (PE)</field>
<field name="description">TPS</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="include_base_amount" eval="True"/>
<field name="account_collected_id" ref="chart241100_fr"/>
<field name="account_paid_id" ref="chart242100_fr"/>
<field name="account_collected_id" ref="chart1181_fr"/>
<field name="account_paid_id" ref="chart2131_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tps_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tps_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tps_fr"/>
@@ -76,13 +76,13 @@
<record id="tvp_pe_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVP (10%)</field>
<field name="name">TVP - 10%</field>
<field name="description">TVP</field>
<field name="amount">0.100000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="account_collected_id" ref="chart241200_fr"/>
<field name="account_paid_id" ref="chart242200_fr"/>
<field name="account_collected_id" ref="chart1182_fr"/>
<field name="account_paid_id" ref="chart2132_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvp_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvp_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvp_fr"/>
@@ -103,14 +103,14 @@
<record id="tpstvq_tps_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TPS (5%)</field>
<field name="name">TPS - 5% (QC)</field>
<field name="description">TPS</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="include_base_amount" eval="True"/>
<field name="account_collected_id" ref="chart241100_fr"/>
<field name="account_paid_id" ref="chart242100_fr"/>
<field name="account_collected_id" ref="chart1181_fr"/>
<field name="account_paid_id" ref="chart2131_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tps_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tps_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tps_fr"/>
@@ -120,13 +120,13 @@
<record id="tvq_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVQ (8.5%)</field>
<field name="name">TVQ - 8.5%</field>
<field name="description">TVQ</field>
<field name="amount">0.085000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="account_collected_id" ref="chart241200_fr"/>
<field name="account_paid_id" ref="chart242200_fr"/>
<field name="account_collected_id" ref="chart1182_fr"/>
<field name="account_paid_id" ref="chart2132_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvp_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvp_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvp_fr"/>
@@ -147,14 +147,14 @@
<record id="tpstvp_sk_tps_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TPS (5%)</field>
<field name="name">TPS - 5% (SK)</field>
<field name="description">TPS</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="include_base_amount" eval="True"/>
<field name="account_collected_id" ref="chart241100_fr"/>
<field name="account_paid_id" ref="chart242100_fr"/>
<field name="account_collected_id" ref="chart1181_fr"/>
<field name="account_paid_id" ref="chart2131_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tps_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tps_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tps_fr"/>
@@ -164,13 +164,13 @@
<record id="tvp_sk_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVP (5%)</field>
<field name="name">TVP - 5% (SK)</field>
<field name="description">TVP</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
<field name="sequence">1</field>
<field name="account_collected_id" ref="chart241200_fr"/>
<field name="account_paid_id" ref="chart242200_fr"/>
<field name="account_collected_id" ref="chart1182_fr"/>
<field name="account_paid_id" ref="chart2132_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvp_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvp_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvp_fr"/>
@@ -182,12 +182,12 @@
<record id="tvh12_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVH (12%)</field>
<field name="name">TVH - 12%</field>
<field name="description">TVH12</field>
<field name="amount">0.120000</field>
<field name="type">percent</field>
<field name="account_collected_id" ref="chart241300_fr"/>
<field name="account_paid_id" ref="chart242300_fr"/>
<field name="account_collected_id" ref="chart1183_fr"/>
<field name="account_paid_id" ref="chart2133_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvh_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvh_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvh_fr"/>
@@ -196,12 +196,12 @@
<record id="tvh13_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVH (13%)</field>
<field name="name">TVH - 13%</field>
<field name="description">TVH13</field>
<field name="amount">0.130000</field>
<field name="type">percent</field>
<field name="account_collected_id" ref="chart241300_fr"/>
<field name="account_paid_id" ref="chart242300_fr"/>
<field name="account_collected_id" ref="chart1183_fr"/>
<field name="account_paid_id" ref="chart2133_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvh_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvh_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvh_fr"/>
@@ -210,12 +210,12 @@
<record id="tvh135_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVH (13.5%)</field>
<field name="name">TVH - 13.5%</field>
<field name="description">TVH135</field>
<field name="amount">0.135000</field>
<field name="type">percent</field>
<field name="account_collected_id" ref="chart241300_fr"/>
<field name="account_paid_id" ref="chart242300_fr"/>
<field name="account_collected_id" ref="chart1183_fr"/>
<field name="account_paid_id" ref="chart2133_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvh_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvh_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvh_fr"/>
@@ -224,12 +224,12 @@
<record id="tvh15_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TVH (15%)</field>
<field name="name">TVH - 15%</field>
<field name="description">TVH15</field>
<field name="amount">0.150000</field>
<field name="type">percent</field>
<field name="account_collected_id" ref="chart241300_fr"/>
<field name="account_paid_id" ref="chart242300_fr"/>
<field name="account_collected_id" ref="chart1183_fr"/>
<field name="account_paid_id" ref="chart2133_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tvh_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tvh_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tvh_fr"/>
@@ -240,12 +240,12 @@
<record id="tps_fr" model="account.tax.template">
<field name="chart_template_id" ref="ca_fr_chart_template_fr"/>
<field name="name">TPS (5%)</field>
<field name="name">TPS - 5%</field>
<field name="description">TPS</field>
<field name="amount">0.050000</field>
<field name="type">percent</field>
<field name="account_collected_id" ref="chart241100_fr"/>
<field name="account_paid_id" ref="chart242100_fr"/>
<field name="account_collected_id" ref="chart1181_fr"/>
<field name="account_paid_id" ref="chart2131_fr"/>
<field name="base_code_id" ref="vat_code_base_receivable_tps_fr"/>
<field name="tax_code_id" ref="vat_code_receivable_tps_fr"/>
<field name="ref_base_code_id" ref="vat_code_base_payable_tps_fr"/>
+39 -38
View File
@@ -313,80 +313,81 @@
<field name="tax_dest_id" ref="notax_fr" />
</record>
<!-- Fiscal Position Account Templates - Goods -->
<!-- Fiscal Position Account Templates - Products -->
<record id="fiscal_position_account_template_21_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_product_template_21_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_21_fr" />
<field name="account_src_id" ref="chart411110_fr" />
<field name="account_dest_id" ref="chart411120_fr" />
<field name="account_src_id" ref="chart411_fr" />
<field name="account_dest_id" ref="chart412_fr" />
</record>
<record id="fiscal_position_account_template_22_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_product_template_22_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_22_fr" />
<field name="account_src_id" ref="chart411110_fr" />
<field name="account_dest_id" ref="chart411120_fr" />
<field name="account_src_id" ref="chart411_fr" />
<field name="account_dest_id" ref="chart412_fr" />
</record>
<record id="fiscal_position_account_template_23_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_product_template_23_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_23_fr" />
<field name="account_src_id" ref="chart411110_fr" />
<field name="account_dest_id" ref="chart411120_fr" />
<field name="account_src_id" ref="chart411_fr" />
<field name="account_dest_id" ref="chart412_fr" />
</record>
<record id="fiscal_position_account_template_24_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_product_template_24_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_24_fr" />
<field name="account_src_id" ref="chart411110_fr" />
<field name="account_dest_id" ref="chart411120_fr" />
<field name="account_src_id" ref="chart411_fr" />
<field name="account_dest_id" ref="chart412_fr" />
</record>
<record id="fiscal_position_account_template_3_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_product_template_3_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_3_fr" />
<field name="account_src_id" ref="chart411110_fr" />
<field name="account_dest_id" ref="chart411130_fr" />
<field name="account_src_id" ref="chart411_fr" />
<field name="account_dest_id" ref="chart413_fr" />
</record>
<record id="fiscal_position_account_template_4_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_product_template_4_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_4_fr" />
<field name="account_src_id" ref="chart411110_fr" />
<field name="account_dest_id" ref="chart411140_fr" />
<field name="account_src_id" ref="chart411_fr" />
<field name="account_dest_id" ref="chart414_fr" />
</record>
<!-- Fiscal Position Account Templates - Services -->
<!-- Fiscal Position Account Templates - Charges -->
<record id="fiscal_position_account_template_21_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_charge_template_21_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_21_fr" />
<field name="account_src_id" ref="chart411210_fr" />
<field name="account_dest_id" ref="chart411220_fr" />
<field name="account_src_id" ref="chart5111_fr" />
<field name="account_dest_id" ref="chart5112_fr" />
</record>
<record id="fiscal_position_account_template_22_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_charge_template_22_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_22_fr" />
<field name="account_src_id" ref="chart411210_fr" />
<field name="account_dest_id" ref="chart411220_fr" />
<field name="account_src_id" ref="chart5111_fr" />
<field name="account_dest_id" ref="chart5112_fr" />
</record>
<record id="fiscal_position_account_template_23_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_charge_template_23_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_23_fr" />
<field name="account_src_id" ref="chart411210_fr" />
<field name="account_dest_id" ref="chart411220_fr" />
<field name="account_src_id" ref="chart5111_fr" />
<field name="account_dest_id" ref="chart5112_fr" />
</record>
<record id="fiscal_position_account_template_24_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_charge_template_24_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_24_fr" />
<field name="account_src_id" ref="chart411210_fr" />
<field name="account_dest_id" ref="chart411220_fr" />
<field name="account_src_id" ref="chart5111_fr" />
<field name="account_dest_id" ref="chart5112_fr" />
</record>
<record id="fiscal_position_account_template_3_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_charge_template_3_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_3_fr" />
<field name="account_src_id" ref="chart411210_fr" />
<field name="account_dest_id" ref="chart411230_fr" />
<field name="account_src_id" ref="chart5111_fr" />
<field name="account_dest_id" ref="chart5113_fr" />
</record>
<record id="fiscal_position_account_template_4_fr" model="account.fiscal.position.account.template">
<record id="fiscal_position_charge_template_4_fr" model="account.fiscal.position.account.template">
<field name="position_id" ref="fiscal_position_template_4_fr" />
<field name="account_src_id" ref="chart411210_fr" />
<field name="account_dest_id" ref="chart411240_fr" />
<field name="account_src_id" ref="chart5111_fr" />
<field name="account_dest_id" ref="chart5114_fr" />
</record>
</data>
</openerp>
-1
View File
@@ -62,7 +62,6 @@ The main features are:
"res_partner_view.xml",
'security/ir.model.access.csv',
'mail_data.xml',
'mail_installer.xml',
],
'installable': True,
'active': False,
-17
View File
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record model="ir.actions.act_window" id="action_configure_email_server">
<field name="name">Configure Email Servers</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.mail_server</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<record model="ir.actions.todo" id="config_wizard_action_configure_email_server">
<field name="action_id" ref="action_configure_email_server" />
<field name="category_id" ref="base.category_administration_config" />
</record>
</data>
</openerp>
+1
View File
@@ -1,2 +1,3 @@
# -*- coding: utf-8 -*-
import res_company
import ir_attachment
+35
View File
@@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
from osv import fields, osv
import random
import string
class ir_attachment(osv.osv):
_inherit = 'ir.attachment'
def pad_generate_url(self, cr, uid, model, id):
pad_url_template = self.pool.get('res.users').browse(cr,uid,[uid])[0].company_id.pad_url_template
s = string.ascii_uppercase + string.digits
salt = ''.join([s[random.randint(0, len(s) - 1)] for i in range(8)])
template_vars = {
'db' : cr.dbname,
'model' : model,
'id' : id,
'salt' : salt,
'name' : '',
}
return pad_url_template % template_vars
def pad_get(self, cr, uid, model, id):
attachment = self.search(cr, uid, [('res_model', '=', model), ('res_id', '=', id), ('type', '=', 'url'), ('name', '=', 'Pad')])
if attachment:
return self.read(cr, uid, attachment)[0]['url']
else:
url = self.pad_generate_url(cr, uid, model, id)
self.create(cr, uid, {
'res_model' : model,
'res_id' : id,
'type' : 'url',
'name' : 'Pad',
'url' : url,
})
return url
+3 -4
View File
@@ -4,11 +4,10 @@ from osv import fields, osv
class company_pad(osv.osv):
_inherit = 'res.company'
_columns = {
'pad_index': fields.char('Pad root URL', size=64, required=True,
help="The root URL of the company's pad "
"instance"),
'pad_url_template': fields.char('Pad URL Template', size=128, required=True,
help="Template used to generate pad URL."),
}
_defaults = {
'pad_index': 'http://ietherpad.com/'
'pad_url_template': 'http://ietherpad.com/%(db)s-%(model)s-%(id)d-%(salt)s-%(name)s'
}
+1 -1
View File
@@ -8,7 +8,7 @@
<field name="arch" type="xml">
<xpath expr="//page[@string='Configuration']" position="inside">
<separator string="Pad" colspan="4"/>
<field name="pad_index"/>
<field name="pad_url_template"/>
</xpath>
</field>
</record>

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 410 B

+18 -57
View File
@@ -1,71 +1,32 @@
openerp.pad = function(instance) {
var QWeb = instance.web.qweb;
QWeb.add_template('/pad/static/src/xml/pad.xml');
instance.web.form.SidebarAttachments = instance.web.form.SidebarAttachments.extend({
pad_prefix: undefined,
on_attachments_loaded: function(attachments) {
this._super(attachments);
var self = this;
var $padbtn = self.$element.find('button.pad');
var is_pad = function(a) {
return a.type == 'url' && a.name == 'Pad';
};
if (_.any(attachments, is_pad)) {
$padbtn.hide();
} else {
$padbtn.show().click(self.on_add_pad);
}
},
on_add_pad: function() {
var self = this;
var $padbtn = this.$element.find('button.pad');
$padbtn.attr('disabled', 'true').find('img, span').toggle();
this.do_load_pad_prefix(function() {
var attachment = new instance.web.DataSet(self, 'ir.attachment', self.view.dataset.get_context());
var r = (((1+Math.random())*0x10000)|0).toString(16).substring(1);
attachment.create({
res_model: self.view.dataset.model,
res_id: self.view.datarecord.id,
type: 'url',
name: 'Pad',
url: self.pad_prefix + r,
}, function() {
self.do_update();
});
this.view.dataset.call_button('pad_get', [[this.view.datarecord.id], this.view.dataset.get_context()], function(r) {
$padbtn.hide();
self.do_update();
self.do_action(r.result);
});
},
do_load_pad_prefix: function(continuation) {
var self = this;
if (this.pad_prefix === undefined) {
var user = new instance.web.DataSet(this, 'res.users', this.view.dataset.get_context());
var company = new instance.web.DataSet(this, 'res.company', this.view.dataset.get_context());
user.read_ids([this.session.uid], ['company_id'], function(result) {
company.read_ids([result[0].company_id[0]], ['pad_index'], function(result) {
var pad_index = _(result[0].pad_index).strip().replace(/\/$/, "");;
if (pad_index) {
self.pad_prefix = _('%s/%s-%s-%d-').sprintf(pad_index, self.session.db, self.view.dataset.model, self.view.datarecord.id);
} else {
self.pad_prefix = null;
}
continuation();
});
});
} else {
continuation();
}
},
on_attachments_loaded: function(attachments) {
this._super(attachments);
var self = this;
this.do_load_pad_prefix(function() {
var $padbtn = self.$element.find('button.pad');
var is_pad = function(a) {
return a.type == 'url' && _(a.url).startsWith(self.pad_prefix);
};
if (!self.pad_prefix || _.any(attachments, is_pad)) {
$padbtn.hide();
} else {
$padbtn.show().click(self.on_add_pad);
}
});
},
}
});
};
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import models
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+40
View File
@@ -0,0 +1,40 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': 'Project PAD',
'version': '1.0',
'category': 'Hidden/Link',
'complexity': "easy",
'description': """
This module adds a PAD in all project kanban views
==================================================
""",
'author': 'OpenERP SA',
'website': 'http://www.openerp.com',
'depends': ['project', 'pad'],
'init_xml': [],
'update_xml': ['models/project_task.xml'],
'demo_xml': [],
'installable': True,
'active': False,
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+24
View File
@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import project_task
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
+17
View File
@@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
from tools.translate import _
from osv import fields, osv
class task(osv.osv):
_inherit = "project.task"
def pad_get(self, cr, uid, ids, context=None):
"""Get pad action
"""
url = self.pool.get("ir.attachment").pad_get(cr, uid, self._name, ids[0])
return {
'type': 'ir.actions.act_url',
'url': url
}
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
@@ -0,0 +1,17 @@
<openerp>
<data>
<record id="view_task_kanban_with_pad" model="ir.ui.view">
<field name="name">project.task.kanban.pad</field>
<field name="model">project.task</field>
<field name="type">kanban</field>
<field name="inherit_id" ref="project.view_task_kanban"/>
<field name="arch" type="xml">
<xpath expr="//a[@type='color']" position="after">
<a name="pad_get" string="Pad" type="object">
<img src="/pad/static/src/img/pad-icon.png" border="0" width="16" height="16"/>
</a>
</xpath>
</field>
</record>
</data>
</openerp>
+4 -3
View File
@@ -53,7 +53,7 @@ class procurement_order(osv.osv):
procurement_obj = self.pool.get('procurement.order')
if not ids:
ids = procurement_obj.search(cr, uid, [], order="date_planned")
ids = procurement_obj.search(cr, uid, [('state', '=', 'exception')], order="date_planned")
for id in ids:
wf_service.trg_validate(uid, 'procurement.order', id, 'button_restart', cr)
if use_new_cursor:
@@ -74,7 +74,7 @@ class procurement_order(osv.osv):
else:
offset += 1
report_later += 1
for proc in procurement_obj.browse(cr, uid, ids, context=context):
if proc.state == 'exception':
report.append(_('PROC %d: on order - %3.2f %-5s - %s') % \
(proc.id, proc.product_qty, proc.product_uom.name,
@@ -97,12 +97,13 @@ class procurement_order(osv.osv):
else:
report_later += 1
report_total += 1
for proc in procurement_obj.browse(cr, uid, report_ids, context=context):
if proc.state == 'exception':
report.append(_('PROC %d: from stock - %3.2f %-5s - %s') % \
(proc.id, proc.product_qty, proc.product_uom.name,
proc.product_id.name,))
report_except += 1
if use_new_cursor:
cr.commit()
offset += len(ids)
+2 -2
View File
@@ -363,8 +363,8 @@
<a string="Change Color" icon="color-picker" type="color" name="color"/>
</div>
<div class="oe_kanban_right">
<a name="do_pending" string="Set Pending" states="draft,open" type="object" icon="gtk-media-pause"/>
<a name="do_open" string="Open" states="pending" type="object" icon="gtk-media-play"/>
<a name="do_pending" string="Set Pending" states="open" type="object" icon="gtk-media-pause"/>
<a name="do_open" string="Open" states="draft,pending" type="object" icon="gtk-media-play"/>
</div>
<br class="oe_kanban_clear"/>
</div>
+1 -1
View File
@@ -92,8 +92,8 @@ class project_issue(crm.crm_case, osv.osv):
res = {}
for issue in self.browse(cr, uid, ids, context=context):
res[issue.id] = {}
for field in fields:
res[issue.id] = {}
duration = 0
ans = False
hours = 0
+35 -25
View File
@@ -38,43 +38,53 @@ This module adds a new Report Engine based on WebKit library (wkhtmltopdf) to su
The module structure and some code is inspired by the report_openoffice module.
The module allows:
-HTML report definition
-Multi header support
-Multi logo
-Multi company support
-HTML and CSS-3 support (In the limit of the actual WebKIT version)
-JavaScript support
-Raw HTML debugger
-Book printing capabilities
-Margins definition
-Paper size definition
- HTML report definition
- Multi header support
- Multi logo
- Multi company support
- HTML and CSS-3 support (In the limit of the actual WebKIT version)
- JavaScript support
- Raw HTML debugger
- Book printing capabilities
- Margins definition
- Paper size definition
... and much more
Multiple headers and logos can be defined per company.
CSS style, header and footer body are defined per company
The library to install can be found here
http://code.google.com/p/wkhtmltopdf/
The system libraries are available for Linux, Mac OS X i386 and Windows 32.
After installing the wkhtmltopdf library on the OpenERP Server machine, you need to set the
path to the wkthtmltopdf executable file on the Company.
CSS style, header and footer body are defined per company.
For a sample report see also the webkit_report_sample module, and this video:
http://files.me.com/nbessi/06n92k.mov
Requirements and Installation
-----------------------------
This module requires the ``wkthtmltopdf`` library to render HTML documents as
PDF. Version 0.9.9 or later is necessary, and can be found at http://code.google.com/p/wkhtmltopdf/
for Linux, Mac OS X (i386) and Windows (32bits).
After installing the library on the OpenERP Server machine, you need to set the
path to the ``wkthtmltopdf`` executable file on each Company.
If you are experiencing missing header/footer problems on Linux, be sure to
install a "static" version of the library. The default ``wkhtmltopdf`` on
Ubuntu is known to have this issue.
TODO
----
* JavaScript support activation deactivation
* Collated and book format support
* Zip return for separated PDF
* Web client WYSIWYG
TODO :
JavaScript support activation deactivation
Collated and book format support
Zip return for separated PDF
Web client WYSIWYG
""",
"version" : "0.9",
"depends" : ["base"],
"author" : "Camptocamp SA - NBessi",
"category": "Hidden",
"author" : "Camptocamp",
"category": "Hidden", # i.e a technical module, not shown in Application install menu
"url": "http://http://www.camptocamp.com/",
"data": [ "security/ir.model.access.csv",
"data.xml",
+16 -12
View File
@@ -33,24 +33,28 @@ from osv import fields, osv
class ResCompany(osv.osv):
"""Override company to add Header object link a company can have many header and logos"""
_inherit = "res.company"
_columns = {
'header_image' : fields.many2many(
'ir.header_img',
'company_img_rel',
'company_id',
'img_id',
'ir.header_img',
'company_img_rel',
'company_id',
'img_id',
'Available Images',
),
'header_webkit' : fields.many2many(
'ir.header_webkit',
'company_html_rel',
'company_id',
'html_id',
'ir.header_webkit',
'company_html_rel',
'company_id',
'html_id',
'Available html',
),
'lib_path' : fields.char('Webkit Executable Path', size=264, help="Complete (Absolute) path to the wkhtmltopdf executable."),
'lib_path' : fields.char('Webkit Executable Path', size=264,
help="Full path to the wkhtmltopdf executable file. "
"Version 0.9.9 is required. Install a static version "
"of the library if you experience missing header/footers "
"on Linux."),
}
ResCompany()
}
ResCompany()
+22
View File
@@ -0,0 +1,22 @@
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<style type="text/css">
${css}
</style>
<script>
function subst() {
var vars={};
var x=document.location.search.substring(1).split('&');
for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for(var i in x) {
var y = document.getElementsByClassName(x[i]);
for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body style="border:0; margin: 0;" onload="subst()">
</body>
</html>
+4 -4
View File
@@ -33,7 +33,7 @@ from osv import fields, osv
class HeaderHTML(osv.osv):
"""HTML Header allows you to define HTML CSS and Page format"""
_name = "ir.header_webkit"
_columns = {
'company_id' : fields.many2one('res.company', 'Company'),
@@ -86,7 +86,7 @@ class HeaderHTML(osv.osv):
required=True,
help="Select Proper Paper size"
)
}
}
HeaderHTML()
class HeaderImage(osv.osv):
@@ -97,5 +97,5 @@ class HeaderImage(osv.osv):
'img' : fields.binary('Image'),
'name' : fields.char('Name', size=128, required =True, help="Name of Image"),
'type' : fields.char('Type', size=32, required =True, help="Image type(png,gif,jpeg)")
}
HeaderImage()
}
HeaderImage()
+24 -21
View File
@@ -6,31 +6,26 @@
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<field name='company_id' />
<newline />
<field name="name"/>
<field name="type"/>
<group col="6" colspan="4">
<field name="name"/>
<field name="type"/>
<field name='company_id' />
</group>
<field name="img" widget="image" colspan="4"/>
</form>
</field>
</record>
<record model="ir.ui.view" id="header_webkit">
<field name="name">res.company.header.html</field>
<field name="model">ir.header_webkit</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form>
<field name="name"/>
<newline/>
<notebook>
<page string="Content and styling" >
<field name='company_id' />
<field name="css" colspan="4"/>
<field name="html" colspan="4"/>
<field name="footer_html" colspan="4" />
</page>
<page string="page setup" >
<field name="name" colspan="4"/>
<notebook colspan="4">
<page string="Company and Page Setup" >
<field name='company_id' colspan="4"/>
<field name="orientation" />
<field name="format" />
<field name="margin_top" />
@@ -38,27 +33,35 @@
<field name="margin_left" />
<field name="margin_right" />
</page>
<page string="CSS Style" >
<field name="css" colspan="4" nolabel="1"/>
</page>
<page string="Header" >
<field name="html" colspan="4" nolabel="1"/>
</page>
<page string="Footer" >
<field name="footer_html" colspan="4" nolabel="1"/>
</page>
</notebook>
</form>
</field>
</record>
<record id="action_header_img" model="ir.actions.act_window">
<field name="name">Header IMG</field>
<field name="name">Webkit Logos</field>
<field name="res_model">ir.header_img</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="action_header_img" id="menu_header_img" parent="base.menu_res_company_global" sequence="14"/>
<record id="action_header_webkit" model="ir.actions.act_window">
<field name="name">Header HTML</field>
<field name="name">Webkit Headers/Footers</field>
<field name="res_model">ir.header_webkit</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem action="action_header_webkit" id="menu_header_webkit" parent="base.menu_res_company_global" sequence="14"/>
</data>
</openerp>
+4 -1
View File
@@ -123,13 +123,16 @@ class ReportXML(osv.osv):
'ir.header_webkit',
type='many2one',
relation='ir.header_webkit',
string='WebKit Header',
string='Webkit Header',
help="The header linked to the report",
view_load=True,
required=True
),
'webkit_debug' : fields.boolean('Webkit debug', help="Enable the webkit engine debugger"),
'report_webkit_data': fields.text('Webkit Template', help="This template will be used if the main report file is not found"),
'precise_mode':fields.boolean('Precise Mode', help='This mode allow more precise element \
position as each object is printed on a separate HTML.\
but memory and disk usage is wider')
}
ReportXML()
+1
View File
@@ -10,6 +10,7 @@
<page string="Webkit" attrs="{'invisible':[('report_type','!=','webkit')]}">
<field name="webkit_header"/>
<field name="webkit_debug"/>
<field name="precise_mode"/>
<separator string="Webkit Template (used if Report File is not found)" colspan="4"/>
<field name="report_webkit_data" colspan="4" nolabel="1"/>
</page>
@@ -1,3 +1,3 @@
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink"
"access_ir_header_webkit","ir.header_webkit","model_ir_header_webkit",,1,,1,
"access_ir_header_img","ir.header_img","model_ir_header_img",,1,,1,
"access_ir_header_img","ir.header_img","model_ir_header_img",,1,,1,
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_ir_header_webkit ir.header_webkit model_ir_header_webkit 1 1
3 access_ir_header_img ir.header_img model_ir_header_img 1 1
+74 -131
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com)
# Copyright (c) 2010 Camptocamp SA (http://www.camptocamp.com)
# All Right Reserved
#
# Author : Nicolas Bessi (Camptocamp)
@@ -35,8 +35,11 @@ import os
import report
import tempfile
import time
import logging
from mako.template import Template
from mako import exceptions
import netsvc
import pooler
from report_helper import WebKitHelper
@@ -46,6 +49,7 @@ import tools
from tools.translate import _
from osv.osv import except_osv
logger = logging.getLogger('report_webkit')
def mako_template(text):
"""Build a Mako template.
@@ -60,12 +64,12 @@ class WebKitParser(report_sxw):
"""Custom class that use webkit to render HTML reports
Code partially taken from report openoffice. Thanks guys :)
"""
def __init__(self, name, table, rml=False, parser=False,
def __init__(self, name, table, rml=False, parser=False,
header=True, store=False):
self.parser_instance = False
self.localcontext={}
report_sxw.__init__(self, name, table, rml, parser,
report_sxw.__init__(self, name, table, rml, parser,
header, store)
def get_lib(self, cursor, uid, company) :
@@ -81,7 +85,7 @@ class WebKitParser(report_sxw):
' http://code.google.com/p/wkhtmltopdf/downloads/list and set the'+
' path to the executable on the Company form.'+
'Minimal version is 0.9.9')
)
)
if os.path.isabs(path) :
if (os.path.exists(path) and os.access(path, os.X_OK)\
and os.path.basename(path).startswith('wkhtmltopdf')):
@@ -118,7 +122,7 @@ class WebKitParser(report_sxw):
head_file = file( os.path.join(
tmp_dir,
str(time.time()) + '.head.html'
),
),
'w'
)
head_file.write(header)
@@ -129,14 +133,14 @@ class WebKitParser(report_sxw):
foot_file = file( os.path.join(
tmp_dir,
str(time.time()) + '.foot.html'
),
),
'w'
)
foot_file.write(footer)
foot_file.close()
file_to_del.append(foot_file.name)
command.extend(['--footer-html', foot_file.name])
if webkit_header.margin_top :
command.extend(['--margin-top', str(webkit_header.margin_top).replace(',', '.')])
if webkit_header.margin_bottom :
@@ -163,7 +167,7 @@ class WebKitParser(report_sxw):
status = subprocess.call(command, stderr=subprocess.PIPE) # ignore stderr
if status :
raise except_osv(
_('Webkit raise an error' ),
_('Webkit raise an error' ),
status
)
except Exception:
@@ -176,68 +180,30 @@ class WebKitParser(report_sxw):
os.unlink(out)
return pdf
def setLang(self, lang):
if not lang:
lang = 'en_US'
self.localcontext['lang'] = lang
def translate_call(self, src):
"""Translate String."""
ir_translation = self.pool.get('ir.translation')
res = ir_translation._get_source(self.parser_instance.cr, self.parser_instance.uid, self.name, 'report', self.localcontext.get('lang', 'en_US'), src)
res = ir_translation._get_source(self.parser_instance.cr, self.parser_instance.uid,
self.name, 'report', self.parser_instance.localcontext.get('lang', 'en_US'), src)
if not res :
return src
return res
def formatLang(self, value, digits=None, date=False, date_time=False, grouping=True, monetary=False):
"""format using the know cursor, language from localcontext"""
if digits is None:
digits = self.parser_instance.get_digits(value)
if isinstance(value, (str, unicode)) and not value:
return ''
pool_lang = self.pool.get('res.lang')
lang = self.localcontext['lang']
lang_ids = pool_lang.search(self.parser_instance.cr, self.parser_instance.uid, [('code','=',lang)])[0]
lang_obj = pool_lang.browse(self.parser_instance.cr, self.parser_instance.uid, lang_ids)
return res
if date or date_time:
if not str(value):
return ''
date_format = lang_obj.date_format
parse_format = '%Y-%m-%d'
if date_time:
value=value.split('.')[0]
date_format = date_format + " " + lang_obj.time_format
parse_format = '%Y-%m-%d %H:%M:%S'
if not isinstance(value, time.struct_time):
return time.strftime(date_format, time.strptime(value, parse_format))
else:
date = datetime(*value.timetuple()[:6])
return date.strftime(date_format)
return lang_obj.format('%.' + str(digits) + 'f', value, grouping=grouping, monetary=monetary)
# override needed to keep the attachments' storing procedure
# override needed to keep the attachments storing procedure
def create_single_pdf(self, cursor, uid, ids, data, report_xml, context=None):
"""generate the PDF"""
if context is None:
context={}
htmls = []
if report_xml.report_type != 'webkit':
return super(WebKitParser,self).create_single_pdf(cursor, uid, ids, data, report_xml, context=context)
self.parser_instance = self.parser(
cursor,
uid,
self.name2,
context=context
)
self.parser_instance = self.parser(cursor,
uid,
self.name2,
context=context)
self.pool = pooler.get_pool(cursor.dbname)
objs = self.getObjects(cursor, uid, ids, context)
@@ -256,66 +222,55 @@ class WebKitParser(report_sxw):
header = report_xml.webkit_header.html
footer = report_xml.webkit_header.footer_html
if not header and report_xml.header:
raise except_osv(
_('No header defined for this Webkit report!'),
_('Please set a header in company settings')
)
raise except_osv(
_('No header defined for this Webkit report!'),
_('Please set a header in company settings')
)
if not report_xml.header :
#I know it could be cleaner ...
header = u"""
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
<style type="text/css">
${css}
</style>
<script>
function subst() {
var vars={};
var x=document.location.search.substring(1).split('&');
for(var i in x) {var z=x[i].split('=',2);vars[z[0]] = unescape(z[1]);}
var x=['frompage','topage','page','webpage','section','subsection','subsubsection'];
for(var i in x) {
var y = document.getElementsByClassName(x[i]);
for(var j=0; j<y.length; ++j) y[j].textContent = vars[x[i]];
}
}
</script>
</head>
<body style="border:0; margin: 0;" onload="subst()">
</body>
</html>"""
header = ''
default_head = addons.get_module_resource('report_webkit', 'default_header.html')
with open(default_head,'r') as f:
header = f.read()
css = report_xml.webkit_header.css
if not css :
css = ''
user = self.pool.get('res.users').browse(cursor, uid, uid)
company= user.company_id
#default_filters=['unicode', 'entity'] can be used to set global filter
body_mako_tpl = mako_template(template)
helper = WebKitHelper(cursor, uid, report_xml.id, context)
try :
html = body_mako_tpl.render( helper=helper,
css=css,
_=self.translate_call,
**self.parser_instance.localcontext
)
except Exception, e:
msg = exceptions.text_error_template().render()
netsvc.Logger().notifyChannel('Webkit render', netsvc.LOG_ERROR, msg)
raise except_osv(_('Webkit render'), msg)
if report_xml.precise_mode:
for obj in objs:
self.parser_instance.localcontext['objects'] = [obj]
try :
html = body_mako_tpl.render(helper=helper,
css=css,
_=self.translate_call,
**self.parser_instance.localcontext)
htmls.append(html)
except Exception, e:
msg = exceptions.text_error_template().render()
logger.error(msg)
raise except_osv(_('Webkit render'), msg)
else:
try :
html = body_mako_tpl.render(helper=helper,
css=css,
_=self.translate_call,
**self.parser_instance.localcontext)
htmls.append(html)
except Exception, e:
msg = exceptions.text_error_template().render()
logger.error(msg)
raise except_osv(_('Webkit render'), msg)
head_mako_tpl = mako_template(header)
try :
head = head_mako_tpl.render(
company=company,
time=time,
helper=helper,
head = head_mako_tpl.render(helper=helper,
css=css,
formatLang=self.formatLang,
setLang=self.setLang,
_=self.translate_call,
_debug=False
)
_debug=False,
**self.parser_instance.localcontext)
except Exception, e:
raise except_osv(_('Webkit render'),
exceptions.text_error_template().render())
@@ -323,38 +278,28 @@ class WebKitParser(report_sxw):
if footer :
foot_mako_tpl = mako_template(footer)
try :
foot = foot_mako_tpl.render(
company=company,
time=time,
helper=helper,
foot = foot_mako_tpl.render(helper=helper,
css=css,
formatLang=self.formatLang,
setLang=self.setLang,
_=self.translate_call,
)
**self.parser_instance.localcontext)
except:
msg = exceptions.text_error_template().render()
netsvc.Logger().notifyChannel('Webkit render', netsvc.LOG_ERROR, msg)
logger.error(msg)
raise except_osv(_('Webkit render'), msg)
if report_xml.webkit_debug :
try :
deb = head_mako_tpl.render(
company=company,
time=time,
helper=helper,
css=css,
_debug=tools.ustr(html),
formatLang=self.formatLang,
setLang=self.setLang,
_=self.translate_call,
)
deb = head_mako_tpl.render(helper=helper,
css=css,
_debug=tools.ustr("\n".join(htmls)),
_=self.translate_call,
**self.parser_instance.localcontext)
except Exception, e:
msg = exceptions.text_error_template().render()
netsvc.Logger().notifyChannel('Webkit render', netsvc.LOG_ERROR, msg)
logger.error(msg)
raise except_osv(_('Webkit render'), msg)
return (deb, 'html')
bin = self.get_lib(cursor, uid, company.id)
pdf = self.generate_pdf(bin, report_xml, head, foot, [html])
pdf = self.generate_pdf(bin, report_xml, head, foot, htmls)
return (pdf, 'pdf')
@@ -366,13 +311,11 @@ class WebKitParser(report_sxw):
report_xml_ids = ir_obj.search(cursor, uid,
[('report_name', '=', self.name[7:])], context=context)
if report_xml_ids:
report_xml = ir_obj.browse(
cursor,
uid,
report_xml_ids[0],
context=context
)
report_xml = ir_obj.browse(cursor,
uid,
report_xml_ids[0],
context=context)
report_xml.report_rml = None
report_xml.report_rml_content = None
report_xml.report_sxw_content_data = None
+2 -2
View File
@@ -14,8 +14,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-26 05:13+0000\n"
"X-Generator: Launchpad (build 14189)\n"
"X-Launchpad-Export-Date: 2011-10-27 05:22+0000\n"
"X-Generator: Launchpad (build 14197)\n"
#. module: share
#: code:addons/share/web/editors.py:15
+6 -6
View File
@@ -7,14 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2011-01-11 11:16+0000\n"
"PO-Revision-Date: 2010-10-30 14:44+0000\n"
"Last-Translator: OpenERP Administrators <Unknown>\n"
"PO-Revision-Date: 2011-10-26 15:25+0000\n"
"Last-Translator: Thomas <Unknown>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Launchpad-Export-Date: 2011-10-19 04:48+0000\n"
"X-Generator: Launchpad (build 14157)\n"
"X-Launchpad-Export-Date: 2011-10-27 05:22+0000\n"
"X-Generator: Launchpad (build 14197)\n"
#. module: stock
#: field:product.product,track_outgoing:0
@@ -850,7 +850,7 @@ msgstr ""
#: code:addons/stock/stock.py:1315
#, python-format
msgid "is scheduled %s."
msgstr ""
msgstr "is gepland %s"
#. module: stock
#: help:stock.picking,location_id:0
@@ -926,7 +926,7 @@ msgstr "Levering informatie"
#: code:addons/stock/wizard/stock_fill_inventory.py:48
#, python-format
msgid "Stock Inventory is done"
msgstr ""
msgstr "Stock inventaris is voltooid"
#. module: stock
#: constraint:product.product:0