Merge lp:~unifield-team/unifield-wm/UFTP-130 into lp:unifield-wm

Proposed by jftempo
Status: Needs review
Proposed branch: lp:~unifield-team/unifield-wm/UFTP-130
Merge into: lp:unifield-wm
Diff against target: 139 lines (+22/-14)
7 files modified
account_mcdb/report/mcdb_result.py (+7/-3)
finance/report/account_partner_balance_tree.py (+1/-1)
finance/wizard/account_report_partner_balance_tree.py (+10/-6)
msf_doc_import/check_line.py (+1/-1)
msf_doc_import/initial_stock_inventory.py (+1/-1)
msf_doc_import/wizard/wizard_import_picking_line.py (+1/-1)
stock_override/stock_view.xml (+1/-1)
To merge this branch: bzr merge lp:~unifield-team/unifield-wm/UFTP-130
Reviewer Review Type Date Requested Status
UniField Reviewer Team Pending
Review via email: mp+216074@code.launchpad.net
To post a comment you must log in.
2116. By Sean Carroll <sean@sean-msf>

UFTP-142:[FIX] report issues for all entries

2117. By Sean Carroll <sean@sean-msf>

UF-2370: [FIX] physical import fixed BM / ED issues

2118. By Sean Carroll <sean@sean-msf>

UFTP-148: [FIX] quantity loaded into uom field

Unmerged revisions

2118. By Sean Carroll <sean@sean-msf>

UFTP-148: [FIX] quantity loaded into uom field

2117. By Sean Carroll <sean@sean-msf>

UF-2370: [FIX] physical import fixed BM / ED issues

2116. By Sean Carroll <sean@sean-msf>

UFTP-142:[FIX] report issues for all entries

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_mcdb/report/mcdb_result.py'
2--- account_mcdb/report/mcdb_result.py 2014-01-10 17:16:09 +0000
3+++ account_mcdb/report/mcdb_result.py 2014-04-17 14:22:37 +0000
4@@ -35,9 +35,13 @@
5 def getIds(self, cr, uid, ids, limit=5000, context=None):
6 if not context:
7 context = {}
8- if context.get('from_domain') and 'search_domain' in context and not context.get('export_selected'):
9- table_obj = pooler.get_pool(cr.dbname).get(self.table)
10- ids = table_obj.search(cr, uid, context.get('search_domain'), limit=limit)
11+ #if context.get('from_domain') and 'search_domain' in context and not context.get('export_selected'):
12+ if context.get('from_domain') and not context.get('export_selected'):
13+ table_obj = pooler.get_pool(cr.dbname).get(context['active_model'])
14+ if context.get('search_domain'):
15+ ids = table_obj.search(cr, uid, context.get('search_domain'), limit=limit)
16+ else:
17+ ids = table_obj.search(cr, uid, [(True,'=',True)], limit=limit)
18 return ids
19
20 def getObjects(self, cr, uid, ids, context):
21
22=== modified file 'finance/report/account_partner_balance_tree.py'
23--- finance/report/account_partner_balance_tree.py 2014-03-14 15:47:48 +0000
24+++ finance/report/account_partner_balance_tree.py 2014-04-17 14:22:37 +0000
25@@ -210,6 +210,6 @@
26 def create(self, cr, uid, ids, data, context=None):
27 a = super(account_partner_balance_tree_xls, self).create(cr, uid, ids, data, context)
28 return (a[0], 'xls')
29-account_partner_balance_tree_xls('report.account.partner.balance.tree_xls', 'account.partner.balance.tree', 'account_override/report/account_partner_balance_tree_xls.mako', parser=account_partner_balance_tree, header='internal')
30+account_partner_balance_tree_xls('report.account.partner.balance.tree_xls', 'account.partner.balance.tree', 'finance/report/account_partner_balance_tree_xls.mako', parser=account_partner_balance_tree, header='internal')
31
32 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
33
34=== modified file 'finance/wizard/account_report_partner_balance_tree.py'
35--- finance/wizard/account_report_partner_balance_tree.py 2014-03-14 15:47:48 +0000
36+++ finance/wizard/account_report_partner_balance_tree.py 2014-04-17 14:22:37 +0000
37@@ -115,7 +115,7 @@
38 query += "ac.type = '" + account_type + "'" \
39 " AND am.state IN " + move_state + ""
40 if where:
41- query += " AND " + where + ""
42+ query += " AND " + where + ""
43 cr.execute(query)
44 res = cr.fetchall()
45 if res:
46@@ -163,16 +163,20 @@
47 context = {}
48 context['data'] = data
49 self._delete_previous_data(cr, uid, context=context)
50+
51+ if type(data) is tuple:
52+ data = data[0]
53
54 comp_currency_id = self._get_company_currency(cr, uid, context=context)
55 output_currency_id = data['form'].get('output_currency', comp_currency_id)
56
57 res = self._execute_query_partners(cr, uid, data)
58
59- for r in res:
60+ for r in res[0]:
61 if not r.get('partner_name', False):
62- r.update({'partner_name': _('Unknown Partner')})
63-
64+ partner_name = r['partner_name']
65+ r.update({'partner_name': _('Unknown Partner')})
66+ #r = rs[0]
67 vals = {
68 'uid': uid,
69 'build_ts': data['build_ts'],
70@@ -397,7 +401,7 @@
71 return {
72 'type': 'ir.actions.report.xml',
73 'report_name': 'account.partner.balance',
74- 'datas': data,
75+ 'datas': data[0],
76 }
77
78 def print_xls(self, cr, uid, ids, context=None):
79@@ -410,7 +414,7 @@
80 return {
81 'type': 'ir.actions.report.xml',
82 'report_name': 'account.partner.balance.tree_xls',
83- 'datas': data,
84+ 'datas': data[0],
85 }
86
87 def remove_journals(self, cr, uid, ids, context=None):
88
89=== modified file 'msf_doc_import/check_line.py'
90--- msf_doc_import/check_line.py 2014-04-08 12:50:14 +0000
91+++ msf_doc_import/check_line.py 2014-04-17 14:22:37 +0000
92@@ -334,7 +334,7 @@
93 uom_id = kwargs['to_write'].get('uom_id', False)
94 # The tender line may have a default UOM if it is not found
95 obj_data = kwargs['obj_data']
96- cell_nb = kwargs.get('cell_nb', 4)
97+ cell_nb = kwargs.get('cell_nb', 3)
98 msg = ''
99 try:
100 if row.cells[cell_nb] and row.cells[cell_nb].data is not None:
101
102=== modified file 'msf_doc_import/initial_stock_inventory.py'
103--- msf_doc_import/initial_stock_inventory.py 2014-01-14 16:46:36 +0000
104+++ msf_doc_import/initial_stock_inventory.py 2014-04-17 14:22:37 +0000
105@@ -250,7 +250,7 @@
106 product = product_obj.browse(cr, uid, product_id)
107 product_uom = product.uom_id.id
108 hidden_batch_management_mandatory = product.batch_management
109- hidden_perishable_mandatory = product.perishable and not product.batch_management
110+ hidden_perishable_mandatory = product.perishable
111 if hidden_batch_management_mandatory and not batch:
112 comment += _('Batch is missing.\n')
113 if hidden_perishable_mandatory and not expiry:
114
115=== modified file 'msf_doc_import/wizard/wizard_import_picking_line.py'
116--- msf_doc_import/wizard/wizard_import_picking_line.py 2013-11-20 09:07:13 +0000
117+++ msf_doc_import/wizard/wizard_import_picking_line.py 2014-04-17 14:22:37 +0000
118@@ -231,7 +231,7 @@
119 date_format=date_format,
120 product_id=to_write.get('product_id'),)
121 to_write.update({'prodlot_id': batch_value['prodlot_id'],
122- 'expired_date': batch_value['expired_date'],
123+ 'expiry_date': batch_value['expiry_date'],
124 'error_list': batch_value['error_list']})
125
126
127
128=== modified file 'stock_override/stock_view.xml'
129--- stock_override/stock_view.xml 2014-04-04 15:15:56 +0000
130+++ stock_override/stock_view.xml 2014-04-17 14:22:37 +0000
131@@ -1005,7 +1005,7 @@
132 <field name="name" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
133 <field name="date" attrs="{'readonly': [('state', '!=', 'draft')]}"/>
134 <notebook colspan="4">
135- <page string="General Informations">
136+ <page string="General Information">
137 <field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list" attrs="{'readonly': [('state', '!=', 'draft')]}">
138 <tree string="Products" editable="bottom" colors="red: has_problem == True">
139 <field colspan="4" domain="[('usage','=','internal')]" name="location_id" required="True"

Subscribers

People subscribed via source and target branches