← Back to team overview

openerp-expert-production team mailing list archive

[Bug 794207] Re: MRP operations time precission to seconds

 

Hi, I'm writing a small module and I'm hoping someone can offer input.

The module enables the use of a float to store cycle times in the format
of SSSSSSSSSS:mmm where S are seconds and m are milliseconds, as well as
enabling the input/output of this float to read HH:mm:ss instead of only
HH:mm. Instead of using the existing float_time variable in Python and
patching the existing time_cycle case in the Javascript widget, it
replaces both of these via inheritance with float_time_seconds and
time_cycle_seconds respectively.

I have the ORM code working fine, however I'm having trouble with the
widget. I've read the Openerp Web Framework document, especially the
"Modify Existent Widgets and Classes" section,  however i'm still
confused on how to properly inherit from the existing class, such that I
can properly "insert" new cases into the Javascript "switch"
instructions.

Could some kind sole point me in the right direction?
Specifically, in format.js I want to insert two new "cases" of float_time_seconds where both of the existing float_time cases are found:
- in instance.web.format_value
- in instance.web.parse_value

Any help is appreciated. One last note - my apologies if I haven't used
the correct terminology in this note as I am new to Javascript (and
Python for that matter).

- Michael

-- 
You received this bug notification because you are a member of OpenERP
Manufacturing Experts, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/794207

Title:
  MRP operations time precission to seconds

Status in OpenERP Addons (modules):
  Opinion

Bug description:
  MRP operations time precision to seconds

  In our industry we need to estimate time for one cycle in seconds, in
  fact we do have several operations for one second.

  Please make possible to use time with seconds in all manufacture
  process.

  I would gladly help if I knew how.
  I tried to make the field nbr_hours in work center definition as field.time, it does display seconds but then it does not compute.

  I need help please,

  Thanks
  Mihai

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/794207/+subscriptions