Armando Soto Rodríguez has proposed merging lp:~as.clearcorp/openerp-ccorp-addons/6.1-account_voucher_date into lp:openerp-ccorp-addons.
Requested reviews: CLEARCORP drivers (clearcorp-drivers) For more details, see: https://code.launchpad.net/~as.clearcorp/openerp-ccorp-addons/6.1-account_voucher_date/+merge/113415 [FIX] date in account_voucher changed to required [FIX] date defaults is now ' ' -- https://code.launchpad.net/~as.clearcorp/openerp-ccorp-addons/6.1-account_voucher_date/+merge/113415 Your team CLEARCORP development team is subscribed to branch lp:openerp-ccorp-addons.
=== added directory 'account_voucher_date' === added file 'account_voucher_date/__init__.py' --- account_voucher_date/__init__.py 1970-01-01 00:00:00 +0000 +++ account_voucher_date/__init__.py 2012-07-04 15:27:20 +0000 @@ -0,0 +1,25 @@ +#-*- coding:utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved +# d$ +# +# 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 account_voucher + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'account_voucher_date/__openerp__.py' --- account_voucher_date/__openerp__.py 1970-01-01 00:00:00 +0000 +++ account_voucher_date/__openerp__.py 2012-07-04 15:27:20 +0000 @@ -0,0 +1,48 @@ +#-*- coding:utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved +# d$ +# +# 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': 'account_invoice_journal_defaults', + 'version': '1.0', + 'category': 'Accounting & Finance', + "sequence": 4, + 'complexity': "normal", + 'description': """ +account_invoice_journal_defaults. +======================= + * Currency changed to readonly + * Change button removed + * account_id removed in onchange_partner + * account_id added in onchange_journal + """, + "author" : 'CLEARCORP S.A', + 'website':'http://www.clearcorp.co.cr', + "depends" : ['account_voucher'], + 'update_xml': [ + 'voucher_payment_receipt_view.xml', + ], + "auto_install": False, + "application": False, + "installable": True, + 'license': 'AGPL-3', +} + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'account_voucher_date/account_voucher.py' --- account_voucher_date/account_voucher.py 1970-01-01 00:00:00 +0000 +++ account_voucher_date/account_voucher.py 2012-07-04 15:27:20 +0000 @@ -0,0 +1,40 @@ +#-*- coding:utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved +# d$ +# +# 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 netsvc +from osv import fields, orm +import tools +from tools.translate import _ + +class AccountVoucher(orm.Model): + _inherit = 'account.voucher' + + _defaults = { + 'date': '', + } + + + + + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === added file 'account_voucher_date/voucher_payment_receipt_view.xml' --- account_voucher_date/voucher_payment_receipt_view.xml 1970-01-01 00:00:00 +0000 +++ account_voucher_date/voucher_payment_receipt_view.xml 2012-07-04 15:27:20 +0000 @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<openerp> + <data> + <!-- Voucher Payment --> + <record id="account_voucher_date_view_vendor_payment_form" model="ir.ui.view"> + <field name="name">account.voucher.date.view.vendor.payment.form</field> + <field name="model">account.voucher</field> + <field name="type">form</field> + <field name="inherit_id" ref="account_voucher.view_vendor_payment_form"/> + <field name="arch" type="xml"> + <data> + <field name = "date" position = "replace"> + <field name="date" select="1" required = "1" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/> + </field> + </data> + </field> + </record> + <!-- End Voucher Payment --> + + <!-- Voucher Receipt --> + <record id="account_voucher_date_view_vendor_receipt_form" model="ir.ui.view"> + <field name="name">account.voucher.date.view.vendor.receipt.form</field> + <field name="model">account.voucher</field> + <field name="type">form</field> + <field name="inherit_id" ref="account_voucher.view_vendor_receipt_form"/> + <field name="arch" type="xml"> + <data> + <field name = "date" position = "replace"> + <field name="date" select="1" required = "1" invisible="context.get('line_type', False)" on_change="onchange_date(date, currency_id, payment_rate_currency_id, amount, company_id, context)"/> + </field> + </data> + </field> + </record> + <!-- Voucher Receipt --> + </data> +</openerp>
_______________________________________________ Mailing list: https://launchpad.net/~clearcorp Post to : [email protected] Unsubscribe : https://launchpad.net/~clearcorp More help : https://help.launchpad.net/ListHelp

