bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
def _UprevAllPackages(buildroot): """Uprevs all packages that have been updated since last uprev.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./cros_mark_as_stable', '--all', '--tracking_branch="cros/master"', 'commit'], cwd=cwd, enter_chroot=True)
def _UprevAllPackages(buildroot, tracking_branch): """Uprevs all packages that have been updated since last uprev.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./cros_mark_as_stable', '--all', '--tracking_branch="cros/master"', 'commit'], cwd=cwd, enter_chroot=True)
466,200
def _UprevAllPackages(buildroot): """Uprevs all packages that have been updated since last uprev.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./cros_mark_as_stable', '--all', '--tracking_branch="cros/master"', 'commit'], cwd=cwd, enter_chroot=True)
def _UprevAllPackages(buildroot): """Uprevs all packages that have been updated since last uprev.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./cros_mark_as_stable', '--all', '--tracking_branch="%s"' % tracking_branch, 'commit'], cwd=cwd, enter_chroot=True)
466,201
def _FullCheckout(buildroot, rw_checkout=True, retries=_DEFAULT_RETRIES): """Performs a full checkout and clobbers any previous checkouts.""" RunCommand(['sudo', 'rm', '-rf', buildroot]) MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http://git.chromium.org/git/manifest'], cwd=buildroot, input='\n\...
def _FullCheckout(buildroot, tracking_branch, rw_checkout=True, retries=_DEFAULT_RETRIES, url='http://git.chromium.org/git/manifest'): """Performs a full checkout and clobbers any previous checkouts.""" RunCommand(['sudo', 'rm', '-rf', buildroot]) MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http...
466,202
def _FullCheckout(buildroot, rw_checkout=True, retries=_DEFAULT_RETRIES): """Performs a full checkout and clobbers any previous checkouts.""" RunCommand(['sudo', 'rm', '-rf', buildroot]) MakeDir(buildroot, parents=True) RunCommand(['repo', 'init', '-u', 'http://git.chromium.org/git/manifest'], cwd=buildroot, input='\n\...
def _FullCheckout(buildroot, rw_checkout=True, retries=_DEFAULT_RETRIES): """Performs a full checkout and clobbers any previous checkouts.""" RunCommand(['sudo', 'rm', '-rf', buildroot]) MakeDir(buildroot, parents=True) branch = tracking_branch.split('/'); RunCommand(['repo', 'init', '-u', url, '-b', '%s' % branch[-1]]...
466,203
def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ...
def _UprevPackages(buildroot, tracking_branch, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisio...
466,204
def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ...
def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ...
466,205
def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ...
def _UprevPackages(buildroot, revisionfile, board): """Uprevs a package based on given revisionfile. If revisionfile is set to None or does not resolve to an actual file, this function will uprev all packages. Keyword arguments: revisionfile -- string specifying a file that contains a list of revisions to uprev. """ ...
466,206
def _UprevPush(buildroot): """Pushes uprev changes to the main line.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--tracking_branch="cros/master"', '--push_options="--bypass-hooks -f"', 'push'], cwd=cwd)
def _UprevPush(buildroot): """Pushes uprev changes to the main line.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--tracking_branch="%s"' % tracking_branch, '--push_options="--bypass-hooks -f"', 'push'], cwd=cwd)
466,207
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
466,208
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
466,209
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
466,210
def _MarkChromeAsStable(buildroot, tracking_branch, chrome_rev): """Returns the portage atom for the revved chrome ebuild - see man emerge.""" cwd = os.path.join(buildroot, 'src', 'scripts') portage_atom_string = RunCommand(['bin/cros_mark_chrome_as_stable', '--tracking_branch=%s' % tracking_branch, chrome_rev], cwd=cw...
def _MarkChromeAsStable(buildroot, tracking_branch, chrome_rev, board): """Returns the portage atom for the revved chrome ebuild - see man emerge.""" cwd = os.path.join(buildroot, 'src', 'scripts') portage_atom_string = RunCommand(['bin/cros_mark_chrome_as_stable', '--tracking_branch=%s' % tracking_branch, chrome_rev],...
466,211
def _MarkChromeAsStable(buildroot, tracking_branch, chrome_rev): """Returns the portage atom for the revved chrome ebuild - see man emerge.""" cwd = os.path.join(buildroot, 'src', 'scripts') portage_atom_string = RunCommand(['bin/cros_mark_chrome_as_stable', '--tracking_branch=%s' % tracking_branch, chrome_rev], cwd=cw...
def _MarkChromeAsStable(buildroot, tracking_branch, chrome_rev): """Returns the portage atom for the revved chrome ebuild - see man emerge.""" cwd = os.path.join(buildroot, 'src', 'scripts') portage_atom_string = RunCommand(['bin/cros_mark_chrome_as_stable', '--tracking_branch=%s' % tracking_branch, chrome_rev], cwd=cw...
466,212
def _BuildChrome(buildroot, board, chrome_atom_to_build): """Wrapper for emerge call to build Chrome.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['ACCEPT_KEYWORDS="* ~*"', 'emerge-%s' % board, '=%s' % chrome_atom_to_build], cwd=cwd, enter_chroot=True)
def _BuildChrome(buildroot, board, chrome_atom_to_build): """Wrapper for emerge call to build Chrome.""" cwd = os.path.join(buildroot, 'src', 'scripts') RunCommand(['emerge-%s' % board, '=%s' % chrome_atom_to_build], cwd=cwd, enter_chroot=True)
466,213
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-a', '--acl', default='private', help='ACL to set on GSD archives') parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option...
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-a', '--acl', default='private', help='ACL to set on GSD archives') parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option...
466,214
def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o...
def _PushChange(): """Pushes changes to the git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by os.pwd. Raises: OSError: Error occurred while pushing. """ # TODO(sosa) - Add logic for buildbot to check whether other slaves have # completed and push this change o...
466,215
def DetermineMakeConfFile(target): """Determine the make.conf file that needs to be updated for prebuilts. Args: target: String representation of the board. This includes host and board targets Returns A string path to a make.conf file to be updated. """ if _HOST_TARGET == target: # We are host. # Without more exampl...
def DetermineMakeConfFile(target): """Determine the make.conf file that needs to be updated for prebuilts. Args: target: String representation of the board. This includes host and board targets Returns A string path to a make.conf file to be updated. """ if _HOST_TARGET == target: # We are host. # Without more exampl...
466,216
def testFullUpdateKeepStateful(self): """Tests if we can update normally.
def testFullUpdateKeepStateful(self): """Tests if we can update normally.
466,217
def testFullUpdateKeepStateful(self): """Tests if we can update normally.
def testFullUpdateKeepStateful(self): """Tests if we can update normally.
466,218
def build_factory_packages(signed_image, base_image, fw_updater, folder, board): """Build image and modify mini omaha config. """ cmd = ('./make_factory_package.sh --release %s --factory %s' ' --firmware_updater %s --subfolder %s --board %s' % (signed_image, base_image, fw_updater, folder, board)) print 'Building facto...
def build_factory_packages(signed_image, base_image, fw_updater, folder, board): """Build factory packages and modify mini omaha config. Args: signed_image: signed image base_image: base image fw_updater: firmware updater folder: destination folder to write packages board: platform to build """ cmd = ('./make_factory_...
466,219
def build_factory_packages(signed_image, base_image, fw_updater, folder, board): """Build image and modify mini omaha config. """ cmd = ('./make_factory_package.sh --release %s --factory %s' ' --firmware_updater %s --subfolder %s --board %s' % (signed_image, base_image, fw_updater, folder, board)) print 'Building facto...
def build_factory_packages(signed_image, base_image, fw_updater, folder, board): """Build image and modify mini omaha config. """ cmd = ('./make_factory_package.sh --release %s --factory %s' ' --subfolder %s --board %s' % (signed_image, base_image, folder, board)) if fw_updater: cmd = '%s --firmware_updater %s' % (cmd,...
466,220
def main(argv): try: argv = FLAGS(argv) except gflags.FlagsError, e: print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS) sys.exit(1) if not FLAGS.base_image: exit('No --base_image specified.') if not FLAGS.firmware_updater: exit('No --firmware_updater specified.') assert_is_file(FLAGS.base_image, 'Invalid or mis...
def main(argv): try: argv = FLAGS(argv) except gflags.FlagsError, e: print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS) sys.exit(1) if not FLAGS.base_image: exit('No --base_image specified.') if FLAGS.firmware_updater: assert_is_file(FLAGS.firmware_updater, 'Invalid or missing firmware updater.') assert_is_fil...
466,221
def main(argv): try: argv = FLAGS(argv) except gflags.FlagsError, e: print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS) sys.exit(1) if not FLAGS.base_image: exit('No --base_image specified.') if not FLAGS.firmware_updater: exit('No --firmware_updater specified.') assert_is_file(FLAGS.base_image, 'Invalid or mis...
def main(argv): try: argv = FLAGS(argv) except gflags.FlagsError, e: print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS) sys.exit(1) if not FLAGS.base_image: exit('No --base_image specified.') if not FLAGS.firmware_updater: exit('No --firmware_updater specified.') assert_is_file(FLAGS.base_image, 'Invalid or mis...
466,222
def Setup(filehash, filesize): PingUpdateResponse.file_hash = filehash PingUpdateResponse.file_size = filesize
def Setup(filehash, filesha256, filesize): PingUpdateResponse.file_hash = filehash PingUpdateResponse.file_size = filesize
466,223
def Reply(self, handler, send_content=True, post_data=None): """Return (using StringResponse) an XML reply to ForcedUpdate clients."""
def Reply(self, handler, send_content=True, post_data=None): """Return (using StringResponse) an XML reply to ForcedUpdate clients."""
466,224
def _GetLatestRelease(branch=None): """Gets the latest release version from the buildspec_url for the branch. Args: branch: If set, gets the latest release for branch, otherwise latest release. Returns: Latest version string. """ buildspec_url = 'http://src.chromium.org/svn/releases' svn_ls = RunCommand(['svn', 'ls',...
def _GetLatestRelease(branch=None): """Gets the latest release version from the buildspec_url for the branch. Args: branch: If set, gets the latest release for branch, otherwise latest release. Returns: Latest version string. """ buildspec_url = 'http://src.chromium.org/svn/releases' svn_ls = RunCommand(['svn', 'ls',...
466,225
def FindChromeCandidates(overlay_dir): """Return a tuple of chrome's unstable ebuild and stable ebuilds. Args: overlay_dir: The path to chrome's portage overlay dir. Returns: Tuple [unstable_ebuild, stable_ebuilds]. Raises: Exception: if no unstable ebuild exists for Chrome. """ stable_ebuilds = [] unstable_ebuilds = ...
def FindChromeCandidates(overlay_dir): """Return a tuple of chrome's unstable ebuild and stable ebuilds. Args: overlay_dir: The path to chrome's portage overlay dir. Returns: Tuple [unstable_ebuild, stable_ebuilds]. Raises: Exception: if no unstable ebuild exists for Chrome. """ stable_ebuilds = [] unstable_ebuilds = ...
466,226
def testFullUpdateWipeStateful(self): # Prepare and verify the base image has been prepared correctly. self.PrepareBase() self.VerifyImage()
def NotestFullUpdateWipeStateful(self): """Tests if we can update after cleaning the stateful partition. This test checks that we can update successfully after wiping the stateful partition. """ # Prepare and verify the base image has been prepared correctly. self.PrepareBase() self.VerifyImage()
466,227
def setUp(self): """Unit test overriden method. Is called before every test."""
defAUTest.setUp(self) setUp(self):AUTest.setUp(self) """UnitAUTest.setUp(self) testAUTest.setUp(self) overridenAUTest.setUp(self) method.AUTest.setUp(self) AUTest.setUp(self) IsAUTest.setUp(self) calledAUTest.setUp(self) beforeAUTest.setUp(self) everyAUTest.setUp(self) test."""
466,228
def PrepareBase(self): """Creates an update-able VM based on base image."""
def PrepareBase(self): """Creates an update-able VM based on base image."""
466,229
def UpdateImage(self, image_path, stateful_change='old'): """Updates VM image with image_path."""
def UpdateImage(self, image_path, stateful_change='old'): """Updates VM image with image_path."""
466,230
def VerifyImage(self): """Runs vm smoke suite to verify image."""
defVerifyImage(self):"""Runsvmsmokesuitetoverifyimage."""
466,231
def VerifyImage(self): """Runs vm smoke suite to verify image."""
def VerifyImage(self): """Runs vm smoke suite to verify image."""
466,232
def VerifyImage(self): """Runs vm smoke suite to verify image."""
def VerifyImage(self): """Runs vm smoke suite to verify image."""
466,233
def VerifyImage(self): """Runs vm smoke suite to verify image."""
def VerifyImage(self): """Runs vm smoke suite to verify image."""
466,234
def VerifyImage(self): """Runs vm smoke suite to verify image."""
def VerifyImage(self): """Runs vm smoke suite to verify image."""
466,235
def VerifyImage(self): """Runs vm smoke suite to verify image."""
def VerifyImage(self): """Runs vm smoke suite to verify image."""
466,236
def _GitCleanup(buildroot, board): """Clean up git branch after previous uprev attempt.""" cwd = os.path.join(buildroot, 'src', 'scripts') if os.path.exists(cwd): RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--board=%s' % board, '--tracking_branch="cros/master"', 'clean'], cwd=cwd, error_ok=True)
def _GitCleanup(buildroot, board, tracking_branch): """Clean up git branch after previous uprev attempt.""" cwd = os.path.join(buildroot, 'src', 'scripts') if os.path.exists(cwd): RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--board=%s' % board, '--tracking_branch="cros/master"', 'clean'], cwd=cwd, error_ok=Tr...
466,237
def _GitCleanup(buildroot, board): """Clean up git branch after previous uprev attempt.""" cwd = os.path.join(buildroot, 'src', 'scripts') if os.path.exists(cwd): RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--board=%s' % board, '--tracking_branch="cros/master"', 'clean'], cwd=cwd, error_ok=True)
def _GitCleanup(buildroot, board): """Clean up git branch after previous uprev attempt.""" cwd = os.path.join(buildroot, 'src', 'scripts') if os.path.exists(cwd): RunCommand(['./cros_mark_as_stable', '--srcroot=..', '--board=%s' % board, '--tracking_branch="%s"' % tracking_branch, 'clean'], cwd=cwd, error_ok=True)
466,238
def _PreFlightRinse(buildroot, board): """Cleans up any leftover state from previous runs.""" _GitCleanup(buildroot, board) _CleanUpMountPoints(buildroot) RunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
def _PreFlightRinse(buildroot, board, tracking_branch): """Cleans up any leftover state from previous runs.""" _GitCleanup(buildroot, board) _CleanUpMountPoints(buildroot) RunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
466,239
def _PreFlightRinse(buildroot, board): """Cleans up any leftover state from previous runs.""" _GitCleanup(buildroot, board) _CleanUpMountPoints(buildroot) RunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
def _PreFlightRinse(buildroot, board): """Cleans up any leftover state from previous runs.""" _GitCleanup(buildroot, board, tracking_branch) _CleanUpMountPoints(buildroot) RunCommand(['sudo', 'killall', 'kvm'], error_ok=True)
466,240
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
def main(): # Parse options usage = "usage: %prog [options] cbuildbot_config" parser = optparse.OptionParser(usage=usage) parser.add_option('-r', '--buildroot', help='root directory where build occurs', default=".") parser.add_option('-n', '--buildnumber', help='build number', type='int', default=0) parser.add_option('...
466,241
def PushChange(stable_branch, tracking_branch): """Pushes commits in the stable_branch to the remote git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by current working directory. Args: stable_branch: The local branch with commits we want to push. tracking_branch...
def PushChange(stable_branch, tracking_branch): """Pushes commits in the stable_branch to the remote git repository. Pushes locals commits from calls to CommitChange to the remote git repository specified by current working directory. Args: stable_branch: The local branch with commits we want to push. tracking_branch...
466,242
def _ResolveOverlays(buildroot, overlays): """Return the list of overlays to use for a given buildbot. Args: buildroot: The root directory where the build occurs. Must be an absolute path. overlays: A string describing which overlays you want. 'private': Just the private overlay. 'public': Just the public overlay. 'bo...
def _ResolveOverlays(buildroot, overlays): """Return the list of overlays to use for a given buildbot. Args: buildroot: The root directory where the build occurs. Must be an absolute path. overlays: A string describing which overlays you want. 'private': Just the private overlay. 'public': Just the public overlay. 'bo...
466,243
def RevEBuild(self, commit_id="", redirect_file=None): """Revs an ebuild given the git commit id.
def RevEBuild(self, commit_id="", redirect_file=None): """Revs an ebuild given the git commit id.
466,244
def _GetChromeOSVersion(buildroot): """Returns the tuple version of the Chrome OS version of the buildroot.""" cwd = os.path.join(buildroot, 'src', 'scripts') version_cmd = './chromeos_version.sh' output = RunCommand(version_cmd, cwd=cwd, redirect_stdout=True, redirect_stderr=True) version_re = re.compile('\s+CHROMEOS_...
def _GetChromeOSVersion(buildroot): """Returns the tuple version of the Chrome OS version of the buildroot.""" cwd = os.path.join(buildroot, 'src', 'third_party', 'chromiumos-overlay', 'chromeos', 'config') version_cmd = './chromeos_version.sh' output = RunCommand(version_cmd, cwd=cwd, redirect_stdout=True, redirect_st...
466,245
def start_devserver(): """Starts devserver.""" cmd = 'python devserver.py' print 'Running command: %s' % cmd devserver_process = KillableProcess(cmd, cwd=DEVSERVER_DIR) devserver_process.start(wait=False)
def start_devserver(): """Starts devserver.""" cmd = 'python devserver.py --factory_config miniomaha.conf' print 'Running command: %s' % cmd devserver_process = KillableProcess(cmd, cwd=DEVSERVER_DIR) devserver_process.start(wait=False)
466,246
def main(argv): try: argv = FLAGS(argv) except gflags.FlagsError, e: print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS) sys.exit(1) if not FLAGS.base_image: exit('No --base_image specified.') if FLAGS.firmware_updater: assert_is_file(FLAGS.firmware_updater, 'Invalid or missing firmware updater.') assert_is_fil...
def main(argv): try: argv = FLAGS(argv) except gflags.FlagsError, e: print '%s\nUsage: %s ARGS\n%s' % (e, sys.argv[0], FLAGS) sys.exit(1) if not FLAGS.base_image: exit('No --base_image specified.') if FLAGS.firmware_updater: assert_is_file(FLAGS.firmware_updater, 'Invalid or missing firmware updater.') assert_is_fil...
466,247
def execute( self, application, *options ): """Execute a dialplan application with given options
def execute( self, application, *options, **kwargs ): """Execute a dialplan application with given options
466,248
def execute( self, application, *options ): """Execute a dialplan application with given options
def execute( self, application, *options ): """Execute a dialplan application with given options
466,249
def noop( self, message=None ): """Send a null operation to the server
def noop( self, message=None ): """Send a null operation to the server
466,250
def getData( self, filename, timeout=2.000, maxDigits=None ): """Playback file, collecting up to maxDigits or waiting up to timeout
def getData( self, filename, timeout=2.000, maxDigits=None ): """Playback file, collecting up to maxDigits or waiting up to timeout
466,251
def ping( self ): """Check to see if the manager is alive...""" message = {'action':'ping'} return self.sendDeferred( message ).addCallback( self.errorUnlessResponse, expected = 'Pong', )
def ping(self): """Check to see if the manager is alive...""" message = {'action':'ping'} return self.sendDeferred( message ).addCallback( self.errorUnlessResponse, expected = 'Pong', )
466,252
def ping( self ): """Check to see if the manager is alive...""" message = {'action':'ping'} return self.sendDeferred( message ).addCallback( self.errorUnlessResponse, expected = 'Pong', )
def ping( self ): """Check to see if the manager is alive...""" message = {'action':'ping'} return self.sendDeferred( message ).addCallback( self.errorUnlessResponse, expected = 'Pong', )
466,253
def controlStreamFile( self, filename, escapeDigits, skipMS=0, ffChar='*', rewChar='#', pauseChar=None,
def controlStreamFile( self, filename, escapeDigits, skipMS=0, ffChar='*', rewChar='#', pauseChar=None,
466,254
def _get_reference_accounting_values_for_valuation(self, cr, uid, move, context=None): """ Overrides the default stock valuation to take into account the currency that was specified on the sale order in case the valuation data was not directly specified during picking confirmation. """ reference_amount, reference_curre...
def _get_reference_accounting_values_for_valuation(self, cr, uid, move, context=None): """ Overrides the default stock valuation to take into account the currency that was specified on the sale order in case the valuation data was not directly specified during picking confirmation. """ reference_amount, reference_curre...
466,255
def view_init(self, cr, uid, fields_list, context=None): res = super(stock_partial_move, self).view_init(cr, uid, fields_list, context=context) move_obj = self.pool.get('stock.move') if not context: context={} for m in move_obj.browse(cr, uid, context.get('active_ids', [])): if m.state in ('done', 'cancel'): raise osv....
def view_init(self, cr, uid, fields_list, context=None): res = super(stock_partial_move, self).view_init(cr, uid, fields_list, context=context) move_obj = self.pool.get('stock.move') if not context: context = {} for move in move_obj.browse(cr, uid, context.get('active_ids', [])): if move.state in ('done', 'cancel'): ra...
466,256
def view_init(self, cr, uid, fields_list, context=None): res = super(stock_partial_move, self).view_init(cr, uid, fields_list, context=context) move_obj = self.pool.get('stock.move') if not context: context={} for m in move_obj.browse(cr, uid, context.get('active_ids', [])): if m.state in ('done', 'cancel'): raise osv....
def view_init(self, cr, uid, fields_list, context=None): res = super(stock_partial_move, self).view_init(cr, uid, fields_list, context=context) move_obj = self.pool.get('stock.move') if not context: context={} for m in move_obj.browse(cr, uid, context.get('active_ids', [])): if m.state in ('done', 'cancel'): raise osv....
466,257
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False): height = 2 * 25; message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive...
466,258
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : _('Deliver Products'), 'info' : _('Delivery Information'), 'button' : _('Deliver'), } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive ...
466,259
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : _('Receive Pro...
466,260
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
466,261
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
466,262
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
466,263
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False,submenu=False): print context message = { 'title' : '_(Deliver Products)', 'info' : '_(Delivery Information)', 'button' : '_Deliver' } if context: if context.get('product_receive', False): message = { 'title' : '_(Receive Pro...
466,264
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
466,265
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
466,266
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
466,267
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
466,268
def do_partial(self, cr, uid, ids, context): """ Makes partial moves and pickings done. @param self: The object pointer. @param cr: A database cursor @param uid: ID of the user currently logged in @param fields: List of fields for which we want default values @param context: A standard dictionary @return: A dictionary ...
defstock_partial_move_memory() do_partial(self,stock_partial_move_memory() cr,stock_partial_move_memory() uid,stock_partial_move_memory() ids,stock_partial_move_memory() context):stock_partial_move_memory() """stock_partial_move_memory() Makesstock_partial_move_memory() partialstock_partial_move_memory() movesstock_par...
466,269
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, context=None): if context is None: context = {} if not partner_id: raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partn...
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition_id=False, price_unit=False, address_invoice_id=False, context=None): if context is None: context = {} if not partner_id: raise osv.except_osv(_('No Partner Defined !'),_("You must first select a partn...
466,270
def interval_get(self, cr, uid, id, dt_from, hours, resource=False, byday=True): resource_cal_leaves = self.pool.get('resource.calendar.leaves') dt_leave = [] if not id: return [(dt_from,dt_from + mx.DateTime.RelativeDateTime(hours=int(hours)*3))] resource_leave_ids = resource_cal_leaves.search(cr, uid, [('calendar_id'...
def interval_get(self, cr, uid, id, dt_from, hours, resource=False, byday=True): resource_cal_leaves = self.pool.get('resource.calendar.leaves') dt_leave = [] if not id: return [(dt_from,dt_from + mx.DateTime.RelativeDateTime(hours=int(hours)*3))] resource_leave_ids = resource_cal_leaves.search(cr, uid, [('calendar_id'...
466,271
def do_alarm_create(self, cr, uid, ids, context={}): alarm_obj = self.pool.get('calendar.alarm') model_obj = self.pool.get('ir.model') model_id = model_obj.search(cr, uid, [('model','=',self._name)])[0]
def do_alarm_create(self, cr, uid, ids, context={}): alarm_obj = self.pool.get('calendar.alarm') model_obj = self.pool.get('ir.model') model_id = model_obj.search(cr, uid, [('model','=',self._name)])[0]
466,272
def do_alarm_unlink(self, cr, uid, ids, context={}): alarm_obj = self.pool.get('calendar.alarm') model_obj = self.pool.get('ir.model') model_id = model_obj.search(cr, uid, [('model','=',self._name)])[0] for meeting in self.browse(cr, uid, ids): alarm_ids = alarm_obj.search(cr, uid, [('model_id','=',model_id), ('res_id'...
def do_alarm_unlink(self, cr, uid, ids, context={}): alarm_obj = self.pool.get('calendar.alarm') model_obj = self.pool.get('ir.model') model_id = model_obj.search(cr, uid, [('model','=',self._name)])[0] for meeting in self.browse(cr, uid, ids): alarm_ids = alarm_obj.search(cr, uid, [('model_id','=',model_id), ('res_id'...
466,273
def _adr_get(self, partner, type): res_partner = pooler.get_pool(self.cr.dbname).get('res.partner') res_partner_address = pooler.get_pool(self.cr.dbname).get('res.partner.address') adr = res_partner.address_get(self.cr, self.uid, [partner.id], [type])[type] return adr and res_partner_address.read(self.cr, self.uid, [ad...
def _adr_get(self, partner, type): res_partner = pooler.get_pool(self.cr.dbname).get('res.partner') res_partner_address = pooler.get_pool(self.cr.dbname).get('res.partner.address') adr = res_partner.address_get(self.cr, self.uid, [partner.id], [type])[type] return adr and res_partner_address.read(self.cr, self.uid, [ad...
466,274
def _get_text(self, partner, followup_id, context={}): fp_obj = pooler.get_pool(self.cr.dbname).get('account_followup.followup') fp_line = fp_obj.browse(self.cr, self.uid, followup_id).followup_line li_delay = [] for line in fp_line: li_delay.append(line.delay) li_delay.sort(reverse=True) text = "" a = {} partner_line ...
def _get_text(self, partner, followup_id, context={}): fp_obj = pooler.get_pool(self.cr.dbname).get('account_followup.followup') fp_line = fp_obj.browse(self.cr, self.uid, followup_id).followup_line li_delay = [] for line in fp_line: li_delay.append(line.delay) li_delay.sort(reverse=True) text = "" a = {} partner_line ...
466,275
def _factor_inv(self, cursor, user, ids, name, arg, context): res = {} for uom in self.browse(cursor, user, ids, context=context): if uom.factor: res[uom.id] = round(1 / uom.factor, 6) else: res[uom.id] = 0.0 return res
def _factor_inv(self, cursor, user, ids, name, arg, context): res = {} for uom in self.browse(cursor, user, ids, context=context): res[uom.id] = self._compute_factor_inv(uom.factor) return res
466,276
def _factor_inv_write(self, cursor, user, id, name, value, arg, context): if value: self.write(cursor, user, id, { 'factor': round(1/value, 6), }, context=context) else: self.write(cursor, user, id, { 'factor': 0.0, }, context=context) return True
def _factor_inv_write(self, cursor, user, id, name, value, arg, context): if value: self.write(cursor, user, id, { 'factor': round(1/value, 6), }, context=context) else: self.write(cursor, user, id, { 'factor': 0.0, }, context=context) return True
466,277
def _factor_inv_write(self, cursor, user, id, name, value, arg, context): if value: self.write(cursor, user, id, { 'factor': round(1/value, 6), }, context=context) else: self.write(cursor, user, id, { 'factor': 0.0, }, context=context) return True
def _factor_inv_write(self, cursor, user, id, name, value, arg, context): if value: self.write(cursor, user, id, { 'factor': round(1/value, 6), }, context=context) else: self.write(cursor, user, id, { 'factor': 0.0, }, context=context) return True
466,278
def _factor_inv_write(self, cursor, user, id, name, value, arg, context): if value: self.write(cursor, user, id, { 'factor': round(1/value, 6), }, context=context) else: self.write(cursor, user, id, { 'factor': 0.0, }, context=context) return True
def _factor_inv_write(self, cursor, user, id, name, value, arg, context): if value: self.write(cursor, user, id, { 'factor': round(1/value, 6), }, context=context) else: self.write(cursor, user, id, { 'factor': 0.0, }, context=context) return True
466,279
def populate_statement(self, cr, uid, ids, context=None): line_obj = self.pool.get('payment.line') statement_obj = self.pool.get('account.bank.statement') statement_line_obj = self.pool.get('account.bank.statement.line') currency_obj = self.pool.get('res.currency') voucher_obj = self.pool.get('account.voucher') voucher...
def populate_statement(self, cr, uid, ids, context=None): line_obj = self.pool.get('payment.line') statement_obj = self.pool.get('account.bank.statement') statement_line_obj = self.pool.get('account.bank.statement.line') currency_obj = self.pool.get('res.currency') voucher_obj = self.pool.get('account.voucher') voucher...
466,280
def populate_statement(self, cr, uid, ids, context=None): line_obj = self.pool.get('payment.line') statement_obj = self.pool.get('account.bank.statement') statement_line_obj = self.pool.get('account.bank.statement.line') currency_obj = self.pool.get('res.currency') voucher_obj = self.pool.get('account.voucher') voucher...
def populate_statement(self, cr, uid, ids, context=None): line_obj = self.pool.get('payment.line') statement_obj = self.pool.get('account.bank.statement') statement_line_obj = self.pool.get('account.bank.statement.line') currency_obj = self.pool.get('res.currency') voucher_obj = self.pool.get('account.voucher') voucher...
466,281
def _default_company(self, cr, uid, context={}): """ To get default company for the object" @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of bank statement ids @param context: A standard dictionary for contex...
def _default_company(self, cr, uid, context={}): """ To get default company for the object" @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param ids: List of bank statement ids @param context: A standard dictionary for contex...
466,282
def _wo_check(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) invoice = pool.get('account.invoice').browse(cr, uid, data['id'], context) journal = pool.get('account.journal').browse(cr, uid, data['form']['journal_id'], context) cur_obj = pool.get('res.currency') # Here we need that: # The invoice to...
def _wo_check(self, cr, uid, data, context): pool = pooler.get_pool(cr.dbname) invoice = pool.get('account.invoice').browse(cr, uid, data['id'], context) journal = pool.get('account.journal').browse(cr, uid, data['form']['journal_id'], context) cur_obj = pool.get('res.currency') # Here we need that: # The invoice to...
466,283
def _check_department_id(self, cr, uid, ids, context=None): for emp in self.browse(cr, uid, ids, context=context): if emp.department_id.manager_id and emp.id == emp.department_id.manager_id.id: return False return True
def _check_department_id(self, cr, uid, ids, context=None): for emp in self.browse(cr, uid, ids, context=context): if emp.department_id.manager_id and emp.id == emp.department_id.manager_id.id: return False return True
466,284
def create(self, cr, uid, ids, datas, context={}): assert len(ids), 'You should provide some ids!' colors = choice_colors(len(ids)) cr.execute( "SELECT MAX(mrp_production.date_planned) AS stop,MIN(mrp_production.date_planned) AS start "\ "FROM mrp_workcenter, mrp_production, mrp_production_workcenter_line "\ "WHERE mrp...
def create(self, cr, uid, ids, datas, context={}): assert len(ids), 'You should provide some ids!' colors = choice_colors(len(ids)) cr.execute( "SELECT MAX(mrp_production.date_planned) AS stop,MIN(mrp_production.date_planned) AS start "\ "FROM mrp_workcenter, mrp_production, mrp_production_workcenter_line "\ "WHERE mrp...
466,285
def create(self, cr, uid, ids, datas, context={}): assert len(ids), 'You should provide some ids!' colors = choice_colors(len(ids)) cr.execute( "SELECT MAX(mrp_production.date_planned) AS stop,MIN(mrp_production.date_planned) AS start "\ "FROM mrp_workcenter, mrp_production, mrp_production_workcenter_line "\ "WHERE mrp...
def create(self, cr, uid, ids, datas, context={}): assert len(ids), 'You should provide some ids!' colors = choice_colors(len(ids)) cr.execute( "SELECT MAX(mrp_production.date_planned) AS stop,MIN(mrp_production.date_planned) AS start "\ "FROM mrp_workcenter, mrp_production, mrp_production_workcenter_line "\ "WHERE mrp...
466,286
def create(self, cr, uid, ids, datas, context={}): assert len(ids), 'You should provide some ids!' colors = choice_colors(len(ids)) cr.execute( "SELECT MAX(mrp_production.date_planned) AS stop,MIN(mrp_production.date_planned) AS start "\ "FROM mrp_workcenter, mrp_production, mrp_production_workcenter_line "\ "WHERE mrp...
def create(self, cr, uid, ids, datas, context={}): assert len(ids), 'You should provide some ids!' colors = choice_colors(len(ids)) cr.execute( "SELECT MAX(mrp_production.date_planned) AS stop,MIN(mrp_production.date_planned) AS start "\ "FROM mrp_workcenter, mrp_production, mrp_production_workcenter_line "\ "WHERE mrp...
466,287
def email_send(self, cr, uid, obj, emails, body, emailfrom=tools.config.get('email_from', False), context={}): """ send email @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param email: pass the emails @param emailfrom: Pass ...
defemail_send(self,cr,uid,obj,emails,body,emailfrom=tools.config.get('email_from',False),context={}):"""sendemail@paramself:Theobjectpointer@paramcr:thecurrentrow,fromthedatabasecursor,@paramuid:thecurrentuser’sIDforsecuritychecks,@paramemail:passtheemails@paramemailfrom:PassnametheemailFromelseFalse@paramcontext:Astan...
466,288
def do_check(self, cr, uid, action, obj, context={}): """ check Action @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param context: A standard dictionary for contextual values """
def do_check(self, cr, uid, action, obj, context={}): """ check Action @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param context: A standard dictionary for contextual values """
466,289
def do_check(self, cr, uid, action, obj, context={}): """ check Action @param self: The object pointer @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param context: A standard dictionary for contextual values """
defelif action.trg_state_to: ok = False do_check(self,elif action.trg_state_to: ok = False cr,elif action.trg_state_to: ok = False uid,elif action.trg_state_to: ok = False action,elif action.trg_state_to: ok = False obj,elif action.trg_state_to: ok = False context={}):elif action.trg_state_to: ok = False """elif action...
466,290
def create_rml(self, cr, xml, uid, context=None): if not context: context={} service = netsvc.LocalService("object_proxy")
def create_rml(self, cr, xml, uid, context=None): if not context: context={} service = netsvc.LocalService("object_proxy")
466,291
def translate(doc, lang): for node in doc.xpath('//*[@t]'): translation = service.execute( cr.dbname, uid, 'ir.translation', '_get_source', self.name2, 'xsl', lang, node.text) if translation: node.text = translation
def translate(doc, lang): for node in doc.xpath('//*[@t]'): translation = ir_translation_obj._get_source(cr, uid, self.name2, 'xsl', lang, node.text) if translation: node.text = translation
466,292
def fields_get(self, cr, uid, fields=None, context=None, write_access=True): """ If an addon is already installed, set it to readonly as res.config.installer doesn't handle uninstallations of already installed addons """ fields = super(res_config_installer, self).fields_get( cr, uid, fields, context, write_access)
def fields_get(self, cr, uid, fields=None, context=None, write_access=True): """ If an addon is already installed, set it to readonly as res.config.installer doesn't handle uninstallations of already installed addons """ fields = super(res_config_installer, self).fields_get( cr, uid, fields, context, write_access)
466,293
def fields_get(self, cr, uid, fields=None, context=None, write_access=True): """ If an addon is already installed, set it to readonly as res.config.installer doesn't handle uninstallations of already installed addons """ fields = super(res_config_installer, self).fields_get( cr, uid, fields, context, write_access)
deffields_get(self,cr,uid,fields=None,context=None,write_access=True):"""Ifanaddonisalreadyinstalled,setittoreadonlyasres.config.installerdoesn'thandleuninstallationsofalreadyinstalledaddons"""fields=super(res_config_installer,self).fields_get(cr,uid,fields,context,write_access)
466,294
def onchange_partner_id(self, cr, uid, ids, move_id, partner_id, account_id=None, debit=0, credit=0, date=False, journal=False): val = {} val['date_maturity'] = False
def onchange_partner_id(self, cr, uid, ids, move_id, partner_id, account_id=None, debit=0, credit=0, date=False, journal=False): val = {} val['date_maturity'] = False
466,295
def onchange_partner_id(self, cr, uid, ids, move_id, partner_id, account_id=None, debit=0, credit=0, date=False, journal=False): val = {} val['date_maturity'] = False
def onchange_partner_id(self, cr, uid, ids, move_id, partner_id, account_id=None, debit=0, credit=0, date=False, journal=False): val = {} val['date_maturity'] = False
466,296
def onchange_partner_id(self, cr, uid, ids, move_id, partner_id, account_id=None, debit=0, credit=0, date=False, journal=False): val = {} val['date_maturity'] = False
def onchange_partner_id(self, cr, uid, ids, move_id, partner_id, account_id=None, debit=0, credit=0, date=False, journal=False): val = {} val['date_maturity'] = False
466,297
def check_group(node): if node.get('groups'): groups = node.get('groups').split(',') access_pool = self.pool.get('ir.model.access') can_see = any(access_pool.check_groups(cr, user, group) for group in groups) if not can_see: node.set('invisible', '1') if 'attrs' in node.attrib: del(node.attrib['attrs']) #avoid making f...
def check_group(node): if node.get('groups'): groups = node.get('groups').split(',') access_pool = self.pool.get('ir.model.access') can_see = any(access_pool.check_groups(cr, user, group) for group in groups) if not can_see: node.set('invisible', '1') if 'attrs' in node.attrib: del(node.attrib['attrs']) #avoid making f...
466,298
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): """ Get the list of records in list view grouped by the given ``groupby`` fields
def read_group(self, cr, uid, domain, fields, groupby, offset=0, limit=None, context=None): """ Get the list of records in list view grouped by the given ``groupby`` fields
466,299