Skip to content

Instantly share code, notes, and snippets.

View eLBati's full-sized avatar

Lorenzo Battistini eLBati

View GitHub Profile
['&',
'|',
('company_id', '=', False),
('company_id', 'child_of', [1]),
'|',
('account_analytic_id.department_id', '!=', False),
('account_analytic_id.department_id.manager_id', '!=', False),
('account_analytic_id.department_id.manager_id.user_id', '!=', False),
('account_analytic_id.department_id.manager_id.user_id', '=', 5),
'|',
_name = "resource.calendar.attendance"
_description = "Work Detail"
_columns = {
'name' : fields.char("Name", size=64, required=True),
'dayofweek': fields.selection([('0','Monday'),('1','Tuesday'),('2','Wednesday'),('3','Thursday'),('4','Friday'),('5','Saturday'),('6','Sunday')], 'Day of week'),
'date_from' : fields.date('Starting date'),
'hour_from' : fields.float('Work from', size=8, required=True, help="Working time will start from"),
'hour_to' : fields.float("Work to", size=8, required=True, help="Working time will end at"),
'calendar_id' : fields.many2one("resource.calendar", "Resource's Calendar", required=True),
}
erp@erp:~/production/addons$ bzr diff
=== modified file 'purchase/purchase.py'
--- purchase/purchase.py 2011-10-12 08:31:39 +0000
+++ purchase/purchase.py 2011-10-13 13:21:57 +0000
@@ -706,14 +706,6 @@
'uom': uom,
'date': date_order,
})[pricelist]
- if price is False:
- warning = {
SELECT id
FROM account_move_line l
WHERE
account_id IN
(select id
FROM account_account
WHERE
type='receivable'
AND
active)
diff -r /home/elbati/workspace/openerp/openerp6/server/bin/addons/account_fiscal_year_closing//__openerp__.py ./__openerp__.py
10c10
< # (<http://www.openerp-italia.org>).
---
> # Copyright (C) 2011 Servabit s.r.l.
30,31c30,31
< "author" : "OpenERP Italian Community, Pexego",
< "website" : "http://www.openerp-italia.org",
---
> "author" : "Servabit s.r.l., OpenERP Italian Community, Pexego",
diff --git a/sale_commission/__init__.py b/sale_commission/__init__.py
index 98429f7..ad47c64 100644
--- a/sale_commission/__init__.py
+++ b/sale_commission/__init__.py
@@ -2,7 +2,8 @@
##############################################################################
#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2011 Pexego Sistemas Informáticos (<http://www.pexego.es>). All Rights Reserved
+# Copyright (C) 2011 Pexego Sistemas Informáticos (<http://www.pexego.es>).
diff --git a/l10n_it_vat_registries/account.py b/l10n_it_vat_registries/account.py
index 6065f1d..39f144d 100644
--- a/l10n_it_vat_registries/account.py
+++ b/l10n_it_vat_registries/account.py
@@ -19,17 +19,14 @@
#
#
-from openerp.osv import fields, osv
+from openerp import models, fields, api, _
diff --git a/account_cutoff_base/account_cutoff.py b/account_cutoff_base/account_cutoff.py
index 2a6cf5e..6e2d528 100644
--- a/account_cutoff_base/account_cutoff.py
+++ b/account_cutoff_base/account_cutoff.py
@@ -165,12 +165,15 @@ class account_cutoff(orm.Model):
)]
def cutoff_date_onchange(
- self, cr, uid, ids, type, cutoff_date, move_label):
+ self, cr, uid, ids, type, cutoff_date, move_label, context=None):
diff -ur /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/account_move_line.py /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/account_move_line.py
--- /home/elbati/workspace/odoo/OCA/account-payment/account_due_list/account_move_line.py 2015-01-05 14:40:15.193111870 +0100
+++ /home/elbati/workspace/odoo/OCA/bank-payment/account_due_list/account_move_line.py 2015-01-05 14:40:28.061406128 +0100
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-#
+##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (c) 2008 Zikzakmedia S.L. (http://zikzakmedia.com)
diff --git a/stock_cancel/AUTHORS.txt b/stock_cancel/AUTHORS.txt
new file mode 100644
index 0000000..80efd15
--- /dev/null
+++ b/stock_cancel/AUTHORS.txt
@@ -0,0 +1,2 @@
+Andrea Cometa (<http://www.andreacometa.it>)
+Agile Business Group sagl (<http://www.agilebg.com>)
diff --git a/stock_cancel/__init__.py b/stock_cancel/__init__.py
index 4e47a48..d223c77 100644