@@ -383,6 +383,8 @@ class account_invoice(osv.osv):
|
||||
cr.execute("DELETE FROM account_invoice_tax WHERE invoice_id=%s", (id,))
|
||||
for taxe in ait_obj.compute(cr, uid, id).values():
|
||||
ait_obj.create(cr, uid, taxe)
|
||||
# Update the stored value (fields.function), so we write to trigger recompute
|
||||
self.pool.get('account.invoice').write(cr, uid, ids, {}, context=context)
|
||||
return True
|
||||
|
||||
def button_compute(self, cr, uid, ids, context=None, set_total=False):
|
||||
|
||||
@@ -50,7 +50,7 @@ This test checks the speed of the module. Note that at least 5 demo data is need
|
||||
module_name = module_path.split('/')[-1]
|
||||
obj_list = self.get_objects(cr, uid, module_name)
|
||||
obj_counter = 0
|
||||
score = 0
|
||||
score = 0.0
|
||||
obj_ids = self.get_ids(cr, uid, obj_list)
|
||||
result_dict = {}
|
||||
result_dict2 = {}
|
||||
@@ -63,7 +63,7 @@ This test checks the speed of the module. Note that at least 5 demo data is need
|
||||
if size:
|
||||
list = []
|
||||
|
||||
#we perform the operation twice, and count the number of queries in the second run. This allows to avoid the cache effect. (like translated terms that asks for more queries)
|
||||
#we perform the operation twice, and count the number of queries in the second run. This allows to avoid the cache effect. (like translated terms that asks for more queries)
|
||||
pool.get(obj).read(cr, uid, [ids[0]])
|
||||
c = cr.count
|
||||
pool.get(obj).read(cr, uid, [ids[0]])
|
||||
|
||||
@@ -87,7 +87,7 @@
|
||||
<field name="create_date"/>
|
||||
<field name="date_closed"/>
|
||||
<field name="date_action_last"/>
|
||||
<field name="date"/>
|
||||
<field name="date_action_next"/>
|
||||
<separator colspan="4" string="Estimates"/>
|
||||
<field name="planned_revenue"/>
|
||||
<field name="planned_cost"/>
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<field name="duration"/>
|
||||
<field name="category2_id" select="1" string="Payment Mode"/>
|
||||
</group>
|
||||
<notebook>
|
||||
<notebook colspan="4">
|
||||
<page string="Funds">
|
||||
<field name="partner_id" select="1" on_change="onchange_partner_id(partner_id, email_from)" colspan="2"/>
|
||||
<field name="partner_address_id" string="Contact" on_change="onchange_partner_address_id(partner_address_id, email_from)" colspan="1"/>
|
||||
@@ -70,7 +70,7 @@
|
||||
<field name="create_date"/>
|
||||
<field name="date_closed"/>
|
||||
<field name="date_action_last"/>
|
||||
<field name="date"/>
|
||||
<field name="date_action_next"/>
|
||||
<separator colspan="4"/>
|
||||
<field name="history_line" colspan="2" nolabel="1" mode="tree,form">
|
||||
<form string="Communication history">
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
<field name="create_date"/>
|
||||
<field name="date_closed"/>
|
||||
<field name="date_action_last"/>
|
||||
<field name="date"/>
|
||||
<field name="date_action_next"/>
|
||||
<separator colspan="4" string="References"/>
|
||||
<field name="ref" colspan="4"/>
|
||||
<field name="ref2" colspan="4"/>
|
||||
|
||||
@@ -74,7 +74,6 @@
|
||||
<field name="planned_cost"/>
|
||||
<field name="planned_revenue"/>
|
||||
<field name="probability"/>
|
||||
<field name="categ_id"/>
|
||||
<separator colspan="4"/>
|
||||
<field name="history_line" colspan="2" nolabel="1" mode="tree,form">
|
||||
<form string="Communication history">
|
||||
|
||||
Reference in New Issue
Block a user