commit
d5e69f8b07
|
@ -90,7 +90,7 @@ def _wo_check(self, cr, uid, data, context):
|
|||
_transaction_add_form = '''<?xml version="1.0"?>
|
||||
<form string="Information addendum">
|
||||
<separator string="Write-Off Move" colspan="4"/>
|
||||
<field name="writeoff_acc_id"/>
|
||||
<field name="writeoff_acc_id" domain="[('type','<>','view'),('type','<>','consolidation')]"/>
|
||||
<field name="writeoff_journal_id"/>
|
||||
<field name="comment"/>
|
||||
</form>'''
|
||||
|
|
|
@ -274,7 +274,7 @@
|
|||
|
||||
<record model="ir.actions.todo" id="config_auto_directory">
|
||||
<field name="name">Auto Configure Directory</field>
|
||||
<field name="note">This wizard will be configure directory for ressource model.</field>
|
||||
<field name="note">This wizard will configure the URL of the server of the document management system.</field>
|
||||
<field name="action_id" ref="action_config_auto_directory"/>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -283,13 +283,14 @@ class mrp_bom(osv.osv):
|
|||
for wc_use in bom.routing_id.workcenter_lines:
|
||||
wc = wc_use.workcenter_id
|
||||
d, m = divmod(factor, wc_use.workcenter_id.capacity_per_cycle)
|
||||
cycle = (d + (m and 1.0 or 0.0)) * wc_use.cycle_nbr
|
||||
mult = (d + (m and 1.0 or 0.0))
|
||||
cycle = mult * wc_use.cycle_nbr
|
||||
result2.append({
|
||||
'name': bom.routing_id.name,
|
||||
'workcenter_id': wc.id,
|
||||
'sequence': level+(wc_use.sequence or 0),
|
||||
'cycle': cycle,
|
||||
'hour': float(wc_use.hour_nbr + (wc.time_start+wc.time_stop+cycle*wc.time_cycle) * (wc.time_efficiency or 1.0)),
|
||||
'hour': float(wc_use.hour_nbr*mult + (wc.time_start+wc.time_stop+cycle*wc.time_cycle) * (wc.time_efficiency or 1.0)),
|
||||
})
|
||||
for bom2 in bom.bom_lines:
|
||||
res = self._bom_explode(cr, uid, bom2, factor, properties, addthis=True, level=level+10)
|
||||
|
|
Loading…
Reference in New Issue