diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..59efef4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,216 @@ +################# +## Eclipse +################# + +*.pydevproject +.project +.metadata +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.classpath +.settings/ +.loadpath + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# PDT-specific +.buildpath + + +################# +## Visual Studio +################# + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. + +# User-specific files +*.suo +*.user +*.sln.docstates + +# Build results + +[Dd]ebug/ +[Rr]elease/ +x64/ +build/ +[Bb]in/ +[Oo]bj/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.log +*.scc + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opensdf +*.sdf +*.cachefile + +# Visual Studio profiler +*.psess +*.vsp +*.vspx + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +*.ncrunch* +.*crunch*.local.xml + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.Publish.xml +*.pubxml +*.publishproj + +# NuGet Packages Directory +## TODO: If you have NuGet Package Restore enabled, uncomment the next line +#packages/ + +# Windows Azure Build Output +csx +*.build.csdef + +# Windows Store app package directory +AppPackages/ + +# Others +sql/ +*.Cache +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.[Pp]ublish.xml +*.pfx +*.publishsettings + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file to a newer +# Visual Studio version. Backup files are not needed, because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +App_Data/*.mdf +App_Data/*.ldf + +############# +## Windows detritus +############# + +# Windows image file caches +Thumbs.db +ehthumbs.db + +# Folder config file +Desktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Mac crap +.DS_Store + + +############# +## Python +############# + +*.py[cod] +*.pyc +# Packages +*.egg +*.egg-info +dist/ +build/ +eggs/ +parts/ +var/ +sdist/ +develop-eggs/ +.installed.cfg + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox + +#Translations +*.mo + +#Mr Developer +.mr.developer.cfg diff --git a/README.md b/README.md index a384807..bf21532 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ DVIT.me odoo8 ===== -Various Odoo8 modules are contributed by DiamondVision DVIT.me http://dvit.me . +Various Odoo8 modules contributed by DiamondVision DVIT.me http://dvit.me and other community ones. This repo includes: @@ -15,3 +15,9 @@ report-rtl: based on barsi's report-rtl to print reports in RTL. web-lang: adds support for language based CSS files to support lang direction and fonts. Auto Hide Leftbar: will autohide the left menu and will show on hover. + +Voucher print: will add print option to customer & supplier payments. + +l10n_sa: localiation for Arabic countries and Saudi Arabia initially contains Chart of accounts based on the USA CoAs. + +For support, Plz contact us: http://dvit.me/ diff --git a/account_voucher_no_auto_reconcile/__init__.py b/account_voucher_no_auto_reconcile/__init__.py new file mode 100644 index 0000000..89d26e2 --- /dev/null +++ b/account_voucher_no_auto_reconcile/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +import models diff --git a/account_voucher_no_auto_reconcile/__openerp__.py b/account_voucher_no_auto_reconcile/__openerp__.py new file mode 100644 index 0000000..bc4702a --- /dev/null +++ b/account_voucher_no_auto_reconcile/__openerp__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +{ + 'name': "Account Voucher no auto reconcile", + + 'summary': """ Account voucher / payment no auto line match nor reconcilation.""", + + 'description': """ +Account Voucher / Payment no line auto match nor reconcilation. +================================================================ +This module will add a new button "Manual reconcilation" in the account voucher +to reset all auto reconciled lines. + """, + 'author': "DVIT.me", + 'website': "http://www.dvit.me", + 'category': 'Accounting', + 'version': '8.0.0.1', + 'depends': ['account_voucher'], + 'data': ['views.xml'], + 'installable': True, + 'auto_install': True, + 'application': False, +} diff --git a/account_voucher_no_auto_reconcile/models.py b/account_voucher_no_auto_reconcile/models.py new file mode 100644 index 0000000..e59f6f6 --- /dev/null +++ b/account_voucher_no_auto_reconcile/models.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- +from openerp import models, fields, api + + +class account_voucher(models.Model): + _name = 'account.voucher' + _inherit = 'account.voucher' + + @api.multi + def manual_reconcilation(self, **kwargs): + for record in self.line_cr_ids: + record['reconcile'] = False + record['amount'] = 0.0 + for record in self.line_dr_ids: + record['reconcile'] = False + record['amount'] = 0.0 diff --git a/account_voucher_no_auto_reconcile/views.xml b/account_voucher_no_auto_reconcile/views.xml new file mode 100644 index 0000000..18fc7ad --- /dev/null +++ b/account_voucher_no_auto_reconcile/views.xml @@ -0,0 +1,28 @@ + + + + view_vendor_receipt_form_manual_reconcile + account.voucher + + + +